-
Notifications
You must be signed in to change notification settings - Fork 420
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
Go to metadata doesn't work #1624
Comments
thanks - I will move this to omnisharp-roslyn, it's really a bug (regression) there |
thanks for reporting - the PR with a fix is open #1625 |
Had the same problem. If you have mono installed on linux a temporary solution is to move xbuild location Version 1.21.9 of Omnisharp fixed the problem for me. |
yeah mono paths are no longer loaded for Mono < 6.4.0 in 1.21.9 |
I have the same problem using last version. Version: 1.44.0 |
Issue Description
When I press F12 on a type from an external library (imported from third party library or system like int), the message 'No definition found for {type}' instead of getting metadata informations in a new windows.
I don't have any issue pressing F12 on a class defined in current project.
Steps to Reproduce
In any method
int value = 5;
ìnt
Expected Behavior
Open a new tab with metada information
Actual Behavior
a tooltip is shown with 'No definition found for int' message
Logs
OmniSharp log
OmniSharp server started.
Path: C:\Users\Wormi.vscode\extensions\ms-vscode.csharp-1.21.4.omnisharp\1.34.4\OmniSharp.exe
PID: 15928
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Community 2019 16.3.29324.140 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
2: StandAlone 16.0 - "c:\Users\Wormi.vscode\extensions\ms-vscode.csharp-1.21.4.omnisharp\1.34.4.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Community 2019 16.3.29324.140 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Git\Multi\MessagingServer'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in 'c:\Git\Multi\MessagingServer'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Git\Multi\MessagingServer'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Git\Multi\MessagingServer\MessagingServer.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Git\Multi\MessagingServer' on host 9896.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: MessagingServer
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Git\Multi\MessagingServer\MessagingServer.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Update project: MessagingServer
info: OmniSharp.OmniSharpWorkspace
Adding analyzer reference: C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk.Web\analyzers\cs\Microsoft.AspNetCore.Analyzers.dll
info: OmniSharp.OmniSharpWorkspace
Adding analyzer reference: C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk.Web\analyzers\cs\Microsoft.AspNetCore.Mvc.Analyzers.dll
info: OmniSharp.OmniSharpWorkspace
Adding analyzer reference: C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk.Web\analyzers\cs\Microsoft.AspNetCore.Components.Analyzers.dll
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Git\Multi\MessagingServer\MessagingServer.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Update project: MessagingServer
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Git\Multi\MessagingServer\MessagingServer.csproj
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Git\Multi\MessagingServer\MessagingServer.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Update project: MessagingServer
C# log
NO LOGS
Environment information
VSCode version: 1.38.1
C# Extension: 1.21.4
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.0.100 Commit: 04339c3a26Runtime Environment:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.0.100\
Host (useful for support):
Version: 3.0.0
Commit: 7d57652f33
.NET Core SDKs installed:
1.1.14 [C:\Program Files\dotnet\sdk]
2.1.2 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.505 [C:\Program Files\dotnet\sdk]
2.1.602 [C:\Program Files\dotnet\sdk]
2.1.700 [C:\Program Files\dotnet\sdk]
2.1.801 [C:\Program Files\dotnet\sdk]
2.1.802 [C:\Program Files\dotnet\sdk]
2.2.100-preview3-009430 [C:\Program Files\dotnet\sdk]
2.2.101 [C:\Program Files\dotnet\sdk]
2.2.202 [C:\Program Files\dotnet\sdk]
2.2.300 [C:\Program Files\dotnet\sdk]
2.2.401 [C:\Program Files\dotnet\sdk]
2.2.402 [C:\Program Files\dotnet\sdk]
3.0.100 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.0-preview3-35497 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.0-preview3-35497 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.0-preview3-27014-02 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: