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

No way to load all projects when a solution file is present #6565

Closed
ahanusa opened this issue Oct 18, 2023 · 17 comments
Closed

No way to load all projects when a solution file is present #6565

ahanusa opened this issue Oct 18, 2023 · 17 comments
Assignees

Comments

@ahanusa
Copy link

ahanusa commented Oct 18, 2023

Type: Bug

Issue Description

Go to definition via right click or F12 does not work when upgrading v 1.26 to 2.6.24

Video clip: https://www.dropbox.com/scl/fi/b3h4f7whrwin7t6y2be2x/Screen-Recording-2023-10-18-at-11.04.52-AM.mov?rlkey=7ie4mp8tqdud26eghdem9riou&dl=0

Steps to Reproduce

  1. With version 1.26 installed, open a folder containing many projects. Note: there is no solution file.
  2. Open a class file that references another class/interface located in another directory and/or project
  3. Click on the referenced class/interface and hit F12 or right click/Go to Definition to navigate to the file.

Expected Behavior

You should be taken to the definition/file

Actual Behavior

  1. Now upgrade to v2.6.24, reload vs code, and repeat the repro steps

You will not be taken to the file and a message is displayed:
"No definition found for XXX".

Logs

C# log

Post the output from Output-->C# here

C# LSP Trace Logs

Post the output from Output-->C# LSP Trace Logs here. Requires `dotnet.server.trace` to be set to `Trace`

Environment information

VSCode version: 1.83.1
C# Extension: 2.6.24
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 7.0.307 Commit: 7b77e35a2b

Runtime Environment:
OS Name: Mac OS X
OS Version: 14.0
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/7.0.307/

Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4

.NET SDKs installed:
3.1.418 [/usr/local/share/dotnet/sdk]
3.1.419 [/usr/local/share/dotnet/sdk]
3.1.423 [/usr/local/share/dotnet/sdk]
3.1.425 [/usr/local/share/dotnet/sdk]
3.1.426 [/usr/local/share/dotnet/sdk]
6.0.201 [/usr/local/share/dotnet/sdk]
6.0.202 [/usr/local/share/dotnet/sdk]
6.0.203 [/usr/local/share/dotnet/sdk]
6.0.401 [/usr/local/share/dotnet/sdk]
6.0.403 [/usr/local/share/dotnet/sdk]
6.0.405 [/usr/local/share/dotnet/sdk]
6.0.413 [/usr/local/share/dotnet/sdk]
7.0.100 [/usr/local/share/dotnet/sdk]
7.0.102 [/usr/local/share/dotnet/sdk]
7.0.307 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.24 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.25 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.29 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.31 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.32 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.24 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.25 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.29 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.31 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.32 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.21 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
birds-of-paradise Programming-Engineer 0.1.2 programming-engineer.birds-of-paradise-0.1.2
blazorwasm-companion ms-dotnettools 1.1.4 ms-dotnettools.blazorwasm-companion-1.1.4
csharp ms-dotnettools 2.6.24 ms-dotnettools.csharp-2.6.24-darwin-x64
csharpextensions jchannon 1.3.1 jchannon.csharpextensions-1.3.1
EditorConfig EditorConfig 0.16.4 editorconfig.editorconfig-0.16.4
gitblame waderyan 10.5.1 waderyan.gitblame-10.5.1
hexeditor ms-vscode 1.9.12 ms-vscode.hexeditor-1.9.12
json Meezilla 0.1.2 meezilla.json-0.1.2
ng-template Angular 16.1.8 angular.ng-template-16.1.8
nugetpackagemanagergui aliasadidev 2.0.6 aliasadidev.nugetpackagemanagergui-2.0.6
path-intellisense christian-kohler 2.8.5 christian-kohler.path-intellisense-2.8.5
powershell ms-vscode 2023.8.0 ms-vscode.powershell-2023.8.0
remote-containers ms-vscode-remote 0.315.1 ms-vscode-remote.remote-containers-0.315.1
Theme-BirdsofParadise gerane 0.0.5 gerane.theme-birdsofparadise-0.0.5
theme-github thomaspink 1.0.1 thomaspink.theme-github-1.0.1
Theme-peacocks-in-space gerane 0.0.5 gerane.theme-peacocks-in-space-0.0.5
trailing-spaces shardulm94 0.4.1 shardulm94.trailing-spaces-0.4.1
vim vscodevim 1.26.1 vscodevim.vim-1.26.1
vscode-commons redhat 0.0.6 redhat.vscode-commons-0.0.6
vscode-docker ms-azuretools 1.27.0 ms-azuretools.vscode-docker-1.27.0
vscode-dotnet-runtime ms-dotnettools 1.8.1 ms-dotnettools.vscode-dotnet-runtime-1.8.1
vscode-guid heaths 1.7.0 heaths.vscode-guid-1.7.0
vscode-nuget-gallery patcx 0.0.24 patcx.vscode-nuget-gallery-0.0.24
vscode-resx-editor DominicVonk 0.0.5 dominicvonk.vscode-resx-editor-0.0.5
vscode-theme-onelight akamud 2.3.0 akamud.vscode-theme-onelight-2.3.0
vscode-yaml redhat 1.14.0 redhat.vscode-yaml-1.14.0

