discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

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

R
runsun
Thu, Aug 16, 2018 4:37 PM

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/

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/
NH
nop head
Thu, Aug 16, 2018 6:57 PM

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

On 16 August 2018 at 17:37, runsun runsun@gmail.com 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
); $ Tips ; $ Snippets

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


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Is it possible your clock is is going backwards on your PC? On 16 August 2018 at 17:37, runsun <runsun@gmail.com> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
R
runsun
Fri, Aug 17, 2018 4:20 AM

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/

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/
NH
nop head
Fri, Aug 17, 2018 8:21 AM

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 runsun@gmail.com 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
); $ Tips ; $ Snippets

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


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

> 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 <runsun@gmail.com> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
R
runsun
Wed, Aug 22, 2018 6:24 AM

@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/

@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/