Giter Site home page Giter Site logo

ksfreitas / gwt4nb Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 17.0 11.46 MB

The GWT4NB project aims to enable developers to take advantage of both: the superior support for creating Web Applications built into the NetBeans IDE and the power of GWT (Google Web Toolkit).

License: Other

HTML 2.83% Java 96.90% JavaScript 0.01% Smarty 0.12% FreeMarker 0.14%

gwt4nb's People

Contributors

bikestain avatar chris2011 avatar ksfreitas avatar le-yams avatar markiewb avatar rachelshadoan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gwt4nb's Issues

Detect when a @UiField does not exist in associated ui.xml

If you have a UiBinder class that contains a field annotated with @UiField and that field does not exist in the UiBinder's ui.xml file then a runtime error occurs in DevMode and also compilation fails.

This error should be pointed out by NetBeans so users have a chance to fix this issue before running/compiling.

Error when running hosted mode

Hi,

When running a maven based gwt project using hosted mode (right click on project --> "GET Dev Mode w/o a JEE Server") and attaching a debugger, the hosted mode window does open up but the startup URL is stuck on "Computing..." and there is an exception in the Hosted Mode console:

Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/servlet/http/Cookie
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.mortbay.jetty.servlet.SessionHandler.(SessionHandler.java:53)
at org.mortbay.jetty.servlet.Context.(Context.java:72)
at org.mortbay.jetty.webapp.WebAppContext.(WebAppContext.java:273)
at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.(JettyLauncher.java:453)
at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.(JettyLauncher.java:294)
at com.google.gwt.dev.shell.jetty.JettyLauncher.createWebAppContext(JettyLauncher.java:700)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:666)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)

Can you please help?

Thanks.

New Project Wizard Not Working As Expected

I'm following this tutorial at https://netbeans.org/kb/74/web/quickstart-webapps-gwt.html

When I try to select the GWT SDK Location (which on my machine is C:\Users\Admin\Documents\NetBeansProjects\Shared\GWT\gwt-2.8.2) the Finish button doesn't enable and I can't continue.

I'm probably doing something embarrassingly stupid but any help would be appreciated.

I'm using

GWT 2.8.2 downloaded from http://www.gwtproject.org/download.html

GWT4NB Version: 2.11.0.2

Netbeans Product Version: NetBeans IDE 8.2 (Build 201609300101)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb)

Please add support to detect missing ui:fields.

A colleague uses intelliJ and for gwt, the IDE shows him an hint (underlined) when the @UiField attribute is missing in the java file but set in ui.xml and vice versa.

Test.java

@UiField
Button button

Test.ui.xml

<g:Button ui:Field="button">Test</g:Button>

So if one is missing in xml or java, he got a little hint for this. I think gwt inside intelliJ is much more powerfull, only my opinion, maybe you can have a look at the functionality for intelliJ :)

Regards

Chris

Problems while updating version of GWT

I create new Maven Enterprise Application. I add GWT framework. Library has version 2.0.3. Why? I replace library for new version(any version), there is an error: "Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:1.2:compile (default) on project mavengwt-web: artifact not found - Could not find artifact com.google.gwt:gwt-dev:jar:mac:2.4.0 in central (http://repo.maven.apache.org/maven2)" I tried to install in maven gwt-dev 2.4.0 but no success.Could You tell me what's a problem?

Support/document setting compiler max memory for maven

As far as I can tell and google, there is no way to specify a max compiler memory with maven. It looks like it defaults to 512m, which is too small for my project.

It would be useful if either a mechanism is provided or documented how to set that value.

Renaming the module package should also update .gwt.xml and other files

I created a new GWT project in NB 6.0 (Win XP, JDK 1.6). After the initial
project creation I realized I wanted to refactor/rename the main package name,
so I used NB's Refactor->Rename functionality.

After it was completed, the Main.gwt.xml, welcomeGWT.html and gwt.properties
files still referred to the old package name.

The refactoring should have updated these two files as well to reflect the new
package name.

Imported from: http://java.net/jira/browse/GWT4NB-33

Support autodiscovery of modules in maven-projects

  • Modules can be defined in configuration-section in pom.xml - already fixed via #24
  • Modules can be auto-discovered by gwt-maven-plugin, so this plugin must do the same - to be fixed
--- gwt-maven-plugin:1.2:compile (default) @ messages ---
using GWT jars from project dependencies : 2.0.1
auto discovered modules [my.new.module, org.yournamehere.Main]

gwt4nb -noserver glassfish

Hello

I use gwt4nb plugin and like it very much.

I have GWT application that uses EJB-s and I would like to debug my app against glassfish 3.1 (Just released)

This document
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
Using my own server in development mode instead of GWT's built-in Jetty instance

states that one should use -noserver flag.

Is it possible to launch this kind of debugger with gwt4nb?

Thanks

Imported from http://java.net/jira/browse/GWT4NB-137

Compiling frozen

When I am compiling my project, NB 7.3.1, GWT 2.5.1, compiler output ends with:

do-gwt-compile-15:
init:
do-gwt-compile-16:
init:
do-gwt-compile-17:
init:
do-gwt-compile-20:
init:
do-gwt-compile-23:
init:
do-gwt-compile-25:
GWT Compiling client-side code.

... end then it is frozen, with bottom right progress saying "running" forever.

