eclipsesource/jshint-eclipse — Issue #10: Errors running builder 'builder' after switching to 0.9.2
Author: ifurnadjiev
Created: 2012-02-27 09:06:20+00:00
State: open

I'm using Indigo SR2. With version 0.9.2 a get an error box every time when I save a javascript file (build workspace):
---
Errors occurred during the build.
Errors running builder 'builder' on project 'org.eclipse.rap.rwt'.
-2
---
In my workspace log I found:
---
!ENTRY org.eclipse.core.resources 4 75 2012-02-27 09:37:52.584
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.eclipsesource.jshint.ui 4 75 2012-02-27 09:37:52.584
!MESSAGE Errors running builder 'builder' on project
'org.eclipse.rap.rwt.jstest'.
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: -2
at com.eclipsesource.jshint.Text.getLineOffset(Text.java:42)
at
com.eclipsesource.jshint.ui.internal.builder.MarkerHandler.handleProblem(MarkerHandler.java:34)
at com.eclipsesource.jshint.JSHint.handleProblems(JSHint.java:194)
at com.eclipsesource.jshint.JSHint.check(JSHint.java:129)
at
com.eclipsesource.jshint.ui.internal.builder.JSHintBuilderVisitor.check(JSHintBuilderVisitor.java:99)
at
com.eclipsesource.jshint.ui.internal.builder.JSHintBuilderVisitor.visit(JSHintBuilderVisitor.java:66)
at
com.eclipsesource.jshint.ui.internal.builder.JSHintBuilderVisitor.visit(JSHintBuilderVisitor.java:55)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:69)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
at
org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
at
com.eclipsesource.jshint.ui.internal.builder.JSHintBuilder.incrementalBuild(JSHintBuilder.java:60)
at
com.eclipsesource.jshint.ui.internal.builder.JSHintBuilder.build(JSHintBuilder.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)