Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot select project with omnisharp because of quickPickSeparators #4907

Closed
jeffhollan opened this issue Nov 25, 2021 · 25 comments · Fixed by #4914
Closed

Cannot select project with omnisharp because of quickPickSeparators #4907

jeffhollan opened this issue Nov 25, 2021 · 25 comments · Fixed by #4914

Comments

@jeffhollan
Copy link

Issue Type: Bug

I'm using the insider build, at first I thought this was because of one machine, but now I have the same behavior on my Mac M1 and my Windows 11 device. Whenever I try to select a project I get the below.

Command 'OmniSharp: Select Project' resulted in an error (Extension 'ms-dotnettools.csharp' CANNOT use API proposal: quickPickSeparators.
Its package.json#enabledApiProposals-property declares: [] but NOT quickPickSeparators.
The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-dotnettools.csharp)

Extension version: 1.23.16
VS Code version: Code - Insiders 1.63.0-insider (Universal) (1e473b624f088fc05269891170a8ffa1c84a35a6, 2021-11-25T07:59:08.754Z)
OS version: Darwin arm64 21.1.0
Restricted Mode: No

System Info
Item Value
CPUs Apple M1 Max (10 x 24)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 4, 5, 3
Memory (System) 64.00GB (16.10GB free)
Process Argv . --crash-reporter-id a3331069-8570-41bd-a870-a2bc43c4f676
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
pythonrunftest32:30365365
pythonf5test824:30361779
javagetstartedt:30350119
pythonvspyt187:30365360
vsaa593:30376534
vsc1dst:30396469
pythonvs932:30404738
vscexrecpromptt2:30397559
vscop804cf:30404767
vs360:30404995

@jeffhollan
Copy link
Author

jeffhollan commented Nov 25, 2021

as an FYI on both of these I have .NET installed already and in the PATH

dotnet --list-sdks
6.0.100 [/usr/local/share/dotnet/sdk]

@microdee
Copy link

same happening for me on windows with .NET 5

@ddjerqq
Copy link

ddjerqq commented Dec 10, 2021

im having same issue, anyone got solution?

@stevef51
Copy link

I too have just discovered this - this is more than painful, I have a MBPro with 64GB RAM (ie plenty) and a large Git repo with 10 or so .NET (Core) 5 projects each with their own Dev Containers - I was mounting my sourcecode from the Mac host into the dev containers, however I think the OSX host mount driver was too slow and caused endless issues with OmniSharp timing out and basically meant Intellisense was almost always broken (ie shows "Loading..." tooltip and never returns) - so I went to the trouble of creating Dev Containers with no host mount, ie the Dev Container would Git fetch into a standard Docker volume sidestepping the host volume driver altogether - this seems mostly to work, but I still find I have to occasionally perform an "OmniSharp Select Project" to get Intellisense working - but now with this new error I have no intellisense at all

@jesperkristensen
Copy link

Does anyone know how to install an old working version until a fix is released? My VS Code is basically bricked now.

@DiomedesDominguez
Copy link

In my case my problem was fixed by looking at the sln file and checking that every project was referenced correctly: correct path and name. After that, a simple restart of the VSCode was enough.

@scarletquasar
Copy link

In my case my problem was fixed by looking at the sln file and checking that every project was referenced correctly: correct path and name. After that, a simple restart of the VSCode was enough.

I dont even have a solution file, your comment is useless

@DiomedesDominguez
Copy link

In my case my problem was fixed by looking at the sln file and checking that every project was referenced correctly: correct path and name. After that, a simple restart of the VSCode was enough.

I dont even have a solution file, your comment is useless

Sorry for bother you, I came to this issue a few hours ago, managed to resolve it and wanted to share my findings. Check in your .csproj files for inconsistences regarding other projects references.

The omnisharp have a several weeks since the last release, so maybe the problem is in the VSCode. To test this you can create a new project in a clean folder and watch if the message persists.

@scarletquasar
Copy link

