OmniSharp / omnisharp-roslyn

OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
MIT License
1.79k stars 420 forks source link

Initializing project system triggers incorrect restore prompt and reprocesses projects multiple times #504

Open troydai opened 8 years ago

troydai commented 8 years ago

Move from: https://github.com/OmniSharp/omnisharp-vscode/issues/141 Author: @natemcmaster

Repro step

Clone entity framework to Mac. From command line: dotnet restore (should succeed) Open VS Code. Select the whole "solution" in "Omnisharp: Select Project".

Expected behavior

Initialize project state and intellisense. No restore necessary.

Actual behavior

VS Code produces dozens of errors "There are unresolved dependencies from '(project)'. Please execute the restore command to continue." This is produce multiple times per project.

Furthermore, the Omnisharp output shows it is continually processing the same projects over and over. Appears to have processed each project state about 40 times.

Full log: omnisharp-log.txt

After about ~4 minutes, project initialization appears done and omnisharp operates as expected.

My setup

VS Code 0.10.11 Using C# 0.3.7 Using omnisharp-roslyn build locally from OmniSharp/omnisharp-roslyn@aab690c (result of mergeing OmniSharp/omnisharp-roslyn#501)

troydai commented 8 years ago

/cc @DustinCampbell

unassigned.