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

formtter no work

Open 1w1f opened this issue 2 years ago • 2 comments

dotnet --info

.NET SDK: Version: 6.0.401 Commit: 0906eae6f8

运行时环境: OS Name: Windows OS Version: 10.0.19044 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.401\

global.json file: Not found

Host: Version: 6.0.9 Architecture: x64 Commit: 163a63591c

.NET SDKs installed: 3.1.423 [C:\Program Files\dotnet\sdk] 6.0.100 [C:\Program Files\dotnet\sdk] 6.0.200 [C:\Program Files\dotnet\sdk] 6.0.401 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.29 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.29 [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.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.29 [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.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

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

Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-info

omnisharp log

Starting OmniSharp server at 2022/9/28 10:55:31 Target: d:\projectRepo\测试项目\refitProj\refitProj.sln

OmniSharp server started with .NET 6.0.401 . Path: c:\Users\user1.vscode\extensions\ms-dotnettools.csharp-1.25.0-win32-x64.omnisharp\1.39.0-net6.0\OmniSharp.dll PID: 17760

Starting OmniSharp on Windows 10.0.19044.0 (x64) info: OmniSharp.Services.DotNetCliService Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK info: OmniSharp.Services.DotNetCliService Using the 'dotnet' on the PATH. info: OmniSharp.Services.DotNetCliService DotNetPath set to dotnet info: OmniSharp.MSBuild.Discovery.MSBuildLocator Located 1 MSBuild instance(s) 1: .NET Core SDK 6.0.100 17.0.0 - "C:\Program Files\dotnet\sdk\6.0.100" info: OmniSharp.MSBuild.Discovery.MSBuildLocator Registered MSBuild instance: .NET Core SDK 6.0.100 17.0.0 - "C:\Program Files\dotnet\sdk\6.0.100" info: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0 info: OmniSharp.MSBuild.ProjectSystem Detecting projects in 'd:\projectRepo\测试项目\refitProj\refitProj.sln'. info: OmniSharp.MSBuild.ProjectManager Queue project update for 'd:\projectRepo\测试项目\refitProj\refitLib\refitLib.csproj' info: OmniSharp.MSBuild.ProjectManager Queue project update for 'd:\projectRepo\测试项目\refitProj\refitLibConsole\refitLibConsole.csproj' info: OmniSharp.MSBuild.ProjectManager Queue project update for 'd:\projectRepo\测试项目\refitProj\RefitTest\RefitTest.csproj' info: OmniSharp.Script.ScriptProjectSystem Detecting CSX files in 'd:\projectRepo\测试项目\refitProj'. info: OmniSharp.Script.ScriptProjectSystem Did not find any CSX files info: OmniSharp.WorkspaceInitializer Configuration finished. info: OmniSharp.Stdio.Host Omnisharp server running using Stdio at location 'd:\projectRepo\测试项目\refitProj' on host 8360. info: OmniSharp.MSBuild.ProjectManager Loading project: d:\projectRepo\测试项目\refitProj\refitLib\refitLib.csproj info: OmniSharp.MSBuild.ProjectManager Successfully loaded project file 'd:\projectRepo\测试项目\refitProj\refitLib\refitLib.csproj'. info: OmniSharp.MSBuild.ProjectManager Adding project 'd:\projectRepo\测试项目\refitProj\refitLib\refitLib.csproj' info: OmniSharp.MSBuild.ProjectManager Loading project: d:\projectRepo\测试项目\refitProj\refitLibConsole\refitLibConsole.csproj info: OmniSharp.MSBuild.ProjectManager Successfully loaded project file 'd:\projectRepo\测试项目\refitProj\refitLibConsole\refitLibConsole.csproj'. info: OmniSharp.MSBuild.ProjectManager Adding project 'd:\projectRepo\测试项目\refitProj\refitLibConsole\refitLibConsole.csproj' info: OmniSharp.MSBuild.ProjectManager Loading project: d:\projectRepo\测试项目\refitProj\RefitTest\RefitTest.csproj info: OmniSharp.MSBuild.ProjectManager Successfully loaded project file 'd:\projectRepo\测试项目\refitProj\RefitTest\RefitTest.csproj'. info: OmniSharp.MSBuild.ProjectManager Adding project 'd:\projectRepo\测试项目\refitProj\RefitTest\RefitTest.csproj' info: OmniSharp.MSBuild.ProjectManager Update project: refitLib info: OmniSharp.MSBuild.ProjectManager Update project: refitLibConsole info: OmniSharp.MSBuild.ProjectManager Update project: RefitTest [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 10. Received response for /findusages but could not find request. Received response for /findusages but could not find request. info: OmniSharp.Roslyn.CSharp.Services.Diagnostics.CSharpDiagnosticWorkerWithAnalyzers Solution initialized -> queue all documents for code analysis. Initial document count: 15. Received response for /v2/getcodeactions but could not find request. Received response for /quickinfo but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 40. Received response for /quickinfo but could not find request. Received response for /v2/getcodeactions but could not find request. Received response for /inlayHint but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 10. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 10. Received response for /v2/getcodeactions but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 9, Column: 30. Received response for /v2/gotodefinition but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 10. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 10. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 10. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 8, Column: 10. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: d:\projectRepo\测试项目\refitProj\refitLib\NetInterFace\JinRiShiCi.cs\IJinRiShiCi.cs, Line: 7, Column: 12.

https://user-images.githubusercontent.com/53751907/192678788-c846b09d-4590-4a3d-83a5-46e54f640781.mp4

1w1f avatar Sep 28 '22 03:09 1w1f

Same here:

The light bulb proposes "More Actions". When choosing one of the options nothing happens. => "No symbol found"

I think this is an urgent issue. Working without does not make sense.

VS Code Version 1.71.2

HypeillingerChillinger avatar Sep 28 '22 11:09 HypeillingerChillinger

Probably related to #5344

HypeillingerChillinger avatar Sep 28 '22 11:09 HypeillingerChillinger