[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]

Ilya Buziuk (JIRA) issues at jboss.org
Wed Nov 30 07:57:04 EST 2016


     [ https://issues.jboss.org/browse/ERT-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilya Buziuk updated ERT-428:
----------------------------
    Sprint: devex #124 December 2017  (was: devex #123 November 2016)


> 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
>
> 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
(v7.2.3#72005)


More information about the jbosstools-issues mailing list