Superdevmode and ReferenceErrors

44 views
Skip to first unread message

Stik

unread,
Feb 24, 2021, 2:50:49 PM2/24/21
to GWT Users
Occasionally when running under SDM in Eclipse I will get a "ReferenceError: <symbol>_g$ is not defined" from the browser.   The usual "fix" is to rename the symbol in question, reload, and the issue is gone.   If i then rename it back to what it used to be called, so nothing has actually changed, it remains fixed.

This happens to me maybe once a week or two when developing heavily.  It's a minor irritation, but it's an irritation that's building up over time!   Has anyone else experienced this and found out a way to mitigate it?   I've never seen it happen to a full compile process, it seems to only affect SDM.  

My gut feeling is that it affects static fields in particular, although i've seen it elsewhere (just now the constructor for an ordinary, dull class is missing).

The problem is that it is not repeatable, it's something to do with the state of my SDM server at that particular moment, so I can't get a test case together to show to anyone

Any thoughts?

Stik

David Nouls

unread,
Feb 24, 2021, 3:40:05 PM2/24/21
to google-we...@googlegroups.com
It is a known issue with incremental compilation. It is annoying but I tend to just clear the sdm cache and reload.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6c381234-9bb9-4ae7-b3c3-fd463a05c443n%40googlegroups.com.

Stik

unread,
Feb 24, 2021, 4:19:42 PM2/24/21
to GWT Users
Aha, how do you clear the cache? i've never been sure where SDM is hiding it
Stik

David Nouls

unread,
Feb 24, 2021, 4:36:38 PM2/24/21
to google-we...@googlegroups.com
I just browse to the sdm website at http://localhost:9876 and click on de button to clear the cache

Stik

unread,
Feb 24, 2021, 4:39:25 PM2/24/21
to GWT Users
Huh, did not know that was there - thanks!

Stik

Peter Donald

unread,
Feb 24, 2021, 5:02:12 PM2/24/21
to GWT Mailing List
Hi,

On Thu, Feb 25, 2021 at 6:51 AM Stik <stikd...@gmail.com> wrote:
Occasionally when running under SDM in Eclipse I will get a "ReferenceError: <symbol>_g$ is not defined" from the browser.   The usual "fix" is to rename the symbol in question, reload, and the issue is gone.   If i then rename it back to what it used to be called, so nothing has actually changed, it remains fixed.

If it is a symbol that is a method-reference or containing in a lambda then it is a known problem. I believe there was some guidance from google at one stage how to diagnose/fix the problem but no one ever followed it up. I usually just do what you do ;)
 
--
Cheers,

Peter Donald

Ralph Fiergolla

unread,
Feb 25, 2021, 10:27:26 AM2/25/21
to GWT Users
That made my day! I was encountering those issues a lot when using Lambda expressions - and renaming a Lambda is rather difficult... Thanks!
Reply all
Reply to author
Forward
0 new messages