vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Missing Symbols

Open Mark-Phillipson opened this issue 4 years ago • 11 comments

Issue

Cannot get the symbols to show in the outline on Explorer or when issuing the GOTO symbol command as per the screenshot

How to Reproduce

Open a C# file and view the Explorer outline tree Or press control+shift+o

Expected Behavior

should show the symbols of the file in a tree or display them below in the command palette

Actual Behavior

just has no symbols found in document

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.64.1 C# Extension: 1.24.0

Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.200-preview.22055.15 Commit: a3c3a2bf3b

Runtime Environment: OS Name: Windows OS Version: 10.0.22000 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.200-preview.22055.15\

Host (useful for support): Version: 6.0.2 Commit: 839cdfb0ec

.NET SDKs installed: 5.0.405 [C:\Program Files\dotnet\sdk] 6.0.101 [C:\Program Files\dotnet\sdk] 6.0.102 [C:\Program Files\dotnet\sdk] 6.0.200-preview.22055.15 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.All 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.21 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
advanced-new-file patbenatar 1.2.2
avb aferri 1.11.3
azure-account ms-vscode 0.9.11
Bookmarks alefragnani 13.2.3
copilot GitHub 1.7.4924
csharp ms-dotnettools 1.24.0
csharpier-vscode csharpier 1.2.0
Cyberpunk max-SS 1.2.14
data-workspace-vscode ms-mssql 0.1.1
dotnet-interactive-vscode ms-dotnettools 1.0.3103010
gc-excelviewer GrapeCity 4.0.50
js-debug-nightly ms-vscode 2022.2.817
jupyter ms-toolsai 2022.1.1001775990
jupyter-keymap ms-toolsai 1.0.0
jupyter-renderers ms-toolsai 1.0.6
mssql ms-mssql 1.12.0
powershell ms-vscode 2021.12.0
python ms-python 2022.0.1814523869
razor-switcher LennartKleymann 1.0.0
remote-wsl ms-vscode-remote 0.64.2
rest-client humao 0.24.6
rushcore DevExpress 1.0.2
rushnav DevExpress 1.0.2
serenade serenade 1.4.9
sql-database-projects-vscode ms-mssql 0.14.1
theme-dracula dracula-theme 2.24.1
user-secrets adrianwilczynski 2.0.1
vba spences10 1.7.1
vs-keybindings ms-vscode 0.2.1
vscode-azurefunctions ms-azuretools 1.6.0
vscode-azureresourcegroups ms-azuretools 0.4.0
vscode-csharp-snippets jorgeserrano 1.1.0
vscode-css-formatter aeschli 1.0.2
vscode-docker ms-azuretools 1.19.0
vscode-dotnet-runtime ms-dotnettools 1.5.0
vscode-great-icons emmanuelbeziat 2.1.82
vscode-nuget-package-manager jmrog 1.1.6
vscode-pull-request-github GitHub 0.36.0
vscode-yaml redhat 1.4.0
vscodeintellicode VisualStudioExptTeam 1.2.17
xml DotJoshJohnson 2.5.1
![MissingSymbols](https://user-images.githubusercontent.com/16239024/153384421-67608197-bb89-480f-8f8f-dc5aaf2505d7.png)

Mark-Phillipson avatar Feb 10 '22 10:02 Mark-Phillipson

MissingSymbols

Mark-Phillipson avatar Feb 10 '22 10:02 Mark-Phillipson

@Mark-Phillipson Can you please share the "OmniSharp Log" from the VS Code Output pane?

JoeRobich avatar Feb 10 '22 17:02 JoeRobich

Can you explain the steps to do this as I could not find it in the drop-down list in the built in terminal output

From: Joey Robichaud @.> Sent: 10 February 2022 17:36 To: OmniSharp/omnisharp-vscode @.> Cc: Mark Phillipson @.>; Mention @.> Subject: Re: [OmniSharp/omnisharp-vscode] Missing Symbols (Issue #5053)

@Mark-Phillipson https://github.com/Mark-Phillipson Can you please share the "OmniSharp Log" from the VS Code Output pane?

— Reply to this email directly, view it on GitHub https://github.com/OmniSharp/omnisharp-vscode/issues/5053#issuecomment-1035214136 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD34TMGNXXCTLQOONYIL4TLU2PZO7ANCNFSM5OAF5JDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AD34TMESVFU5Q5DVEFTXZZDU2PZO7A5CNFSM5OAF5JDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHW2B2OA.gif Message ID: @.*** @.***> >

Mark-Phillipson avatar Feb 10 '22 17:02 Mark-Phillipson

Starting OmniSharp server at 10/02/2022, 17:39:17 Target: c:\Users\MPhil\source\repos\VoiceLauncherBlazor\VoiceLauncherBlazor.sln

OmniSharp server started with .NET 6.0.200-preview.22055.15 . Path: c:\Users\MPhil.vscode\extensions\ms-dotnettools.csharp-1.24.0.omnisharp\1.38.0-net6.0\OmniSharp.dll PID: 4420

[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

Mark-Phillipson avatar Feb 10 '22 17:02 Mark-Phillipson

NoSymbols

Mark-Phillipson avatar Feb 10 '22 17:02 Mark-Phillipson

@Mark-Phillipson Could you set the OmniSharp logging level to trace in your VS Code settings and restart OmniSharp? Perhaps there are some logs that might explain why project loading is failing to complete within the 1 minute timeout.

JoeRobich avatar Feb 10 '22 22:02 JoeRobich

I changed the login to trace and also set the project load time out to 240 seconds but still get the error in the screenshot.

Mark-Phillipson avatar Feb 11 '22 11:02 Mark-Phillipson

MissingSymbolsErrorMessage

Mark-Phillipson avatar Feb 11 '22 11:02 Mark-Phillipson

I changed the login to trace and also set the project load time out to 240 seconds but still get the error in the screenshot.

MissingSymbolsErrorMessage

I have exactly the same issue.

ALVSoft avatar Feb 12 '22 07:02 ALVSoft

I changed the login to trace and also set the project load time out to 240 seconds but still get the error in the screenshot.

MissingSymbolsErrorMessage

I have exactly the same issue.

Finally solve the issue.

  • Uninstall "Auto-Using for C#" Extension,
  • Uncheck "Wait For Debugger" Setting image

ALVSoft avatar Feb 12 '22 08:02 ALVSoft

UnChecking wait for the debugger worked for me. I did not have the auto using for C# extension.

:-)

Mark-Phillipson avatar Feb 12 '22 12:02 Mark-Phillipson