In my case my problem was fixed by looking at the sln file and checking that every project was referenced correctly: correct path and name. After that, a simple restart of the VSCode was enough.

I dont even have a solution file, your comment is useless

Sorry for bother you, I came to this issue a few hours ago, managed to resolve it and wanted to share my findings. Check in your .csproj files for inconsistences regarding other projects references.

The omnisharp have a several weeks since the last release, so maybe the problem is in the VSCode. To test this you can create a new project in a clean folder and watch if the message persists.

It is happening with default created projects, like dotnet new console

@stevef51
Copy link

stevef51 commented Dec 14, 2021 via email

@yentheo
Copy link

yentheo commented Dec 14, 2021

Had the same problem, downgrading to VS Code 1.62 worked for me based on this so question (and response)
https://stackoverflow.com/questions/70290626/how-to-solve-the-problem-that-cant-select-project-using-omni-sharp-on-vs-core

@itsmuntadhar
Copy link

can confirm that the issue happened after upgrading VSCode to 1.63, downgrading to 1.62 solved it

@OdisBy
Copy link

OdisBy commented Dec 14, 2021

I downgraded to 1.62 and solved it too.

@two-bridges
Copy link

Hi all,

From here: #4914 (comment)

... you can install the prerelease build from https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.23.18-beta2 as a workaround until a release is ready

@srgonzalez
Copy link

Hello, in my case installing the beta version 1.24.0 of OmniSharp extension solved the error.

@HMBond
Copy link

HMBond commented Jan 3, 2022

In my case my problem was fixed by looking at the sln file and checking that every project was referenced correctly: correct path and name. After that, a simple restart of the VSCode was enough.

It is worth mentioning that omnisharp (and C# extension for VSCode) throws errors and does not auto-suggest when there is no .sln file or your project is not referenced correctly within the .sln file.

@ras-relativity
Copy link

Omnisharp v1.24.0-beta1 did not fix my issue, I downgraded vscode to 1.62.3 and 1.23.17 omnisharp to get it working.

@nathan130200
Copy link

For me on vscode on windows, v1.24.0 beta fixed problem.

@admachiano
Copy link

Hello, in my case installing the beta version 1.24.0 of OmniSharp extension solved the error.

This solved it for me too

@Skyedra
Copy link

Skyedra commented Jan 5, 2022

Quick downgrade command for linux users:

apt-get install code=1.62.3-1637137107

I'm a little surprised this is broken in the default shipping configuration of vscode and the fix hasn't been deployed yet a month later. Given how important intellisense is, losing it makes vscode basically unusable. Priority up, please?

@m4ss1m0g
Copy link

Quick downgrade command for linux users:

apt-get install code=1.62.3-1637137107

I'm a little surprised this is broken in the default shipping configuration of vscode and the fix hasn't been deployed yet a month later. Given how important intellisense is, losing it makes vscode basically unusable. Priority up, please?

And the issue is marked closed!

@thug1705
Copy link

Updating to v1.24.0 resolved my issue on Windows x64. Here are instructions how you can install pre-release version in VsCode.

https://github.com/OmniSharp/omnisharp-vscode/wiki/Installing-Beta-Releases

@kforeverisback
Copy link

VSCode 1.63.2 Windows/WSL2
Downloaded latest omnisharp v1.24.0 and installed via VSIX solved the issue

@jesperkristensen
Copy link

jesperkristensen commented Jan 21, 2022

I can't get the new version installed. https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp says that the latest version is 1.24.0, but if I check for extension updates within Code, it says v1.23.17 is the newest. If I uninstall the extension and restart Code, it says the version is v1.24.0, but if I then click Install it changes to v1.23.17. I am not sure if it is safe to install a VSIX file from a github page.

Edit: I am using WSL, and it appears 1.24.0 is not released for Linux x64 yet :(

@nathan130200
Copy link

nathan130200 commented Jan 22, 2022

@jesperkristensen You need manually install version from github releases tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.