Monday, November 9, 2015

Re: IntelliJ 15, SuperDevMode, AppEngine, Gradle


1. If I'm using AppEngine and SDM, do I need to have to separate debug configurations? One for SDM and one for AppEngine? Then start them one after the other?

Never used AppEngine but I would generally say yes since you most likely launch SDM with -noserver when using AppEngine server right?


 
2. At this point, I can get to /_ah/admin and I can get to the "Compiling..." screen of SDM. It looks like everything compiles correctly, but when it tries to actually load my entry point, nothing happens. There's no source map for my code in Chrome, only the standard library stuff. Also, when I look in the log I see:

Running Codeserver at ... /home/gte619n/.IntelliJIdea15/system/gwt/cms.75073451/cms.9605c5e5/run/www

Thats the default if you do not pass -war /path/to/exploded/war as dev mode parameter in your run configuration.

 
But then working dir  /tmp/gwt-codeserver-2976851721674933708.tmp

Thats the SDM CodeServer working directory. Not important for you.

 
But then I see that after compiling it says: Linking into /tmp/gwt-codeserver-2976851721674933708.tmp/com.hs.auto.app.Application/compile-2/war/app

Just a sub directory of your SDM work directory. Everytime your recompile your app in the browser a new compile-1, compile-2, ..., compile-n folder will be created. Thats normal and not really important for you.


How should I configure this correctly?

Probably depends if you want to run everything through Gradle or through your IDE. I usually launch things through my IDE so what I do is:

1.) Goto Project structure and create exploded war artifact (might already exist because of gradle) for all the server stuff
2.) update GWT run configuration and add -war /path/to/exploded_war_artifact/ 
3.) create a server (in my case jetty) in IntelliJ and tell it to deploy the artifact created in 1.)

Then I start SDM through the run config, then Jetty through its run config (which then deploys the artifact of 1.) which should contain GWT related stuff because of 2.)). 


-- J.

--
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-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