Closed paulvi closed 10 years ago
One of MyEclipse users has experienced very similar error with JSHint and Tern combination:
com.eclipsesource.json.ParseException: Unexpected end of input at 1:-1
at com.eclipsesource.json.JsonParser.error(JsonParser.java:371)
at com.eclipsesource.json.JsonParser.expected(JsonParser.java:362)
at com.eclipsesource.json.JsonParser.readValue(JsonParser.java:97)
at com.eclipsesource.json.JsonParser.parse(JsonParser.java:62)
at com.eclipsesource.json.JsonValue.readFrom(JsonValue.java:105)
at com.eclipsesource.json.JsonObject.readFrom(JsonObject.java:138)
at com.eclipsesource.jshint.ui.internal.builder.ConfigLoader.getWorkspaceConfig(ConfigLoader.java:43)
at com.eclipsesource.jshint.ui.internal.builder.ConfigLoader.getConfiguration(ConfigLoader.java:38)
at com.eclipsesource.jshint.ui.internal.builder.JSHintBuilderVisitor.createJSHint(JSHintBuilderVisitor.java:93)
at com.eclipsesource.jshint.ui.internal.builder.JSHintBuilderVisitor.<init>(JSHintBuilderVisitor.java:55)
at com.eclipsesource.jshint.ui.internal.builder.JSHintBuilder.fullBuild(JSHintBuilder.java:53)
at com.eclipsesource.jshint.ui.internal.builder.JSHintBuilder.build(JSHintBuilder.java:34)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
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)
I have tracked down the issue to an OSGi package conflict:
If JSHint is installed first, then Tern is linked to 0.9.0 version and you may not see the issue.
I will provide a fix for this issue.
Should be fixed by #100
Please give an advice why good old 0.9.9 could start producing error when creating new Node Express project in Nodeclipse, mp
eclipse.buildId=4.4.0.I20140606-1215 java.version=1.8.0_05 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN Framework arguments: -product org.eclipse.epp.package.java.product -showLocation Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -showLocation