"Sorry, the GWT Developer Plugin no longer works with Chrome on Linux"
https://stackoverflow.com/a/18333050/116472-- J.
On Sunday, July 6, 2014 12:53:41 AM UTC+2, Jens wrote:https://stackoverflow.com/a/18333050/116472Thanks, but the "big picture" is still intransparent to me:
- compile and deploy your app to a web server near you
What does this mean? I have a local machine, where I am developing, and a remote server. I am used to test on my local machine.
Before SuperDevMode this was done by pointing to an eclipse menu entry: "run as web application".
How should this be done now? Do you really have to "deploy" it, e. g. upload it with tomcat's manager application?
- Launch com.google.gwt.dev.codeserver.CodeServer with the same classpath that you'd launch DevMode with
What does this mean? How can I "launch" this class? Do I have to create a Run Configuration in eclipse or something like that?
- If you never ran Super Dev Mode, go to http://localhost:9876
What's this? Which application is running and listening there?
I believe that I am missing some additional knowledge to get SuperDevMode running with tutorials like this. I have tried it several times, without success. Please give some additional hints.
And what about the classical DevMode? Will it be unsupported by now and is this the reason why chrome fails to install the plugin?
I never managed to get SuperDevMode work, because I don't understand it's basic architecture and I was missing some detailed tutorial. So SuperDevMode now is the only development mode with GWT and Eclipse then I finally need a good tutorial, where all the steps are explained in detail.
On Saturday, July 5, 2014 11:29:10 PM UTC+2, Magnus wrote:I never managed to get SuperDevMode work, because I don't understand it's basic architecture and I was missing some detailed tutorial. So SuperDevMode now is the only development mode with GWT and Eclipse then I finally need a good tutorial, where all the steps are explained in detail.A few weeks ago I spent most of two days getting SDM to work for a client (together with the Eclipse plugin and a multi-module maven-based project), but in the end we could come to no other conclusion that it was borderline unusable. While it works from cmdline with maven, that really doesn't give you anything.Once working, the new thing of debugging directly in the browser certainly seemed cool at first, until you realize that in most cases you would rather have the java-view on your data. It's not much fun trying to drill down a javascriptobject-representation of your arraylist or hashmap, for instance, while your IDE's default 'toString'-view is exactly what you would want.
I would even be okay without any debugging options, if only the time from "you make a change" till "you see the change" would remain a one-step process (like a reload in the browser), and I don't see why this cannot be done.
Why not simply use a web-filter on any *.js files (or other relevant files) to automaticly check if the corresponding class-files have been changed on disk and if so, then recompile the necessary gwt-parts. If the new compiler becomes more incremental (as I've seen mentioned in some presentations), then that should even be pretty fast, but more importantly, it would be a one-step thing.
So at work, we still use Firefox with the automatic updates disabled for GWT-dev in good old DevMode. It's hardly a long term solution, so I'm really anxious to see what happens with 2.7.
Thanks, but the "big picture" is still intransparent to me:
Have you followed the link at the bottom of the answer?http://blog.ltgt.net/how-does-gwts-super-dev-mode-work/
For now, you have to run your app in an HTTP server of your choice (Dev Mode is OK for the job),
"Sorry, the GWT Developer Plugin no longer works with Chrome on Linux"
In your case, I'd say: just keep using "run as web application", but just don't include the ?gwt.codesvr= in the URL to avoid triggering (classic) DevMode.
<snarky tone>How can you develop without knowing anything about your IDE?</snarky tone>
Maybe start here: http://help.eclipse.org/juno/topic/org.eclipse.jdt.doc.user/tasks/tasks-java-local-configuration.htm?cp=1_3_6_3(that was the first result when I googled for "eclipse create run configuration")
For the moment, I am just happy to get my app running with the URL above:
I cannot see why I need a run configuration. I can run my app, but I still don't know how to set breakpoints and do step-by-step debugging. But I can launch my app, because of your useful hint to not include "?gwt.codesvr" in my URL. This is missing in all of the turorials.
Hi,thanks, after all, I am able to get my app running in whatever mode, I think it's Super Dev Mode...
- call eclipse's "Run as Web Application" command
- open the URL displayed by eclipse, but omit the "gwt.codesvr=127.0.0.1:9997" suffix
However, after changing some code, a simple reload does not bring the new version. Even a complete restart of the run command in eclipse does not bring the new version.It's astonishing to me. I make a change in the code and I am unable to propagate this change into the running app. Even closing and reopening the project did not help!
my GWT compiler does not recognize a "-draft" option. I am running GWT 2.6.0.
However, I changed my code (added a cell view into my split panel), but I do not see the result after recompiling. Maybe there was an error or an exception. Are exceptions still shown in eclipse when running SDM?
How can I debug step by step in SDM?
--
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-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
I spent a little time many months ago trying to get SDM working. I think I succeeded but was very surprised about the number of steps required. The thing that surprised me most, however, was discovering that I had to have two servers running (if I am correct) - an app server, and a code server. All of the docs I've seen provide the steps but never explain at a higher level what is going on (unless you understand far more internal details than many of us). The biggest difficulty occurs because the instructions were leading me down the path of two servers but I kept fighting it - trying to get one server to perform both functions. The fight occurred because I didn't understand what was being attempted. I didn't understand that I needed two servers running.So, what is needed is a better up-front description of what you end up with (two servers), and a block diagram that depicts the parts and the data flow between them. Understanding this would make the instruction much more clear.(Sorry if I am totally wrong and confused. Quite possible.)
--
How can I debug step by step in SDM?Using the browser's dev tools. For eclipse there is a proof-of-concept plugin to allow debugging in the IDE: https://github.com/sdbg/sdbg
--
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-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
I cannot even debug by "tracing", i. e. do some System.out.println commands. I cannot see any output.Magnus
--
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-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Using the browser's dev tools. For eclipse there is a proof-of-concept plugin to allow debugging in the IDE: https://github.com/sdbg/sdbgDo the two sentences indicate two debugging methods?
If so, what are the browser's dev tools?
However, I am doing my first steps in SDM, but I cannot solve the simplest problems:For example, there is a wrong SQL statement in my server code, but I cannot analyze it. There is simply a never ending loading indicator in my cell list, but without being able to do step by step debugging I cannot solve this.
I cannot even debug by "tracing", i. e. do some System.out.println commands. I cannot see any output.
To debug the JavaScript in your browser you can either use your browsers dev tools or try using the experimental SDBG plugin for eclipse. When you use your browsers dev tools then you have to set breakpoints inside the browser, when you use SDBG you can set them in eclipse. It is important to understand that in both cases you are debugging JavaScript and not Java.
With the help of SourceMaps (supported in IE11, FF, Chrome and I think latest Opera) the JavaScript will be mapped back to Java statements so you can more easily understand which Java code corresponds to the JavaScript code.
To debug the JavaScript in your browser you can either use your browsers dev tools or try using the experimental SDBG plugin for eclipse. When you use your browsers dev tools then you have to set breakpoints inside the browser, when you use SDBG you can set them in eclipse. It is important to understand that in both cases you are debugging JavaScript and not Java.Indeed, when I open the dev tools in chrome (F12) and go to the "Sources" tab, I can open a lot of JS code and I can set breakpoints there. But I cannot see which JS code corresponds to the Java code that I want to analyze.
Even if I compile in "pretty" mode, I cannot see any correspondence. I think you have to know JS
With the help of SourceMaps (supported in IE11, FF, Chrome and I think latest Opera) the JavaScript will be mapped back to Java statements so you can more easily understand which Java code corresponds to the JavaScript code.How does this work? Can you open Java sources and set breakpoints there then?
Is this the preferred way of debugging GWT code in SDM?
Will the eclipse integrated debugging return with a later GWT version?
On Sunday, August 3, 2014 11:56:49 PM UTC+2, Magnus wrote:Indeed, when I open the dev tools in chrome (F12) and go to the "Sources" tab, I can open a lot of JS code and I can set breakpoints there. But I cannot see which JS code corresponds to the Java code that I want to analyze.This is because you need Source Maps. It's possible to get them to work in "prod mode", as can be seen on gwtproject.org, but it requires few tricks at build and packaging time. The easiest way is to use Super Dev Mode, which sets everything up automatically.
In eclipse I call "run as web application", and in the generated link (http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997) I cut off the portion after and including the "?" character, which results in http://127.0.0.1:8888/index.html.
Remember where I am standing:In eclipse I call "run as web application", and in the generated link (http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997) I cut off the portion after and including the "?" character, which results in http://127.0.0.1:8888/index.html.This and nothing more is what I have changed. I thought that I am using SDM this way. If this is not SDM, what do I have to change to use SDM?
Remember where I am standing:In eclipse I call "run as web application", and in the generated link (http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997) I cut off the portion after and including the "?" character, which results in http://127.0.0.1:8888/index.html.This and nothing more is what I have changed. I thought that I am using SDM this way. If this is not SDM, what do I have to change to use SDM?It will be SDM if you have compiled your app to JavaScript
and if you have used the DevMode On bookmarklet from the SDM code server afterwards to recompile your app (and thus reloading the app from the SDM code server, which also provides sourcemaps, automatically).
GET http://localhost:9876/dev_mode_on.js net::ERR_CONNECTION_REFUSED
If you have never used the bookmarklet then you haven't used SDM yet.
In that case you probably only have compiled your app to JavaScript and used the embedded Jetty of classic DevMode (run as web application) to serve your app.
I remember having created this bookmarklet when reading some SDM document, but I never understood how to use it. Why should one use it to recompile the app, instead of running the GWT compiler in eclipse? And what exactly is the SDM code server (remember, I started my app in eclipse by calling "run as web application"). Is it simply the embedded server in eclipse called Jessie?
However, when I click on the "DevMode On" bookmarklet while my app is running, I get the following message in the chrome console:GET http://localhost:9876/dev_mode_on.js net::ERR_CONNECTION_REFUSED
In that case you probably only have compiled your app to JavaScript and used the embedded Jetty of classic DevMode (run as web application) to serve your app.Should the app be started in a different way, other than "run as web application"?
My understandig at the moment looks like this:
- Run "GWT compile" in eclipse.
- Run "Run as Web Application" in eclipse.
- Open "http://127.0.0.1:8888/index.html" in the browser
- Make changes to the code, because you saw that there is something wrong.
- Click on "DevMode On".
As already mentioned, 5. does not work for me. I don't understand why we don't simply recompile with "GWT compile" command in eclipse.
And I also don't understand 1. and 2.: Calling "Run as Web Application" always worked without running the GWT compiler. I always needed the GWT compiler to create a war file...
Hi,
-bindAddress 0.0.0.0 mcs.mcs
workDir: /tmp/gwt-codeserver-2052393959063966034.tmpbinding: user.agent=safaribinding: compiler.useSourceMaps=truebinding: locale=enCompiling module mcs.mcsCompiling 1 permutationCompiling permutation 0...Source Maps EnabledCompile of permutations succeededLinking into /tmp/gwt-codeserver-2052393959063966034.tmp/mcs.mcs/compile-1/war/mcs; Writing extras to /tmp/gwt-codeserver-2052393959063966034.tmp/mcs.mcs/compile-1/extras/mcsLink succeededCompilation succeeded -- 21.933sCompile completed in 22878 ms2014-08-07 05:30:53.171:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT2014-08-07 05:30:53.228:INFO:oejs.AbstractConnector:Started SelectChann...@0.0.0.0:9876The code server is ready.Next, visit: http://magnus:9876/
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.6.0//EN"<module rename-to='mcs'><inherits name='com.google.gwt.user.User'/><inherits name='com.google.gwt.user.theme.clean.Clean'/>
<inherits name='awi'/><entry-point class='mcs.client.Application'/><source path='client'/><source path='shared'/><!-- Super Dev Mode -->
<add-linker name="xsiframe"/><set-configuration-property name="devModeRedirectEnabled" value="true"/><set-property name="compiler.useSourceMaps" value="true" /><!-- debug --><set-property name="compiler.stackMode" value="emulated" /><set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true" /><set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" /></module>
The code server is ready.Next, visit: http://magnus:9876/
http://localhost;:9876/
I removed the -bindAddress 0.0.0.0 option and now the code server says:
The code server is ready.
Next, visit: http://localhost:9876/