madskristensen / NpmTaskRunner

Visual Studio extension
Other
88 stars 32 forks source link

TRX error: "Failed to run package.json..." #12

Closed scottaddie closed 8 years ago

scottaddie commented 8 years ago

With this extension installed, I noticed that upon creating a new app via the ASP.NET 5 "StarterWeb" project template, the following error appears in the Task Runner Explorer view of the Output tab in VS 2015 Update 1 (with the ASP.NET 5 RC 1 Update 1 tooling installed):

npm_scripts_task_runner_error

If I close Visual Studio and reopen the same project which I created, the same problem occurs. Also, if I the error appears each time I click the "Show All Files" icon in Solution Explorer. If I uninstall the extension and then create a new project or open this same project, the error doesn't occur. If I add a script with the extension installed, the error doesn't occur. The extension seems to assume that scripts already exist in package.json.

I was able to reproduce this problem on 3 different machines, all with slightly different Visual Studio configurations and extensions.

madskristensen commented 8 years ago

I've investigated the issue and there is nothing that can be done from this extension to fix it. The issue lies with the Task Runner Explorer extensibility code and I've opened an internal bug (176952) on the VS Web Team to fix it. Closing it here.

scottaddie commented 8 years ago

@madskristensen Thanks for the update!