Extension version: 2.6.24
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:46:55.789Z)
OS version: Darwin x64 23.0.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
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) 6, 4, 4
Memory (System) 16.00GB (0.28GB free)
Process Argv --crash-reporter-id ab71c575-1d1a-4ad3-88ac-549c056db4b2 --crash-reporter-id ab71c575-1d1a-4ad3-88ac-549c056db4b2
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30856252
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
962ge761:30841074
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
copilotsettingt:30859503
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
pythonmpsinfo:30842941
dsvsc015:30845448
pyreplss2:30858576
pythoncet0:30859751
pythontbext0:30864172

@dibarbet
Copy link
Member

dibarbet commented Oct 18, 2023

@ahanusa can you post the C# output window contents here, preferrably with the dotnet.server.trace setting set to Trace? This might be a known issue

@ahanusa
Copy link
Author

ahanusa commented Oct 18, 2023

Using dotnet configured on PATH
Dotnet path: /usr/local/share/dotnet/dotnet
Activating C# standalone...
Starting server at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll
Server arguments /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll --logLevel Trace --telemetryLevel all --extensionLogDirectory /Users/Library/Application Support/Code/logs/20231016T071853/window16/exthost/ms-dotnettools.csharp
waiting for named pipe information from server...
[stdout] dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Razor.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Scripting.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Elfie.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
      Solution-level analyzer at /Users//.vscode/extensions/ms-dotnettools.csharp-2.6.24-darwin-x64/.roslyn/Microsoft.CodeAnalysis.Features.dll added to workspace.
[stdout] {"pipeName":"/var/folders/92/bxy3961s0c39s5d2r5mfs8cw0000gp/T/620003cb-6424-45b0-9e7c-295b9949627a.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info  - 1:07:48 PM] [Program] Language server initialized
[LanguageServerHost] [06:07:48.947][Start]initialize
[LanguageServerHost] [06:07:48.954][Start]Initialize
[LanguageServerHost] [06:07:49.028][End]Initialize
[LanguageServerHost] [06:07:49.081][End]initialize
[LanguageServerHost] [06:07:49.087][Start]initialized
[LanguageServerHost] [06:07:49.207][End]initialized
[LanguageServerHost] [06:07:49.209][Start]textDocument/didOpen
[LanguageServerHost] didOpen for file:///Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs
[LanguageServerHost] [06:07:49.219][End]textDocument/didOpen
[LanguageServerHost] Could not find 'file:///Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs'.  Searched Host
[LanguageServerHost] [06:07:49.324][Start]textDocument/diagnostic
[LanguageServerHost] PublicDocumentPullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 1 documents
[LanguageServerHost] [06:07:49.355][Start]workspace/diagnostic
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.359][Start]textDocument/documentSymbol
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.359][Start]textDocument/inlayHint
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] Closing workspace/diagnostics request
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [06:07:49.382][End]workspace/diagnostic
[LanguageServerHost] [06:07:49.393][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.401][Start]textDocument/foldingRange
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.464][Start]textDocument/codeLens
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.466][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.467][End]textDocument/inlayHint
[LanguageServerHost] Found 0 diagnostics for DocumentDiagnosticSource: /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs in Miscellaneous Files
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [06:07:49.488][End]textDocument/diagnostic
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.531][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.532][End]textDocument/inlayHint
[LanguageServerHost] [06:07:49.597][End]textDocument/codeLens
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.598][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.599][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.640][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.641][End]textDocument/inlayHint
[LanguageServerHost] [06:07:49.656][End]textDocument/foldingRange
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.697][Start]textDocument/diagnostic
[LanguageServerHost] PublicDocumentPullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=1
[LanguageServerHost] Processing 1 documents
[LanguageServerHost] Diagnostics were unchanged for DocumentDiagnosticSource: /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs in Miscellaneous Files
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [06:07:49.710][End]textDocument/diagnostic
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.716][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.716][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.759][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.759][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.817][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.817][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.878][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.878][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:49.950][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:49.950][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:50.008][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:50.008][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:50.064][Start]textDocument/inlayHint
[LanguageServerHost] [06:07:50.064][End]textDocument/inlayHint
[LanguageServerHost] [06:07:50.109][End]textDocument/documentSymbol
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:51.362][Start]textDocument/diagnostic
[LanguageServerHost] PublicDocumentPullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=1
[LanguageServerHost] Processing 1 documents
[LanguageServerHost] Diagnostics were unchanged for DocumentDiagnosticSource: /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs in Miscellaneous Files
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicDocumentPullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [06:07:51.364][End]textDocument/diagnostic
[LanguageServerHost] [06:07:51.386][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:07:51.742][Start]textDocument/codeLens
[LanguageServerHost] [06:07:51.744][End]textDocument/codeLens
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:08:17.053][Start]textDocument/inlayHint
[LanguageServerHost] [06:08:17.054][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:08:17.117][Start]textDocument/inlayHint
[LanguageServerHost] [06:08:17.117][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:08:17.173][Start]textDocument/inlayHint
[LanguageServerHost] [06:08:17.173][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:08:17.251][Start]textDocument/inlayHint
[LanguageServerHost] [06:08:17.251][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:08:17.293][Start]textDocument/inlayHint
[LanguageServerHost] [06:08:17.293][End]textDocument/inlayHint
[LanguageServerHost] /Users//work//Services//src/Controllers/PropertyValues/PropertyValuesController.cs found in workspace MiscellaneousFiles
[LanguageServerHost] [06:08:17.369][Start]textDocument/inlayHint
[LanguageServerHost] [06:08:17.369][End]textDocument/inlayHint

