Code Splitting Causes Eclipse to Freeze

85 views
Skip to first unread message

Mark Wengranowski

unread,
Dec 12, 2011, 5:04:36 PM12/12/11
to Google Web Toolkit
Hi Everyone,

It seems that when i add code splitting to my program and compile it
Eclipse freezes when it tries to build the workspace.

It gets hung up on the javascript files in the deferredjs folder in
the war directory. They only way i have found to stop this is to
recompile the code without the code splitting.

GWT.runAsync(new RunAsyncCallback() {
public void onSuccess() {
cp.buildMainModule();
}
public void onFailure(Throwable t) {
//handle somehow
}
});

Mark Wengranowski

unread,
Dec 12, 2011, 5:08:06 PM12/12/11
to Google Web Toolkit
Sorry for this additional post but i accidently hit the post button
before i was done typing.

Adding the code example above is all im doing.

Im using GWT 2.4 w/latest update and Eclipse 3.7.

Jens

unread,
Dec 12, 2011, 5:29:39 PM12/12/11
to google-we...@googlegroups.com
I had this once and I think Eclipse sees the generated deferred .js files and tries to validate them if you have the J2EE version of Eclipse installed. Seems like these files are quite complex and/or Eclipse somehow runs out of memory and freezes.

What I have done is to disable all JavaScript validation:

- Project preferences -> Builders -> disable JavaScript Validator.
- Project preferences -> Validation -> enable project specific settings -> disable any JavaScript validation

Hope this helps.

-- J.

Mark Wengranowski

unread,
Dec 12, 2011, 7:41:42 PM12/12/11
to Google Web Toolkit
That seems to have fixed it. Thanks Jens.

Ed

unread,
Dec 13, 2011, 11:37:54 AM12/13/11
to Google Web Toolkit
An alternative would be to exclude the location, where the js files
are generated, from Eclipse processing. Mark the directory in the
eclipse properties (right mouse click) as "derived".
- Ed
Reply all
Reply to author
Forward
0 new messages