Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to parse tasks.json file" with OS specific closure #1140

Closed
kriwar opened this issue Jan 23, 2017 · 0 comments
Closed

"Failed to parse tasks.json file" with OS specific closure #1140

kriwar opened this issue Jan 23, 2017 · 0 comments

Comments

@kriwar
Copy link

kriwar commented Jan 23, 2017

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview2-1-003177)

Product Information:
 Version:            1.0.0-preview2-1-003177
 Commit SHA-1 hash:  a2df9c2576

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64

VS Code version: 1.8.1
C# Extension version: 1.6.2

Steps to reproduce

$ git clone git@github.com:kriwar/dotnetcore-helloworld.git

Open project in VS Code.

Notice the Windows specific closure in https://github.com/kriwar/dotnetcore-helloworld/blob/master/.vscode/tasks.json#L3, if this enclosing statement is removed, things work just fine.

The project works despite the error message, I can run tasks from the VS Code Command Palette without problems.

Expected behavior

Project opens without errors or warnings.

Actual behavior

Error prompt Failed to parse tasks.json file. Follow-up Warn Required assets to build and debug are missing... (I believe this is a follow-on to the error displayed first).

As far as I've been able to tell, this behavior started with v1.6.2 of OmniSharp, error message is emitted from https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/assets.ts#L367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants