Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Language Servers" Errors in Eclipse 2023-03 #464

Open
jhillbounce opened this issue Apr 6, 2023 · 3 comments
Open

"Language Servers" Errors in Eclipse 2023-03 #464

jhillbounce opened this issue Apr 6, 2023 · 3 comments

Comments

@jhillbounce
Copy link

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:
InvalidUrlDTD

@protoism
Copy link
Contributor

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?

image

Regarding "NewModuleWizard.java", there's already an open ticket:

#457

@niloc132
Copy link
Member

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?

@jhillbounce
Copy link
Author

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants