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.

Omnisharp doesn't start up when c# project is in OneDrive folder with "File On-Demand" on

See original GitHub issue

Environment data

dotnet --info output: 2.0.2 VS Code version: 1.17.2 C# Extension version: 1.12.1 Windows Version: Windows 10 1709 (OS Build 16299.19) It has a new OneDrive feature “File On-Demand”

Steps to reproduce

  1. Close all VS Code windows/applications if any.
  2. Make sure the OneDrive Setting “Files On-Demand” is on. image
  3. Create a simple “Hello World” console app in OneDrive folder: dotnet new console image
  4. Open the new created project in VS Code, open “Program.cs” file

Expected behavior

OmniSharp should start up.

image I moved the “HelloWorld” project out of OneDrive folder, then it worked.

Actual behavior

OmniSharp doesn’t start up.

image

Visual Studio 2017 has similar problem when a project is in OneDrive folder no matter if “File On-Demand” is on or off. I guess Omnisharp would not start up as long as the project is in OneDrive folder even if “File On-Demand” is off.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pmaleckacommented, Nov 14, 2017

Same on my end, vscode x64 1.18.0

0reactions
marco-carvalhocommented, Aug 4, 2018

i’m having this problem right now; when I open the solution with VSCode on Ubuntu, Omnisharp doesn’t start, but when I do it on Windows, it works

edit: holy hell, i just figured that this configs on the settings of VSCode were making Omnisharp not working:

"files.exclude": {
    "**/obj": true,
    "**/bin": true,
    "**/*.csproj": true,
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

C# intellisense not working in VS Code
In latest Windows 10 release, the C# plugin can't start up when a project resides in a OneDrive folder with "File On-Demand" feature...
Read more >
github - Franky's Notes
This portal is a open-source project that has been announced a few weeks ago. In this post, I will share my first impressions...
Read more >
Front-end Development with ASP.NET Core, Angular, and ...
NET Core Startup Class. 14. New Fundamental Features of ASP.NET Core. 15. Environments. 15. Dependency Injection. 17. What Is Dependency Injection?
Read more >
Search Results for "g-code"
Fira Code is a free and open source monospaced font containing programming ligatures for the most commonly-used multi-character combinations in programming.
Read more >
Could not find a part of the path \roslyn\csc.exe
Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:.
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