@dibarbet
Copy link
Member

@ahanusa in vscode settings -
image

@jasonmalinowski looks like everything is in misc and theres no project loading lines. Maybe something going wrong on the client side with finding all projects to load?

@ahanusa
Copy link
Author

ahanusa commented Oct 18, 2023

@dibarbet I updated my last message. I figured out how to trace and re-ran before your reply. Sorry for the confusion.

@jasonmalinowski
Copy link
Member

@ahanusa What types of projects do you have in this workspace? Are the .csproj files actually present in the workspace?

@jasonmalinowski
Copy link
Member

@ahanusa Also, if you go through your options prefixed with either 'dotnet' or 'csharp', what is set?

@ahanusa
Copy link
Author

ahanusa commented Oct 18, 2023

@ahanusa What types of projects do you have in this workspace? Are the .csproj files actually present in the workspace?

I've never setup a workspace. The way I've always worked is by opening a directory containing all of the projects directly

@ahanusa
Copy link
Author

ahanusa commented Oct 18, 2023

@ahanusa Also, if you go through your options prefixed with either 'dotnet' or 'csharp', what is set?

What "options" are you referring to? Do you mean in my workspace settings? If so, here's what I have:

{
"dotnet.defaultSolution": "disable",
"dotnet.server.trace": "Trace"
}

@jasonmalinowski
Copy link
Member

Ah yes, remove the "dotnet.defaultSolution" thing -- if that's set to disable that's going to cause us to disable loading.

@ahanusa
Copy link
Author

ahanusa commented Oct 18, 2023

Ah yes, remove the "dotnet.defaultSolution" thing -- if that's set to disable that's going to cause us to disable loading.

Removed and reloaded, same issue :(

@ahanusa
Copy link
Author

ahanusa commented Oct 18, 2023

Ok, so I received a message when reopening that I thought was in-error, but clicking "don't load" re-added that option to my workspace settings:

Screenshot 2023-10-18 at 1 46 45 PM

Turns out there are a couple solution files in some of the folders. However, they belong to another team and have no use to me.

@ahanusa
Copy link
Author

ahanusa commented Oct 18, 2023

@jasonmalinowski any other thoughts?

@jasonmalinowski
Copy link
Member

@ahanusa At this point this is a limitation of the new extension; we don't have a way to say "I don't want to load a solution, just load all the projects". The workaround for now would be to check in a new solution file with whatever projects you do want. You can use dotnet sln to make the solution file, there's some examples of how to pass in globbing if you just wanted to add all .csproj files to your solution in one single go.

Can you share what your Omnisharp settings were? Did you have load on demand enabled? Or if not, where you manually picking projects before?

@jasonmalinowski jasonmalinowski changed the title F12/Go to Definition not working on upgrade from 1.26 to 2.6.24 No way to load all projects when a solution file is present Oct 27, 2023
@ahanusa
Copy link
Author

ahanusa commented Oct 31, 2023

@ahanusa At this point this is a limitation of the new extension; we don't have a way to say "I don't want to load a solution, just load all the projects". The workaround for now would be to check in a new solution file with whatever projects you do want. You can use dotnet sln to make the solution file, there's some examples of how to pass in globbing if you just wanted to add all .csproj files to your solution in one single go.

Can you share what your Omnisharp settings were? Did you have load on demand enabled? Or if not, where you manually picking projects before?

Ok, that seemed to work. Thanks for the help and timely correspondence!

@jasonmalinowski
Copy link
Member

@ahanusa Happy to hear you're unblocked! We'll still leave this open since there is an implicit feature request to make this scenario a bit easier.

@ahanusa
Copy link
Author

ahanusa commented Nov 1, 2023

@jasonmalinowski After upgrading to latest C# extension the run and debug links no longer appear above unit test methods?

@dibarbet
Copy link
Member

dibarbet commented Sep 5, 2024

Closing - feature for loading all projects w/out sln is tracked by #5722 and #6008

After upgrading to latest C# extension the run and debug links no longer appear above unit test methods?

Should have been resolved in latest versions, see #5719. If you're having issues, please file a new issue.

@dibarbet dibarbet closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants