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

Go to metadata doesn't work #1624

Closed
worming004 opened this issue Oct 4, 2019 · 3 comments · Fixed by #1625
Labels
bug

Comments

@worming004
Copy link

@worming004 worming004 commented Oct 4, 2019

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

  • Write int value = 5;
  • Press F12 on ì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

Starting OmniSharp server at 04/10/2019 à 07:32:00 Target: c:\Git\Multi\MessagingServer

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: 04339c3a26

Runtime 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
Extension Author Version
auto-rename-tag formulahendry 0.1.0
bazel-code DevonDCarew 0.1.9
beautify HookyQR 1.5.0
Bookmarks alefragnani 10.5.0
bracket-pair-colorizer CoenraadS 1.0.61
cpptools ms-vscode 0.25.1
csharp ms-vscode 1.21.4
csharpextensions jchannon 1.3.0
cypher-query-language jakeboone02 1.0.2
docker-explorer formulahendry 0.1.6
fantomas-fmt paolodellepiane 0.0.22
ginfuru-vscode-jekyll-syntax ginfuru 0.1.0
git-graph mhutchie 1.16.0
git-project-manager felipecaputo 1.7.1
githistory donjayamanne 0.4.6
gitlens eamodio 10.0.1
Go ms-vscode 0.11.7
go-outliner 766b 0.1.20
gotestexplorer premparihar 0.1.10
gulptasks nickdodd79 1.3.1
html-css-class-completion Zignd 1.19.0
JavaScriptSnippets xabikos 1.7.2
language-stylus sysoev 1.11.0
material-icon-theme PKief 3.9.0
node-module-intellisense leizongmin 1.5.0
nodejs-extension-pack waderyan 0.1.9
npm-intellisense christian-kohler 1.3.0
path-intellisense christian-kohler 1.4.2
pdf tomoki1207 0.5.1
powershell ms-vscode 2019.9.0
rest-client humao 0.22.2
search-node-modules jasonnutter 1.3.0
tslint eg2 1.0.44
typescript-hero rbbit 3.0.0
vs-code-snippet-generator dkultasev 1.0.1
vscode-arduino vsciot-vscode 0.2.27
vscode-bazel BazelBuild 0.3.0
vscode-css-peek pranaygp 3.0.2
vscode-docker ms-azuretools 0.8.1
vscode-eslint dbaeumer 1.9.1
vscode-kubernetes-tools ms-kubernetes-tools 1.0.4
vscode-markdownlint DavidAnson 0.30.2
vscode-proto3 zxh404 0.3.0
vscode-pull-request-github GitHub 0.11.2
vscode-typescript-tslint-plugin ms-vscode 1.2.2
vscode-yaml redhat 0.5.3
vsliveshare ms-vsliveshare 1.0.905
xml DotJoshJohnson 2.5.0
@worming004

This comment has been minimized.

Copy link
Author

@worming004 worming004 commented Oct 4, 2019

More informations. When my mouse in on type 'int', the summary is well shown
image

@filipw

This comment has been minimized.

Copy link
Member

@filipw filipw commented Oct 4, 2019

thanks - I will move this to omnisharp-roslyn, it's really a bug (regression) there

@filipw filipw transferred this issue from OmniSharp/omnisharp-vscode Oct 4, 2019
@filipw filipw changed the title F12 on external library always return 'No definition found for {type}' Go to metadata doesn't work Oct 4, 2019
@filipw filipw added the bug label Oct 4, 2019
@filipw

This comment has been minimized.

Copy link
Member

@filipw filipw commented Oct 4, 2019

thanks for reporting - the PR with a fix is open #1625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.