question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Activating extension `ms-vscode.csharp` failed: Cannot find module 'jsonc-parser'.

See original GitHub issue

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.4)

Product Information: Version: 2.1.4 Commit SHA-1 hash: 5e8add2190

Runtime Environment: OS Name: Windows OS Version: 10.0.16299 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.4\

Microsoft .NET Core Shared Framework Host

Version : 2.0.5 Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54

VS Code version: 1.20.1 C# Extension version: 1.14.0


For some reason, intellisense isn’t working for me since the CSharp extension fails to load. I’m getting a devtools console error:

[Extension Host] Activating extension `ms-vscode.csharp` failed:  Cannot find module 'jsonc-parser'

image

Other than that, there isn’t much else I see. The “OmniSharp: Restart OmniSharp” and “OmniSharp: Select Project” commands show up on the palette, but when I try to run them, I get a command 'o.restart' not found error:

image

The OmniSharp log doesn’t show up as a menu item on the Output tab either.

Any ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
SheGecommented, Mar 13, 2018

@jemhuntr Had the same and these steps helped me:

  • Uninstall VSCode
  • Remove .vscode directory from user home
  • Install VSCode
  • Install all extensions again
0reactions
colonelchlorinecommented, Apr 3, 2018

Did the trick, sadly. Had to reinstall completely 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Activating extension `ms-vscode.wordcount` failed
When I clicked F5, ./out folder was not generated and I saw failure: Activating extension ms-vscode.wordcount failed: Cannot find module 'd:/ ...
Read more >
MODULE_NOT_FOUND during launch process in Visual ...
Hi, I am using Visual Studio Code and I created my launch.json file. The parse server config is saved in config.json. Please see...
Read more >
JSON editing in Visual Studio Code
Editing JSON with Visual Studio Code. JSON is a data format that is common in configuration files like package.json or project.json .
Read more >
vscode typescript cannot find module or its corresponding ...
in your tsconfig.json . The reason is that visual code IDE is unable to resolve the base url so is unable to resolve...
Read more >
Add a Language Server Protocol extension
You will need to do the following to get your LSP extensions working again: Uninstall the Microsoft Visual Studio Language Server Protocol ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found