Super Dev Mode : Cannot get module to compile with -workDir

381 views
Skip to first unread message

Danny Kirchmeier

unread,
Jun 11, 2012, 9:02:05 PM6/11/12
to google-we...@googlegroups.com
I'm trying out the new Super Dev Mode from the trunk. While I can get the codeserver to compile the module normally, it hangs when I specify -workDir.

Am I doing something wrong, or do I need to file a bug report? 

Ant Target:
<target name="codeserver" depends="javac" description="Run development mode">
  <java failonerror="true" fork="true" classname="com.google.gwt.dev.codeserver.CodeServer">
    <classpath>
      <pathelement location="src"/>
      <path refid="project.class.path"/>
      <path refid="codeserver.class.path"/>
    </classpath>
    <jvmarg value="-Xmx256M"/>
    <arg value="-workDir"/>
    <arg value="myWorkDir"/>
    <arg value="my.test.FooBar"/>
  </java>
</target>

Output:
deleting: ~/foo/myWorkDir/my.test.FooBar/compile-1
workDir: ~/foo/myWorkDir
binding: user.agent=safari
binding: compiler.useSourceMaps=true
binding: locale=en
Compiling module my.test.FooBar

Directory contents
$ pwd ; ls
~/foo/myWorkDir/my.test.FooBar/compile-1 
compile.log   war




Danny Kirchmeier

unread,
Jun 14, 2012, 10:33:00 PM6/14/12
to google-we...@googlegroups.com

On Tuesday, June 12, 2012 1:43:09 PM UTC-5, Brian Slesinsky wrote:
When it hangs, could you try running "jstack" on the process to get a thread dump?

Well, now it appears to be working. I haven't updated the code with a new version, so I don't know what happened.

If it happens again, I'll post the thread dump and file a bug report.

--Danny

Dylan Spurgin

unread,
Oct 30, 2012, 5:54:13 PM10/30/12
to google-we...@googlegroups.com
I was seeing the same issue even without setting a workDir. I upped the memory provided to the JVM (<jvmarg value="-Xmx512M"/>) and it completed the compile.

ds
Reply all
Reply to author
Forward
0 new messages