Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Given that you have diagnosed your problem as <em>Running in Devmode</em>, I'll detail some solutions here.</p> <p>First off, like Strelock commented, DevMode in Firefox is a good deal faster. Personally, I do all of my development in Firefox.</p> <p>Still, it sounds like Devmode will be unmanagable for you while developing/testing this. Your only option here is to compile. Thankfully, there are some parameters that we can tweak to speed it up, reducing it down to the 20 to 40 second mark assuming you have a project of decent size.</p> <p>Given a main <strong>com/foobar/MyApplication.gwt.xml</strong> file like so: </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;module rename-to="myapplication"&gt; ... &lt;/module&gt; </code></pre> <p>Lets create another, <strong>com/foobar/MyApplication-Firefox.gwt.xml</strong>:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;module rename-to='myapplication'&gt; &lt;inherits name='com.foobar.MyApplication'/&gt; &lt;!-- If you want to compile for a different browser, substitute this value. --&gt; &lt;set-property name="user.agent" value="gecko1_8"/&gt; &lt;/module&gt; </code></pre> <p>Now when we compile, make sure to use the <code>-draftCompile</code> parameter. The compiled version may be a little less efficient, but it'll compile down faster. If you are using the default <strong>build.xml</strong> file, you can add another target like so:</p> <pre><code>&lt;target name="gwtc-firefox" depends="javac" description="GWT compile to JavaScript (for FireFox)"&gt; &lt;java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler"&gt; &lt;classpath&gt; &lt;pathelement location="src"/&gt; &lt;path refid="project.class.path"/&gt; &lt;pathelement location="${gwt.path}/validation-api-1.0.0.GA.jar" /&gt; &lt;pathelement location="${gwt.path}/validation-api-1.0.0.GA-sources.jar" /&gt; &lt;/classpath&gt; &lt;jvmarg value="-Xmx256M"/&gt; &lt;arg line="-war"/&gt; &lt;arg value="war"/&gt; &lt;arg line="-draftCompile"/&gt; &lt;arg value="com.foobar.MyApplication-Firefox"/&gt; &lt;/java&gt; &lt;/target&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload