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

omnisharp server not found #1056

Closed
enricforn opened this issue Dec 18, 2016 · 5 comments
Closed

omnisharp server not found #1056

enricforn opened this issue Dec 18, 2016 · 5 comments

Comments

@enricforn
Copy link

Environment data

dotnet --info output:
PS C:\Users\Enric> dotnet --info
.NET Command Line Tools (1.0.0-preview5-004232)

Product Information:
Version: 1.0.0-preview5-004232
Commit SHA-1 hash: 355b6233cb

Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0-preview5-004232

VS Code version: 1.8.0
C# Extension version: 1.5.3

Steps to reproduce

Open a brand new web app with visual studio code, try to compile and it seems omnisharp.exe file is not found:

Message found to omnisharp log:

[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

Message found to c# log:

Updating C# dependencies...
Platform: win32, unknown

Finished

Message found to tasks log:

Failed to launch external program msbuild /property:GenerateFullPaths=true.
spawn msbuild ENOENT

Expected behavior

dotnet core web app should be compiled and able to debug properly.

Actual behavior

dotnet core web app could not be compiled from vs code.

@DustinCampbell new issue created from #938 .

@DustinCampbell
Copy link
Member

That's for creating a new issue! This bit is likely where the problem lies:

Platform: win32, unknown

It looks to me like it's unable to detect the Windows architecture (i.e. 32-bit or 64-bit) that you're running on. So, it fails to pick an OmniSharp server to download.

Could you do the following for me? At a command line, run wmic os get osarchitecture and let me know the output.

@enricforn
Copy link
Author

Command run, and the output is:

PS C:\Users\Enric> C:\Windows\System32\wbem\wmic.exe os get osarchitecture
OSArchitecture
64 bits

Let me know if you need additional info about my environment.

@DustinCampbell
Copy link
Member

Hmmm... that's weird. This line should be catching it: https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/platform.ts#L178.

I note that you typed the full path. Is wmic not on your path?

@enricforn
Copy link
Author

Yes I must type full path because wmic seems was not on path. I review system environment variable "path", and I found C:\Windows\System32...

@enricforn
Copy link
Author

Just added wmi to path and it work fine.

Thanks for your help :) @DustinCampbell

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

No branches or pull requests

2 participants