This project is read-only.
2

Resolved

Error on Visual Studio Online hosted build controller

description

In certain environments, such as a Visual Studio Online hosted build controller, the MSBuild task can fail with the following error:

"C:\a\src\XXX\ProjectX\ProjectX.csproj" (default target) (8) ->
(JSLintNet target) ->
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: The "JSLintTask" task failed unexpectedly. [C:\a\src\XXX\ProjectX\ProjectX.csproj]
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: Noesis.Javascript.JavascriptException [C:\a\src\XXX\ProjectX\ProjectX.csproj]
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: at Noesis.Javascript.CompileScript(Local<v8::Script> , Char source_code, Char* resource_name) [C:\a\src\XXX\ProjectX\ProjectX.csproj]
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: at Noesis.Javascript.JavascriptContext.Run(String iSourceCode) [C:\a\src\XXX\ProjectX\ProjectX.csproj]
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: at JSLintNet.JSLintFactory.CreateContext() [C:\a\src\XXX\ProjectX\ProjectX.csproj]
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: at JSLintNet.JSLintTask.Execute() [C:\a\src\XXX\ProjectX\ProjectX.csproj]
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\a\src\XXX\ProjectX\ProjectX.csproj]
C:\a\src\XXX\packages\JSLintNet.MSBuild.1.6.2\build\JSLintNet.MSBuild.targets(20,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() [C:\a\src\XXX\ProjectX\ProjectX.csproj]

Experiment with different locations for the x86 and amd64 versions of the msvcp100.dll and msvcr100.dll libraries so they can be found by JSLint.NET.

comments

Qube wrote Aug 13, 2014 at 11:59 AM

I've finally been able to replicate this issue, and can confirm it only happens in x64 mode.

It seems to be fixed simply by wrapping the JavaScript context in better error handling, and not by moving the VC runtime libraries around.

I'll confirm my findings and then check in a fix.

bullit wrote Nov 21, 2014 at 9:27 AM

When is the fix for this likely to be checked in?

Qube wrote Nov 21, 2014 at 10:53 AM

The VC++ runtime was a misdirect unfortunately, and not the problem. The build failures appear to be quite random, and can be reproduced both on 32bit and 64bit. I'm worried it's a bug in the JavaScript.NET library or some inconsistency in the Visual Studio Online build servers that we have no control over.

Currently there is no ETA.

Qube wrote Dec 18, 2014 at 9:19 AM

I have been able to eliminate the intermittent errors by switching from JavaScript.NET to ClearScript V8. A new release will be available soon.

Qube wrote Dec 18, 2014 at 9:53 AM

Fixed in 0bc42ccece84