Skip to content

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

@RickyLin

Description

@RickyLin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions