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.

'"<Path to the omnisharp executable>"' is not recognized as an internal or external command,

See original GitHub issue

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.103)

Product Information:
 Version:            2.1.103
 Commit SHA-1 hash:  60218cecb5

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.103\


Microsoft .NET Core Shared Framework Host



  Version  : 2.0.6

  Build    : 74b1c703813c8910df5b96f304b0f2b78cdf194d

VS Code version:

Version 1.21.1
Commit 79b44aa704ce542d8ca4a3cc44cfca566e7720f1
Date 2018-03-14T14:46:47.128Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

C# Extension version:

1.14.0

Steps to reproduce

Install the extension, nothing is working

Expected behavior

Intellisense, navigate to errors etc etc etc

Actual behavior

Error in bottom right of vscode, after clicking on it:

Starting OmniSharp server at 2018-3-27 23:35:39
    Target: c:\Users\Bassie\Source\github\QC Core

OmniSharp server started
    Path: <Path to the omnisharp executable>
    PID: 10000

'"<Path to the omnisharp executable>"' is not recognized as an internal or external command,
operable program or batch file.
Starting OmniSharp server at 2018-3-27 23:36:03
    Target: c:\Users\Bassie\Source\github\QC Core

OmniSharp server started
    Path: <Path to the omnisharp executable>
    PID: 8636

'"<Path to the omnisharp executable>"' is not recognized as an internal or external command,
operable program or batch file.
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
QVMastercommented, Jun 14, 2021

I found the path: C:\Users[Your User Name].vscode\extensions\ms-dotnettools.csharp-[Version].omnisharp[Version]

1reaction
sebasijancommented, May 8, 2020

@Matt11

Apologies Matt I just saw this, but can confirm:

  1. File -> Preferences -> Settings
  2. Search omnisharp.path
  3. Click Edit in settings.json
  4. update the line that looks like this: "omnisharp.path": ""
Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code Error: 'OmniSharp.exe' is not recognized - Medium
The Visual Studio code was throwing an OmniSharp exception an exception while ... is not recognized as an internal or external command.
Read more >
how do I get the Omnisharp extension to work in Visual Studio ...
I downloaded the package, extracted filed, and tried to placed the folder where it's expected: C:\Users[myUserId].vscode\extensions\ms-vscode.
Read more >
[Solved] Problems with OmniSharp and Visual Studio Code
SOLVED: Fixed the problem by reinstalling VS Code and the C# extension. I've used Visual Studio Code for few days now to edit...
Read more >
omnisharp-vscode - Discover .NET
Official C# support for Visual Studio Code (powered by OmniSharp)
Read more >
How to fix dotnet is not recognized as an internal or ... - YouTube
In this video I will show how to fix dotnet is not recognized as an internal or external command or batch file in...
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