I put "Debug" logging, and then it ends with:

'C:\Digitech\Install\JDK_6_26\jre\bin\java.exe' with arguments:
'-Xmx256M'
'-classpath'
'C:\Digitech\Install\gwt-2.5.1\validation-api-1.0.0.GA.jar;C:\Digitech\Install\gwt-2.5.1\validation-api-1.0.0.GA-sources.jar;C:\Digitech\Install\gwt-2.5.1\gwt-user.jar;C:\Digitech\Install\gwt-2.5.1\gwt-dev.jar;C:\Digitech\Install\gwt-2.5.1\gwt-servlet.jar;C:\Digitech\ProjectsJava\ZmoGWTUtilitiesLibrary\dist\ZmoGWTUtilitiesLibrary.jar;C:\Digitech\ProjectsJava\ZmoGWTWidgetsLibrary\dist\ZmoGWTWidgetsLibrary.jar;C:\Digitech\ProjectsJava\ZmoGeocodingUtilitiesLibrary\dist\ZmoGeocodingUtilitiesLibrary.jar;C:\Digitech\ProjectsJava\NaviClient\dist\NaviClient.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\mongo-2.7.2.jar;C:\Digitech\ProjectsJava\MapServices_1_svn\digitech\mapservice-core\dist\DigiLogCore.jar;C:\Digitech\ProjectsJava\MapServices_1_svn\digitech\mapservice-client\dist\DigiLogClient.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\GWT2.5.1\gwt-user.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\GWT2.5.1\gwt-servlet-deps.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\GWT2.5.1\gwt-servlet.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\GWT2.5.1\requestfactory-server.jar;C:\Digitech\ProjectsJava\ExternJavaLibs\OtherLibs\javamail-1.4.4\mail.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\sapjco3.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\jasperreports-5.0.1.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\commons-digester-2.1.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\lib\iText-2.1.7.js1.jar;C:\Digitech\ProjectsJava\PlantourWebPortal\src\java;C:\Digitech\ProjectsJava\PlantourWebPortal\build\web\WEB-INF\classes'
'com.google.gwt.dev.Compiler'
'-war'
'C:\Digitech\ProjectsJava\PlantourWebPortal\build\web'
'-style'
'OBFUSCATED'
'-localWorkers'
'1'
'-logLevel'
'INFO'
'cz.digitech.zmo.webportal.main'

If I run this from command line, it freezes too.

Support gwt:run

Currently only gwt:debug is supported in the main menu "debug"

Please avoid warning about ineffective registration of resolver.

In general we don't look at warnings, but sometimes we should. When I start NetBeans and open the messages.log I see this warning:

WARNING [org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl]: Ineffective registration of resolver Services/MIMEResolver/GwtXmlResolver.xml use @MIMEResolver.Registration! See bug #191777.

In my opinion and it is written there, you should refactor the code to use the better implementation, because it seems not so ineffective.

Regards

Chris

Error often raised

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1911)
    at org.netbeans.modules.gwt4nb.GWTProjectInfo.getModulePackage(GWTProjectInfo.java:185)
    at org.netbeans.modules.gwt4nb.GWTProjectInfo.getClientPackage(GWTProjectInfo.java:119)
    at org.netbeans.modules.gwt4nb.hints.UnsupportedClass.hasGWT(UnsupportedClass.java:137)
    at org.netbeans.modules.gwt4nb.hints.UnsupportedClass.run(UnsupportedClass.java:201)
    at org.netbeans.modules.gwt4nb.hints.UnsupportedClass.runMemberSelect(UnsupportedClass.java:196)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
[catch] at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:303)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:788)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$300(HintsInvoker.java:111)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:655)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scanDoNotGoDeeper(HintsInvoker.java:709)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:394)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:232)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:209)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:182)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:149)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:113)
    at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:83)
    at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:559)
    at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:735)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)

Add support for 2.7/2.8

GWT 2.8 is out since one and a half week. It should be used too and if it's possible, 2.7 too.

Basic syntax hightlighting for JSNI

Don't know whether this is the same or not: #2

but this is my little piece of code:

@Override
public final native void setName(String name) /*-{
   [email protected]::jso.name = name;
}-*/;

what netbeans does is all between // will be shown as comments, this is a normal behaviour and not only for the IDE, as you can see it right here, but this is gwt JavaScript code inside a Java function and what I expect is that GWT4NB should knows it and should ignore those // and bring us syntax hightlighting and code completion to this. Its very hard to figure out errors or smth like that. It's only possible at runtime and debugging. I think this behaviour is available for the eclipse plugin.

Regards

Chris

GWT2.6.0-rc1 incompatible

When trying to change the SDK location for version 2.6.1-rc1, the message is returned: "Not a valid GWT SDK location"

Provide autocomplete in *.gwt.xml files

Autocomplete works only for elements from xmlns:ui='urn:ui:com.google.gwt.uibinder' namespace. If I include other namespaces (packages), for example from external libraries (sencha gxt) there is no autocomplete working.

Build fails with GWT 2.7

When using GWT 2.7.0, builds in Netbeans fail with the following error message:

init:
do-gwt-compile-15:
GWT Compiling client-side code.
Error: Could not find or load main class com.google.gwt.dev.GWTCompiler

When using GWT 2.6.1, builds succeed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.