I am developing a GWT project with Netbeans. When I debug it I always get the screen saying "Development Mode requires the GWT Developer Plugin". The problem is that my version of firefox is too recent to run that plugin. So what can I do?
Update to GWT 2.7, DevMode no longer requires a browser plugin (uses so-called "super dev mode" instead; where you debug in the browser rather than the IDE)
There's documentation for using the GWT Hosted Mode debugging in Netbeans, but you should be better able to use the newer GWT Super Dev Mode. To be able to set breakpoints in Netbeans though, you'd need to properly configure the source map support in Netbeans to map between the compiled JavaScript and the source Java files. I wasn't able to find an obvious reference for doing that with Netbeans.
The fun thing was that gwtproject.org made the sourcemaps part of the released site, and there was a tutorial to using them against their site to step you through how to setup your IDE... But again I didn't find that for Netbeans... Here's an example java source that's linked from gwtproject.org's JavaScript sourcemaps:
http://www.gwtproject.org/src/com/google/gwt/site/webapp/client/GWTProjectEntryPoint.java
Related
I'm learning Spring Boot using a Udemy tutorial, which skips how to install Spring tools to our IDE, so I've been Googling how to do it myself.
There appears to be 2 options: (1) download the Spring Tool Suite 4, which comes with a new version of Eclipse and the Spring tools preinstalled, or, (2) add Spring Tool Suite to my existing Eclipse via searching the Marketplace.
I want to add it to my existing Eclipse Jee Oxygen IDE, as I have other langs and tools installed on it and I want to keep it all in the one place.
I've tried searching for it via the Marketplace wizard in Eclipse, but it doesn't appear.
I've also tried the "Drag & Drop" method using Eclipse.com's marketplace subdomain, and it just opens a new Marketplace wizard without any search parameters.
Does anyone know what could be wrong? Is there another way I can add the tools to my existing Eclipse?
Oxygen is the 2018 release, and is not one of the supported versions for that Marketplace entry.
2020-12 (4.18), 2020-09 (4.17), and 2020-06 (4.16) are what it lists, which is why it comes up empty when the wizard tries to load it---there's no compatible version of STS4 listed for Oxygen.
Get the current version, 2020-12, or try to update your existing install using the Update Site https://download.eclipse.org/releases/latest, then try it again.
Up to date I was using IBM Domino Designer V9.0.1 FP8 to develop an OSGI plugin. With this version everything was working as intended. I've created a plugin project, a feature project and an update site project. Selecting "Build all" in the update site project created all the the corresponding jar files.
Today I've installed IBM (HCL) Domino Desinger V10 FP2 (fresh install i.e. I've deinstalled V9.0.1 and deleted the old "workspace" directory in NotesData, but I kept the NotesData itself).
Now if I open my plugin projects, I can edit the plugin, save the Java classes without any errors. Up to this point everything is working as usual. But now, if I use "Build all" in the update site project I see a screen with "generating ant script" and then the build process is finished, but no jar files are generated.
Any ideas why this is happening? Am I missing some files? Am I missing some configurations?
BTW: if I use standard eclipse to build the plugin all jar files are generated.
Domino Designer is a customised version of Eclipse. 9.0.1 FP9 and lower is a very old version of Eclipse, 9.0.1 FP10+ is a much newer version, so not comparable to what was happening before. It's possible there are differences in the customisation of Eclipse that are affecting it. But every Domino OSGi plugin developer I'm aware of uses standard Eclipse.
Follow the steps for setting up your environment here https://github.com/OpenNTF/XPagesExtensionLibrary/wiki/Development-Environment. In the documentation there I've tried to document why steps are done and what they achieve, as well as just the steps themselves. The intention is to pass on understanding to a broader set of developers, for future proofing.
I have installed the GWT SDK version as 2.8.1. I am able to run the application in GWT with Jersy. But, when I try to run the application in GWT Development mode(Super), URL is generating like http://127.0.0.1:9876. When I place this URL in browser not loading the expected UI page. I am getting the page like,
When I click on Dev Mode On button, I am getting this page.
Even I clicked on module name (gwtsample), then I am getting the page like below,
I have even added the GWT extension in browser level and tried the same. But, still no luck.
Instead of trying with the eclipse downloaded GWT SDK, I have externally downloaded the same version of GWT SDK and applied in the Project Properties > GWT > General Settings. Still, facing the same issue only.
I have observed one more thing is, in project facets GWT version is showing like 1.0 where originally I am using 2.8.1 version of SDK. My project is configured with Maven.
I have even gone through multiple questions and solutions which are mentioned in stackoverflow as well as other websites, still, no solution found.
Links which I referred was,
GWT Super Dev Mode
Debugging in GWT Super Dev Mode?
GWT Super Dev mode and in production
some other as well...
You have to compile your GWT application and host in a webserver.
Then navigate to this webserver with your browser. And finally press the DevModeOn bookmarklet to switch to superdevmode.
Drag the bookmarklets (Dev mode on/off) to your bookmarks bar
Compile your gwtsample project into a war
Deploy the war into a webserver like tomcat or jetty
Take your browser (Chrome highly recommended for GWT debugging) and navigate to your installation : for example http://localhost:8080/gwtsample
Now you are just seeing your compiled version in the browser
Next hit the "Dev mode on" bookmarklet.
You will see a message in the browser that compilation is taking place
Now you are in SuperDevMode
Change something in your code
Hit F5 in the browser. Now a recompile will happen and you will see your changes
You can always hit "Dev mode off" to switch off superdevmode. Now you will just see your original compiled application.
Extra : if you are using Eclipse I highly recommend using the branflake plugin : https://github.com/gwt-plugins/gwt-eclipse-plugin
He has some great videos of how to use it : https://www.youtube.com/watch?v=DU7ZQVLR5Zo&list=PLBbgqtDgdc_TqzA-qXrjgTFMC_6DKAQyT
This way you don't even need to compile and host in some webserver as you can run with an embedded Jetty webserver.
You need a HTTP server to serve your HTML host page and webapp (Tomcat, Jetty, Wildfly, Apache+PHP, Rails, choose whatever you need).
Then, launch GWT's CodeServer with -launcherDir pointing to where your webapp lives. It will create a *.nocache.js specific for SuperDevMode, possibly overwriting your production one.
Now, load your webapp as usual from the web server, the specific *.nocache.js will compile your sources on the fly.
If you can live with a simple servlet container, then DevMode (instead of CodeServer) will do all the above setup automatically: use -war instead of -launcherDir.
You shouldn't need to open the CodeServer URL (on port 9876 by default) or use the bookmarklets with any recent GWT version, starting with 2.7.
I am using eclipse Mars 4.5.0 IDE and I would like to do some Groovy project.Adding groovy as a plugin is not working, because I am not able to connect to http://dist.springsource.org/snapshot/GRECLIPSE/e4.5/p2.index. In fact even simple update are not working. There is always some connection time out like connection to http://download.eclipse.org/eclipse/update/4.5/content.xml.
However I do have groovy installed on my system. Is there anyway I could tell the IDE to use the system groovy? Or is it possible to download the plugin and manually add it to the IDE? I am using windows 7
The groovy compiler delivered by the plugin is patched and therefore I don't think it is possible to use an external groovy compiler.
If you're behind a proxy, try to configure eclipse with manual proxy settings.
At least the 4.6 and 4.7 snapshot update site works well for me ATM, but when i had access problems, I downloaded the last working build from the ci server mentioned in the wiki:
e.g. E45 build and publish -> #393 -> Artifacts -> Zipped Update Site
and used it as an update site (add.. -> archive).
I am writing a GWT project that uses HTML5 canvas.
To test application I use GWTTestCase.
For firefox some functions are supported since gecko 1.9.
While testing, firefox 3.0.1 is being used and errors occur.
How can I set up GWT tests to be launched on firefox 3.6?
(in Eclipse using GWT plugin or using build.xml for ant)
MeasureText wasn't there until gecko 1.9.1.
The workaround is to run tests with runStyle=Manual:1
This gives me link that I can paste into the browser that I want tests to be run in.
-Dgwt.args="-runStyle Manual:1"