Discussion:
[OpenSCAD] un-refreshed cache (?) issue (on Windows 10)
runsun
2018-08-16 16:37:06 UTC
Permalink
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/
nop head
2018-08-16 18:57:54 UTC
Permalink
Is it possible your clock is is going backwards on your PC?
Post by runsun
I have been bothered by an issue of un-refreshed cache (in fact not even know
what to call it) for a while.
module m(...){ ... }
m();
module m(...){ ... ; echo(...); }
m();
but the revised content is not reflected (in this case, nothing is showing
up in the console).
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
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
runsun
2018-08-17 04:20:59 UTC
Permalink
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 ); $ Tips ; $ Snippets

--
Sent from: http://forum.openscad.org/
nop head
2018-08-17 08:21:02 UTC
Permalink
Post by runsun
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?
Post by 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
); $ Tips ; $ Snippets
--
Sent from: http://forum.openscad.org/
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
runsun
2018-08-22 06:24:14 UTC
Permalink
@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 ); $ Tips ; $ Snippets

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

Loading...