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
0
votes
1 answer

OmniSharp Partially Fails After Returning "No Symbol Found"

On Windows 10, I am trying to get C# v1.25.2 via OmniSharp working for Unity 2021.3.16f1. However, when I try to run Visual Studio Code, OmniSharp returns an error saying there was "No Symbol Found". Afterwards, C# intellisense seems to recognise…
0
votes
0 answers

mono: command not found in VSCode

/Users/jaehunshim/.vscode/extensions/ms-dotnettools.csharp-1.24.4-darwin-arm64/.omnisharp/1.39.3-beta.27/run: line 19: mono: command not found The following error is showing when I'm trying to open omnisharp project. I already download latest…
0
votes
0 answers

Project Loading Failed. Empty Project and Freshly installed VScode and Unity

I created an empty project and a C# script file .When I tried to open script in vs code project loading failed. This is my Omnisharp Output. ` Starting OmniSharp server at 12/17/2022, 8:14:59 AM Target: f:\BarryAllen14\Unity Projects\My…
0
votes
1 answer

System.BadImageFormatException Error on VS Code Startup

I am in the process of getting everything I need to start learning C# and I've run into an issue. I am trying to use VS code as my editor but the IntelliSense isn't working. I think it's because OmniSharp cannot start up. When it tries to it run…
Panthers27
  • 17
  • 3
0
votes
0 answers

VS Code Formatting - only selected features

I use VS Code for my C# code. Unfortunately, the formatter lets you define many details of your code, especially where spaces should go within a line, a function call, a conditional statement etc., and enforces the whole set of options. This makes…
Ingmar
  • 2,361
  • 3
  • 19
  • 33
0
votes
2 answers

Omnisharp is not loading for a Godot Engine Project

I'm trying to use C# in the Godot engine and Omnisharp is not cooperating. When I load the solution in Visual Studio Code I get the following error: Target: c:\Users\riley\Documents\Glasses\Glasses.sln OmniSharp server started with .NET…
Riley
  • 21
  • 5
0
votes
2 answers

C# (Visual Studio IDE / VSCode) - how to hide .NET types

When I begin to write type Visual Studio IDE and VSCode show not only the C# types but .Net types also (i.e: int - Int16, byte - Byte): Is it possible to hide .Net type intelliSense?
0
votes
1 answer

C# How to make VSCode suggest values of same type first?

I am using VScode to write scripts in C# for unity. It really annoys me that Intellisense suggests based on some random algorithm when it would be much better to suggest based on value types. In the example below you can see that I am trying to…
0
votes
0 answers

Command failed: dotnet.exe --version "dotnet.exe" in VSCode

Other articles on stackoverflow suggest non-working solutions, tried to reinstall .NET, VSCode, changed .net sdk path to omnisharp.dotnetpath and don't know what to do Because of this, does not write references and tips
WasTabon
  • 57
  • 1
  • 4
0
votes
1 answer

VisualStudio Code(1.70.1 version) Issue or ? - No Compile Check for ".cs" files (C# Language)

Recently I updated my Visual Studio Code to a new version(1.70.1 - system setup), but it seems that I encounter some problems. So after the update, seems that there is no compile check for the cs files. (C# language) Also after I right click - "Go…
SilviuM
  • 79
  • 9
0
votes
1 answer

Where and how to include Using directives in C# and .NET6?

I am programming C# in Visual Studio Code with .NET 6. In .NET 6, an explicit main method is no longer necessary. Does anyone know how and where to include using directives like using System.Diagnostics? This is what my program currently looks…
Z.J
  • 301
  • 1
  • 7
0
votes
1 answer

Set up c# language server (omnisharp) for neovim to develop app with .NET Core 5.0.17

I been battling to set up a C# language server (omnisharp) for neovim. The main problem is that I gotta use .NET Core 5.0.17 and omnisharp no longer ships with mono and MSBuild tools (mentioned in omnisharp-vscode repo announcement section). When I…
MrRobot
  • 47
  • 1
  • 6
0
votes
1 answer

[fail]: OmniSharp.MSBuild.ProjectLoader

I want to learn how to code in C# using Visual Studio Code. But when I open my project or restart OmniSharp, I will get a notification saying: Some projects have trouble loading. Please review the output for more details. And then, when I check the…
Gnoyo
  • 11
  • 1
0
votes
1 answer

Setup custom diagnostic analyzer in Virtual Studio Code with OmniSharp

I wrote a custom DiagnosticAnalyzer and want to use it in Visual Studio Code with Omnisharp. The analyzer is based on the Visual Studio solution template "Analyzer with Code Fix (.NET Standard)" containing five projects (with suffixes .CodeFixes,…
itkdk
  • 11
  • 2
0
votes
1 answer

OmniSharp unit test not running

Does anyone know why my unit test is not getting picked up? I am using OmniSharp on Visual Studio Code. When I try run the test it says 0 skipped, 0 failed and 0 passed. using NUnit.Framework; class Test { [SetUp] public void Init() {} …