un-refreshed cache (?) issue (on Windows 10)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

un-refreshed cache (?) issue (on Windows 10)

runsun
I have been bothered by an issue of un-refreshed cache (in fact not even know
what to call it) for a while.

First of all this is Windows 10. It goes this way:
   
  module m(...){ ... }
  m();

then I modified content, lets say, add an echo:

  module m(...){ ... ; echo(...); }
  m();

but the revised content is not reflected (in this case, nothing is showing
up in the console).

If I then change the name of the module to :

  module m2(...){ ... ; echo(...); }
  m2();

OpenSCAD complains "WARNING: Ignoring unknown module 'm'. " even though I
don't call m() this time.

Clearning cache or restarting OpenSCAD doesn't help.

Also puzzling is that it happens sometimes but not all the time and I have
no way to predict when it will occur.

I suspect this is a Window problem but not sure. Anyone knows of what
happens and how to fix it ?







-----

$  Runsun Pan, PhD $ libs: scadx , doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), editor of choice: CudaText  ( OpenSCAD lexer ); $ Tips ; $ Snippets

--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
$ Runsun Pan, PhD
$ libs: scadx, doctest, faces(git), offline doc(git), runscad.py(2,git), editor of choice: CudaText ( OpenSCAD lexer); $ Tips; $ Snippets
Reply | Threaded
Open this post in threaded view
|

Re: un-refreshed cache (?) issue (on Windows 10)

nophead
Is it possible your clock is is going backwards on your PC?

On 16 August 2018 at 17:37, runsun <[hidden email]> wrote:
I have been bothered by an issue of un-refreshed cache (in fact not even know
what to call it) for a while.

First of all this is Windows 10. It goes this way:

  module m(...){ ... }
  m();

then I modified content, lets say, add an echo:

  module m(...){ ... ; echo(...); }
  m();

but the revised content is not reflected (in this case, nothing is showing
up in the console).

If I then change the name of the module to :

  module m2(...){ ... ; echo(...); }
  m2();

OpenSCAD complains "WARNING: Ignoring unknown module 'm'. " even though I
don't call m() this time.

Clearning cache or restarting OpenSCAD doesn't help.

Also puzzling is that it happens sometimes but not all the time and I have
no way to predict when it will occur.

I suspect this is a Window problem but not sure. Anyone knows of what
happens and how to fix it ?







-----

$  Runsun Pan, PhD $ libs: scadx , doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), editor of choice: CudaText  ( OpenSCAD lexer );&nbsp;$ Tips ;&nbsp;$ Snippets

--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: un-refreshed cache (?) issue (on Windows 10)

runsun
Doesn't seem like it. At least the time is correct as of now, and the problem
persists.



-----

$  Runsun Pan, PhD $ libs: scadx , doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), editor of choice: CudaText  ( OpenSCAD lexer );&nbsp;$ Tips ;&nbsp;$ Snippets

--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
$ Runsun Pan, PhD
$ libs: scadx, doctest, faces(git), offline doc(git), runscad.py(2,git), editor of choice: CudaText ( OpenSCAD lexer); $ Tips; $ Snippets
Reply | Threaded
Open this post in threaded view
|

Re: un-refreshed cache (?) issue (on Windows 10)

nophead
> restarting OpenSCAD doesn't help.

So openscad still complains about things no longer in the source code after a restart?

It doesn't have a persistent cache, so I have no idea how it can see an out of date version of the source code after a restart. Are you using an external editor?

On 17 August 2018 at 05:20, runsun <[hidden email]> wrote:
Doesn't seem like it. At least the time is correct as of now, and the problem
persists.



-----

$  Runsun Pan, PhD $ libs: scadx , doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), editor of choice: CudaText  ( OpenSCAD lexer );&nbsp;$ Tips ;&nbsp;$ Snippets

--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: un-refreshed cache (?) issue (on Windows 10)

runsun
In reply to this post by runsun
@nophead
Apology for late reply. Yes I am using an external editor.

As of now, the issue no longer exits after the Windows restarted overnight
two days ago.



-----

$  Runsun Pan, PhD $ libs: scadx , doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), editor of choice: CudaText  ( OpenSCAD lexer );&nbsp;$ Tips ;&nbsp;$ Snippets

--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
$ Runsun Pan, PhD
$ libs: scadx, doctest, faces(git), offline doc(git), runscad.py(2,git), editor of choice: CudaText ( OpenSCAD lexer); $ Tips; $ Snippets