Skip to content

Update C#/Omnisharp extension #345

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

Closed
vimota opened this issue Mar 27, 2019 · 4 comments
Closed

Update C#/Omnisharp extension #345

vimota opened this issue Mar 27, 2019 · 4 comments
Assignees
Labels
extension The issue needs to be fixed in the extension

Comments

@vimota
Copy link

vimota commented Mar 27, 2019

  • code-server version: latest
  • OS Version: Linux VM
  • Extension: C#

Description

I'm having issues with the C# extension when running code-server in docker. Even after installing dotnet in the docker container, the extension/omnisharp has issues picking up the right MSBuild directory. I also noticed that the C# extension is out of date, and perhaps these issues may be resolved by updating!

@NGTmeaty
Copy link
Contributor

@foresthoffman may be able to help you.

@foresthoffman
Copy link
Contributor

@vimota What errors are you seeing in the developer console?

@vimota
Copy link
Author

vimota commented Mar 29, 2019

It was an issue with dotnet CLI not being installed. I created a Docker image based on code-server that pre-installs the necessary CLI: https://gist.github.com/vimota/14bc6349f6cce30bdd022a5e2ef1abbc.

From there I'm able to:

  1. Install Omnisharp
  2. Omnisharp starts up and seems to complete restoring project but when you go to a C# file in the project there's hundreds of errors and import issues.
  3. In the terminal, you run dotnet restore <path/to/solution.sln>.
  4. You refresh the page, and on this run omnisharp will pick up all the definitions and cross references, and allow running tests.

It's far from ideal but this setup at least works. Perhaps updating the extension will resolve step 2-4?

@code-asher code-asher added the extension The issue needs to be fixed in the extension label Oct 30, 2019
@nhooyr
Copy link
Contributor

nhooyr commented Jan 29, 2020

See #1299

@nhooyr nhooyr closed this as completed Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension The issue needs to be fixed in the extension
Projects
None yet
Development

No branches or pull requests

5 participants