Sunday, January 11, 2015

Re: Will GWT ever detect compiler errors in IDE before you actually try to run your code.

Hi,

On Mon, Jan 12, 2015 at 9:21 AM, Joseph Gardi <jgleoj23@gmail.com> wrote:
Eclipse is able to detect errors in your code as soon as you make them. In GWT if there's an error like you didn't inherit a module then you get it when you try to compile. This really sucks because in java compile time errors are supposed to be a good thing. This is part of why it's hard to find bugs quickly in GWT. So I was wondering if compile time errors will ever show up as soon as you make them like java's do?

That is up to the IDE to support. Intellij does some intelligent error detection and will warn/error if you forget to inherit a module and allow alt-enter to inherit from within java source file. However even Intelli does not detect all problems. I don't know if eclipse will ever implement this. However, I tend to just use super-dev compiler and refresh the page and it will very quickly highlight the problems - I also use strict mode to increase the number of issues it highlights.


--
Cheers,

Peter Donald

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment