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

Web Tools Platform (WTP) validation is acitvated by default but can not be suspended (or configured) via GUI preferences #859

Closed
mplukas opened this issue Oct 19, 2022 · 3 comments
Labels
for: eclipse something that is specific for Eclipse type: bug

Comments

@mplukas
Copy link

mplukas commented Oct 19, 2022

STS 4 includes Maven WTP support and basic support for WAR projects. By default in STS 4 WTP validation is enabled and WAR project building/refreshing activates various (default) WTP validators. However STS 4 is missing preferences for WTP validation configuration and also there is not direct way to suspend WTP validators. On bigger projects (e.g. having a lot of XML files) validation can take considerable amount of time and usually is not desired.

To reproduce create a new Java faceted project with facet "Dynamic Web Project" (or facet "Utility") - e.g. by creating Spring Starter maven WAR project. Add some XML resources (with errors). Initiated project build/update (e.g. Alt+F5 for m2e project) project. Notice "Validating 'project'" in progress view (that can take considerable time if there are a lot of XML or other resources that WTP validates by default). Also notice validation errors in the problems view of the type "XML problems" (not of the type "Language Server").

Workaround: import Eclipse preference (*.epf) with the setting
/instance/org.eclipse.wst.validation/suspend=true
in order to suspend all WTP validators.

STS 4 should disable WTP validation out of the box.

@BoykoAlex
Copy link
Contributor

BoykoAlex commented Oct 20, 2022

I'm thinking of setting org.eclipse.wst.validation/suspend=true in the sts product. Thus if one downloads STS distro this setting is going to be set. I suppose we wouldn't want to mess with this setting STS plugins installed via update site...
(cc: @martinlippert)

@BoykoAlex
Copy link
Contributor

Here is the fix: 2cb7b92

@BoykoAlex
Copy link
Contributor

BoykoAlex commented Oct 20, 2022

Please look for the fix in 4.16.1. It is soon to be released (~1 week)

@martinlippert martinlippert added for: eclipse something that is specific for Eclipse and removed status: waiting-for-triage labels Oct 20, 2022
@martinlippert martinlippert added this to the 4.16.1.RELEASE milestone Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse type: bug
Projects
None yet
Development

No branches or pull requests

3 participants