[jbosstools-issues] [JBoss JIRA] (ERT-428) On projects with builders JavaScript Validator and Validation xml files are validated twice and error markers are duplicated [EBZ#495625]

Friendly Jira Robot (JIRA) issues at jboss.org
Tue Oct 4 13:26:00 EDT 2016


Friendly Jira Robot created ERT-428:
---------------------------------------

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


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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list