GWT 2.0 w/ IntelliJ IDEA 7.0.5
Up until now I've used Eclipse for writing occasional GWT apps, but I'm not an Eclipse expert and am much more comfortable using Intellij for development. I thought I'd see how well IntelliJ 7.0.5 works for developing some toy GWT 1.7 apps, and except for a few warning messages, it seems to works fine. Then I gave GWT 2.0 a try with IntelliJ 7.0.5 to see what happens, and got the error messages posted below when building a little, default "Hello World!" program that had worked using GWT 1.7. In trying to figure out the problem, I came across an old post somewhere that suggested older versions of IntelliJ wouldn't work with later versions of GWT, but it wasn't clear which versions numbers they were talking about, or even if this was true. The errors below look to be XML Parser-related, but I don't know if there's a way I can point to a different parser, or if the problem is actually something else. So my question is...is it possible to develop with GWT 2 using IntelliJ 7.0.5? I'd rather not spend time on something that ultimately turns out to be futile, and when I asked the question over on the IntelliJ forum, I didn't get a response. Thanks. Information:Compilation completed with 42 errors and 0 warnings Information:42 errors Information:0 warnings Error:[ERROR] Line 23: Unexpected element 'define-configuration- property' Error:Failure while parsing XML Error:at com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement (DefaultSchema.java:80) Error:at com.google.gwt.dev.util.xml.Schema.onUnexpectedElement (Schema.java:93) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement (ReflectiveParser.java:186) Error:at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:501) Error:at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement (AbstractXMLDocumentParser.java:179) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:1339) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:648) Error:at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:510) Error:at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:807) Error:at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:737) Error:at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:107) Error:at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1205) Error:at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:314) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 (ReflectiveParser.java:48) Error:at com.google.gwt.dev.util.xml.ReflectiveParser.parse (ReflectiveParser.java:385) Error:at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:243) Error:at com.google.gwt.dev.cfg.ModuleDefSchema $BodySchema.__inherits_begin(ModuleDefSchema.java:212) Error:at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Error:at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) Error:at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) Error:at java.lang.reflect.Method.invoke(Method.java:597) Error:at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin (HandlerMethod.java:223) Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement (ReflectiveParser.java:257) Error:at com.google.gwt.dev.cfg.ModuleDefLoader$1.load (ModuleDefLoader.java:155) Error:at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) Error:at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) Error:at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:148) Error:at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:119) Error:at com.google.gwt.dev.CompileTaskRunner.doRun (CompileTaskRunner.java:88) Error:at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:82) Error:at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:126) Error:[ERROR] Line 24: Unexpected exception while processing element 'inherits' Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:338) Error:at com.google.gwt.dev.util.xml.DefaultSchema.onHandlerException (DefaultSchema.java:56) Error:at com.google.gwt.dev.util.xml.Schema.onHandlerException (Schema.java:65) Error:at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin (HandlerMethod.java:233) Error:
Re: GWT 2.0 w/ IntelliJ IDEA 7.0.5
Thanks. At the moment, upgrading IntelliJ isn't an option, so it looks like I get to hop around between two IDEs. Ugh! On Jan 6, 6:33 am, Matt Moriarity wrote: > If you really want decent IntelliJ GWT support, you should probably > upgrade to IDEA 9.0, which added explicit support for GWT 2.0 and GWT > 1.7. > > On Jan 5, 4:17 am, Steve Sinai wrote: > > > Up until now I've used Eclipse for writing occasional GWT apps, but > > I'm not an Eclipse expert and am much more comfortable using Intellij > > for development. I thought I'd see how well IntelliJ 7.0.5 works for > > developing some toy GWT 1.7 apps, and except for a few warning > > messages, it seems to works fine. > > > Then I gave GWT 2.0 a try with IntelliJ 7.0.5 to see what happens, and > > got the error messages posted below when building a little, default > > "Hello World!" program that had worked using GWT 1.7. In trying to > > figure out the problem, I came across an old post somewhere that > > suggested older versions of IntelliJ wouldn't work with later versions > > of GWT, but it wasn't clear which versions numbers they were talking > > about, or even if this was true. The errors below look to be XML > > Parser-related, but I don't know if there's a way I can point to a > > different parser, or if the problem is actually something else. > > > So my question is...is it possible to develop with GWT 2 using > > IntelliJ 7.0.5? I'd rather not spend time on something that ultimately > > turns out to be futile, and when I asked the question over on the > > IntelliJ forum, I didn't get a response. Thanks. > > > Information:Compilation completed with 42 errors and 0 warnings > > Information:42 errors > > Information:0 warnings > > Error:[ERROR] Line 23: Unexpected element 'define-configuration- > > property' > > Error:Failure while parsing XML > > Error:at com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement > > (DefaultSchema.java:80) > > Error:at com.google.gwt.dev.util.xml.Schema.onUnexpectedElement > > (Schema.java:93) > > Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement > > (ReflectiveParser.java:186) > > Error:at > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement > > (AbstractSAXParser.java:501) > > Error:at > > com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement > > (AbstractXMLDocumentParser.java:179) > > Error:at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement > > (XMLDocumentFragmentScannerImpl.java:1339) > > Error:at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl > > $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747) > > Error:at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next > > (XMLDocumentScannerImpl.java:648) > > Error:at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument > > (XMLDocumentFragmentScannerImpl.java:510) > > Error:at > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse > > (XML11Configuration.java:807) > > Error:at > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse > > (XML11Configuration.java:737) > > Error:at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse > > (XMLParser.java:107) > > Error:at > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse > > (AbstractSAXParser.java:1205) > > Error:at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl > > $JAXPSAXParser.parse(SAXParserImpl.java:522) > > Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse > > (ReflectiveParser.java:314) > > Error:at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 > > (ReflectiveParser.java:48) > > Error:at com.google.gwt.dev.util.xml.ReflectiveParser.parse > > (ReflectiveParser.java:385) > > Error:at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad > > (ModuleDefLoader.java:243) > > Error:at com.google.gwt.dev.cfg.ModuleDefSchema > > $BodySchema.__inherits_begin(ModuleDefSchema.java:212) > > Error:at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > Error:at sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:39) > > Error:at sun.reflect.DelegatingMethodAccessorImpl.invoke > > (DelegatingMethodAccessorImpl.java:25) > > Error:at java.lang.reflect.Method.invoke(Method.java:597) > > Error:at com.google.gwt.dev.util.xm