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

language server cannot start unless the project is a sln #5923

Closed
Tracked by #5736
imcainess opened this issue Jul 15, 2023 · 6 comments · Fixed by #6062
Closed
Tracked by #5736

language server cannot start unless the project is a sln #5923

imcainess opened this issue Jul 15, 2023 · 6 comments · Fixed by #6062
Assignees
Milestone

Comments

@imcainess
Copy link

Type: Bug

dotnet new console
open in vscode
c# output
Dotnet path: c:\Users\foo\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.9\dotnet.exe
Activating C# standalone...
info: LanguageServerHost[0]
Starting server...

Extension version: 2.0.249
VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:22:07.651Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs AMD Ryzen 5 2400G with Radeon Vega Graphics (8 x 3593)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 13.92GB (6.36GB free)
Process Argv -n --crash-reporter-id ecb23b5c-531e-4aff-8414-101be1092934
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263cf:30789497
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
a2ce3375:30757347
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30780429
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496
e537b577:30786199
dsvsc013cf:30789518

@aeb-dev
Copy link

aeb-dev commented Jul 19, 2023

Having the same problem

@arunchndr arunchndr added this to the Post GA milestone Jul 20, 2023
@dibarbet dibarbet modified the milestones: Post GA, Next Aug 2, 2023
@benediktth
Copy link

benediktth commented Aug 4, 2023

Is there an ETA when this is getting fixed?

Edit: Fixed it by setting dotnet.server.useOmnisharp to true.

@rng4302
Copy link

rng4302 commented Aug 7, 2023

Is there an ETA when this is getting fixed?

Edit: Fixed it by setting dotnet.server.useOmnisharp to true.

But where to set this thing?

@rng4302
Copy link

rng4302 commented Aug 7, 2023

what ETA means, temporary fix

  1. add sln file and add your project to sln
  2. use c# dev kit, which will auto add sln file in your root directory
  3. switch back to stable release, which much slower than prerelease one

This will be slow only once while opening vsc? Or it will be slow throughout?

@arunchndr
Copy link
Member

Retitling since its not prerelease anymore. This is coming soon. Using this as the primary to post updates on the release.

@arunchndr arunchndr changed the title prerelease language server cannot start unless the project is a sln language server cannot start unless the project is a sln Aug 7, 2023
@arunchndr arunchndr modified the milestones: Next, August Aug 7, 2023
@arunchndr arunchndr mentioned this issue Aug 4, 2023
10 tasks
jasonmalinowski added a commit to jasonmalinowski/vscode-csharp that referenced this issue Aug 7, 2023
jasonmalinowski added a commit to jasonmalinowski/vscode-csharp that referenced this issue Aug 7, 2023
jasonmalinowski added a commit to jasonmalinowski/vscode-csharp that referenced this issue Aug 8, 2023
arunchndr added a commit that referenced this issue Aug 8, 2023
* Tell the language server to open projects if no solution exists

Fixes #5923

* Move openSolutionParams and openProjectParams into roslynProtocol.ts

* update server

---------

Co-authored-by: David Barbet <[email protected]>
Co-authored-by: Arun Chander <[email protected]>
@stoyandimov
Copy link

dotnet.server.useOmnisharp

you can open vscode settings and past the exact setting in the search. This will show a check to switch it on.

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

Successfully merging a pull request may close this issue.

8 participants