gwt-plugins / gwt-plugins/gwt-eclipse-plugin

"Language Servers" Errors in Eclipse 2023-03

未关闭
#464 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
116
派生
49
PR 合并指标
30 天内没有已合并 PR

描述

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](https://user-images.githubusercontent.com/27926160/230509346-c03b526e-8a4a-4961-97af-0001e788c6cd.png)

贡献指南

这个仓库没有索引到贡献指南

调研方向

在仓库中搜索报告中的 URL http://gwtproject.org/doctype/2.9.0/gwt-module.dtd,并检查报告所讨论的 NewModuleWizard.java。确认生成的 GWT 模块引用了正确的 URL,并且列出的 Eclipse language-server 错误不再发生。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
devtools
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。