Questions tagged [omnisharp]

OmniSharp provides refactoring and AST support for the C# language for a variety of plugins written for popular text editors, including Vim, Emacs, Atom, Sublime Text, VS Code, and Brackets.

OmniSharp is a family of Open Source projects, each with one goal - To enable great .NET development in YOUR editor of choice. ~ omnisharp.net)

Background

OmniSharp Server, a project started by Jason Imison was written with the intention of providing refactoring and AST support for the C# language for Vim and later Emacs. Initially it was intended for own use, but grew in popularity and has had wide adoption in the game development community and developers writing C# on non Microsoft platforms.

Support has since been extended by the community to include Atom, Sublime Text and Brackets. OmniSharp has grown to be an umbrella term referring to the server and all plugins.

Today OmniSharp offers a lightweight alternative to traditional IDE's for developers wishing to write in their favourite editors. Offering code completion, formatting and other popular refactoring operations, syntax checking and easy code navigation.

309 questions
7
votes
1 answer

How to solve the problem that can't select project using Omni Sharp on VS Core?

When I use the Omni Sharp to choose a project on VS Code, it occurs an error as follow: Command 'OmniSharp: Select Project' resulted in an error (Extension 'ms-dotnettools.csharp'CANNOT use API proposal: quickPickSeparators. lts…
Hypocrisy
  • 73
  • 1
  • 3
7
votes
1 answer

OmniSharp-VIM, OmniSharp-Roslyn, and dotnet core on Ubuntu 16.10 - Syntax checking not recognizing C# 6 and requires solution file

I am trying to set up my Ubuntu machine for dotnet core development. I've painstakingly installed Omnisharp-vim and set it to work with the OmniSharp-Roslyn server. I also have Syntastic and YouCompleteMe installed. I am getting syntax checking and…
Dale Alleshouse
  • 1,627
  • 2
  • 17
  • 24
6
votes
2 answers

Omnisharp error about dotnet version - Unity

at VSCode launch today I'm receiving this error: Starting OmniSharp server at 27/5/2022, 12:37:25 Target: f:\UnityProjects\MyGame.sln [ERROR] Error: Found dotnet version 5.0.407. Minimum required version is 6.0.100. I read that there have been…
MatterGoal
  • 16,038
  • 19
  • 109
  • 186
6
votes
2 answers

Omnisharp can't start dotnet

I am using VS Code and Unity. Under the output tab (omnisharp log) I get this error Starting OmniSharp server at 5/27/2022, 3:16:43 AM Target: /Users//unity/Test Project 3/Test Project 3.sln [ERROR] Error: Command failed: dotnet…
Sean AH
  • 486
  • 4
  • 8
6
votes
0 answers

VS-Code suppress C# suggestions with .editorconfig/OmniSharp

I am using the latest VS-Code build (1.50.1) and the EditorConfig & OmniSharp plugin (on an up to date Win10 machine). In the C# code there are several blue squiggly lines indicating suggestions, some of them I try to hide/suppress/disable with an…
nonsensation
  • 151
  • 5
6
votes
1 answer

vscode omnisharp not working for solution but works for project

I have folders structured like this: project/csproj A, project/csproj B If I open in vs code project dir, omnisharp works for csproj B only. If I open in vs code project/csproj A directory, omnisharp works for this project. How fix that so I can…
Piotr M
  • 499
  • 3
  • 9
  • 27
6
votes
2 answers

OmniSharp.Dnx.DnxPaths The specified runtime path 'default' does not exist

I'm trying to use OmniSharp with VisualStudio Code and ASP.NET 5 (VNEXT), but when I try to use Omnisharp, I have this problem: [ERROR:OmniSharp.Dnx.DnxPaths] The specified runtime path 'default' does not exist. Searched locations I can run the…
chemitaxis
  • 13,889
  • 17
  • 74
  • 125
6
votes
1 answer

How can I configure the omnisharp syntastic syntax checker to be more lenient?

I've followed this guide for setting up my vim for c#. I works beautifully, but I've got an annoyance: The syntastic checker is a bit too harsh on me. Specifically it advises me to change this line: var parser = new Parser(configuration,…
pius
  • 2,344
  • 1
  • 23
  • 25
5
votes
1 answer

Vscode Omnisharp Always No Quick Fix

The VSCode "quick fix" has never been available for me in C#. Even the most basic quick fix, like importing namespaces for class, auto-implement missing methods from interface, are not available. I am not sure what went wrong (or maybe this is…
Reimirno
  • 148
  • 1
  • 9
5
votes
4 answers

No intellisense in Azure Function Project in my VS Code solution

I added a Azure Function project to my VS Code solution (has other projects) but I'm not receiving any intellisense support. Is this normal, is there no intellisense support for Azure functions? Do I need to add something, somewhere to get…
chuckd
  • 13,460
  • 29
  • 152
  • 331
5
votes
5 answers

Unity: Omnisharp is not finding referenced projects in VSCode

I recently upgraded to Unity 2019.3.0f6. When I opened one of my c# files, I noticed that UnityEngine.UI wasn't being recognized as a valid namespace. This caused me to get red squiggles whenever I referenced this namespace. IntelliSense also…
Levi J
  • 85
  • 1
  • 2
  • 9
5
votes
1 answer

Microsoft C# Extension for VSCode cannot find .NET Core SDK

Issue Description I installed the .NET Core 3.1.0 SDK, tried to add the Microsoft C# extension to VSCode and got the following popup: I'm quite sure I've installed everything correctly. After messing with this for long enough, I tried uninstalling…
Finley
  • 392
  • 1
  • 8
  • 18
5
votes
2 answers

VSCode OmniSharp/C# intellisense does not see Ionide/F# lib modules/namespaces

I am using VSCode-Insiders and OmniSharp C# intellisense does not see F# types/modules/namespaces. Here is simple project: module T1 let t = 42 And C#: using System; namespace flowRunner { class Program { static void Main(string[]…
dvitel
  • 563
  • 3
  • 10
5
votes
4 answers

how do I get the Omnisharp extension to work in Visual Studio Code

In Visual Studio Code I tried to install the Omnisharp extension so that I can get formatting (among other things). this is the c# log: Installing C# dependencies... Platform: win32, x86_64 Downloading package 'OmniSharp for Windows (.NET 4.6 /…
krazyk4tlady
  • 389
  • 1
  • 5
  • 13
5
votes
2 answers

How do I make VSCode use C# 7 instead of C# 4?

My VSCode debugger says that I'm using c# 4. I can't find any docs about getting VSCode to switch to C# 7. I'm on Windows 10. I don't know if this is a DotNet Core issue, a VSCode issue, or an Omnisharp issue. I would appreciate someone pointing me…
Stacker
  • 74
  • 4
1 2
3
20 21