gwt-eclipse-plugin
gwt-eclipse-plugin copied to clipboard
"Language Servers" Errors in Eclipse 2023-03
Downloaded Eclipse 2023-03 Installed gwt-eclipse-plugin via: https://marketplace.eclipse.org/content/gwt-plugin
Create a new project (did not select Ant or Maven as builds, selected Gwt2.9.0)
Eclipse Will show Language Server Errors in the "Markers" tab.
This can be resolved manually telling Eclipse to not check XML issues - use the option below.... (Window...Preferences...Language Servers...Uncheck XML, Select Apply and Close)
This can be also resolved by updating the URL from http to https http://gwtproject.org/doctype/2.9.0/gwt-module.dtd to https://gwtproject.org/doctype/2.9.0/gwt-module.dtd
I incorrectly thought this URL was created in NewModuleWizard.java The URL created there is for http://google-web-toolkit.googlecode.com/svn/tags/ which is not the correct location.
Example Errors: Element type "add-linker" must be declared. Element type "entry-point" must be declared. Element type "inherits" must be declared. Element type "inherits" must be declared. Element type "module" must be declared. Element type "source" must be declared. Element type "source" must be declared. There is '1' error in 'http://gwtproject.org/doctype/2.9.0/gwt-module.dtd'. ... Language Servers
It looks very similar to this issue. (Turning off the XML Language Server setting in Eclipse 2023-03 - hides the error) https://stackoverflow.com/questions/62113303/how-to-avoid-error-messages-in-eclipse-2020-03-for-gwt-ui-xml-files-language-se
See Example Here:
Hi, @jhillbounce, as you probably spotted, the "create new plugin" functionality is performed by the GWT SDK, perhaps you might want to open a ticket there.
But redirects eventually lead to https://www.gwtproject.org/doctype/2.9.0/gwt-module.dtd, as can be shown by a simple
curl -L http://gwtproject.org/doctype/2.9.0/gwt-module.dtd
So... why is the validator failing? What does eclipse say when hovering over line 7?
Regarding "NewModuleWizard.java", there's already an open ticket:
https://github.com/gwt-plugins/gwt-eclipse-plugin/issues/457
Looks like this comes from GWT's project creator: https://github.com/gwtproject/gwt/blob/65a0674ba5f999629d7c92d21122a9a105e78d4f/user/src/com/google/gwt/user/tools/WebAppCreator.java#L544-L552
As discussed in the other issue, we can probably adjust the redirect if we understand what it needs exactly - for example if the www redirect still worked (which I believe it did for the old GAE server), but somehow the https redirect doesn't?
Great info @protoism I had not found the source of this yet - I'll do digging around in the GWT SDK and at least get a ticket created.
Eclipse says this when hovering over line 7 - which is not very helpful in my opinion. There is '1' error in 'http://gwtproject.org/doctype/2.9.0/gwt-module.dtd'. (REDACTED PROJECT DETAILS) line 7 Language Servers (This error also shows up as the last item in the "Language Servers" error in the screenshot earlier in this thread.)