Bug 581509 - Preferences Validation Settings Add Rule
Summary: Preferences Validation Settings Add Rule
Status: NEW
Alias: None
Product: Incubator
Classification: Eclipse Project
Component: e4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal with 6 votes (vote)
Target Milestone: ---   Edit
Assignee: E4 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-09 09:04 EST by Stefan Eder CLA
Modified: 2024-05-07 11:21 EDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Eder CLA 2023-02-09 09:04:54 EST
With Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components) Version: 2022-12 (4.26.0) Build id: 20221201-1913

I am unable to add a rule in Window -> Preferences -> Validation -> Settings (of any Validator) -> Add Rule

because the Dialog "New Filter Rule Wizard" comes up unresponsive.

However I am able to close the Dialog "Validation Filters for XML Validator" (or any other, as chosen before) - only then the Dialog "New Filter Rule Wizard" becomes responsive. However then it simply doesnt change anything.
Comment 1 Keith Trudell CLA 2023-02-12 08:34:26 EST
I can verify this problem with Eclipse Version: 2022-12 Build id: 20221201-1913

Exact same behaviour for "JavaScript Validation" and "Client-side Validation"

Using Windows 11
Comment 2 João Duarte CLA 2023-03-16 07:46:25 EDT
Same here:
Version: 2022-12 (4.26.0)
Build id: 20221201-1913
Comment 3 Flora KAPGNEP CLA 2023-08-03 17:50:50 EDT
I have still the same issue with the following configuration:
  ** Eclipse IDE version: 4.27.0.v20230302-0300
  ** OS is Windows 10
There is nothing in the "Error log" panel. I have found no way to alter the rules manually (for eg. by editing a configuration file used by wst.validation. The file used has a complex structure)


The same behaviour also occurs if I want to add a SonarQube server. The dialog allowing to select SonarQube or SonarCloud cannot be clicked (
Comment 4 Steve Francisco CLA 2023-11-14 06:13:04 EST
This also happens on MacOS (2023-09 build).
Being unable to add rules, for example to exclude the node_modules folder for Javascript projects, makes the validation fairly useless because of thousands of problems it reports that are irrelevant to my project.  This seems like it should be higher than a P3.
Comment 5 Paul Ramsden CLA 2023-11-22 05:11:18 EST
I have exactly the same problem as that described by Stefan Eder. 

Version: 2023-09 (4.29.0)
Build id: 20230907-1323

When trying to add a rule to a group, the Rule dialog is blocked by the calling window. If I close the calling window, the Rule dialog can be operated but no changes are saved.

As a workaround until the bug is fixed, would it be possible to edit the settings file directly? I assume that it is in '.settings/org.eclipse.wst.validation.prefs'. What must I enter to exclude XML Schema validation for all files in folder XYZ?
Comment 6 Flora KAPGNEP CLA 2023-11-22 06:05:07 EST
(In reply to Paul Ramsden from comment #5)
> I have exactly the same problem as that described by Stefan Eder. 
> 
> Version: 2023-09 (4.29.0)
> Build id: 20230907-1323
> 
> When trying to add a rule to a group, the Rule dialog is blocked by the
> calling window. If I close the calling window, the Rule dialog can be
> operated but no changes are saved.
> 
> As a workaround until the bug is fixed, would it be possible to edit the
> settings file directly? I assume that it is in
> '.settings/org.eclipse.wst.validation.prefs'. What must I enter to exclude
> XML Schema validation for all files in folder XYZ?

Yes, you an edit it manually but the structure is not easy, it is TLV-like.
What I do now is open the projet with a 2019 IDE and edit the rules
Comment 7 My Su CLA 2023-12-06 12:09:18 EST
Version: 2023-09 (4.29.0)
Build id: 20230907-1323
Windows 11 Home

java version "17.0.9" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 17.0.9+11-LTS-201)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.9+11-LTS-201, mixed mode, sharing)

I am facing the same issue. The reason why I was trying to alter the rule was to add  a rule to include group for JPA persistence.xml validation based on guidance as available in,

https://stackoverflow.com/questions/3701901/eclipse-does-not-recognize-content-of-persistence-xml

And the reason why I was trying this was because I was facing this error every time I tried to Update Maven project.

Could not update project AssociationTest configuration
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'https://jakarta.ee/xml/ns/persistence' not found. (platform:/resource/AssociationTest/src/main/resources/META-INF/persistence.xml, 2, 270)
Comment 8 Luca Faustin CLA 2024-05-07 11:21:39 EDT
Same here:
Version: 2024-03 (4.31.0)
Build id: 20240307-1437
OS: Windows 11