]
Victor Rubezhny resolved ERT-428.
---------------------------------
Fix Version/s: Neon.1 (4.6)
Resolution: Done
On projects with builders JavaScript Validator and Validation xml
files are validated twice and error markers are duplicated [EBZ#495625]
-----------------------------------------------------------------------------------------------------------------------------------------
Key: ERT-428
URL:
https://issues.jboss.org/browse/ERT-428
Project: Eclipse Release Train
Issue Type: Task
Components: JSDT
Reporter: Friendly Jira Robot
Assignee: Victor Rubezhny
Labels: General, bzira
Fix For: Neon.1 (4.6)
When a project has enabled builders JavaScript Validator and Validation,
org.eclipse.wst.xml.core.internal.validation.eclipse.Validator is called twice from
org.eclipse.wst.validation.internal.ValManager and all results are summed. As the result,
validation error messages are duplicated.
ValBuilderJob.runInWorkspace() has a loop in which it repeats validation until
getRequest() returns null. Then ValManager.validate(IProject,...) calls delete markers,
but it works only for the first call, it is designed to accumulate markers created in
multiple calls from ValBuilderJob during the same build.
Two requests that make the same file to be validated twice come independently from
1) org.eclipse.wst.validation.internal.operations.ValidationBuilder
2) org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder
by method newBuild().
When I disable JavaScript Validator in project properties in section Builders, there is
no more duplication of markers.