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

Decompiler does not work when use dotnet-script #2638

Open
cagechi opened this issue Sep 10, 2024 · 0 comments
Open

Decompiler does not work when use dotnet-script #2638

cagechi opened this issue Sep 10, 2024 · 0 comments

Comments

@cagechi
Copy link

cagechi commented Sep 10, 2024

I use omnisharp in neovim on windows.
( "omnisharp.enableDecompilationSupport": true )
No problem with CS files, but when I try to jump definitions in Dotnet-script files, I got an internal error.
The jump destination is a method in the referenced DLL.

os: windows11
omnisharp: v1.39.12
neovim: v0.10.1

The following is the log

omnisharp: -32603: Internal Error - System.NotSupportedException: Cannot_navigate_to_the_symbol_under_the_caret
   at OmniSharp.Roslyn.CSharp.Services.Decompilation.OmniSharpCSharpDecompiledSourceService.AddSourceToAsync(Document document, Compilation symbolCompilation, ISymbol symbol, CancellationToken cancellationToken) in D:\a\1\s\src\OmniSharp.Roslyn.CSharp\Services\Decompilation\OmniSharpCSharpDecompiledSourceService.cs:line 52
   at OmniSharp.Roslyn.CSharp.Services.Decompilation.DecompilationExternalSourceService.GetAndAddExternalSymbolDocument(Project project, ISymbol symbol, CancellationToken cancellationToken) in D:\a\1\s\src\OmniSharp.Roslyn.CSharp\Services\Decompilation\DecompilationExternalSourceService.cs:line 57
   at OmniSharp.Roslyn.CSharp.Services.Navigation.GoToDefinitionHelpers.GetMetadataMappedSpan(Document document, ISymbol symbol, IExternalSourceService externalSourceService, CancellationToken cancellationToken) in D:\a\1\s\src\OmniSharp.Roslyn.CSharp\Services\Navigation\GoToDefinitionHelpers.cs:line 36
   at OmniSharp.Roslyn.CSharp.Services.Navigation.GotoDefinitionServiceV2.Handle(GotoDefinitionRequest request) in D:\a\1\s\src\OmniSharp.Roslyn.CSharp\Services\Navigation\GotoDefinitionServiceV2.cs:line 87
   at OmniSharp.LanguageServerProtocol.Handlers.OmniSharpDefinitionHandler.Handle(DefinitionParams request, CancellationToken token) in D:\a\1\s\src\OmniSharp.LanguageServerProtocol\Handlers\OmniSharpDefinitionHandler.cs:line 42
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at MediatR.Pipeline.RequestPreProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at MediatR.Pipeline.RequestPostProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1.<RouteRequest>g__InnerRoute|7_0(IServiceScopeFactory serviceScopeFactory, Request request, TDescriptor descriptor, Object params, CancellationToken token, ILogger logger)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1.RouteRequest(IRequestDescriptor`1 descriptors, Request request, CancellationToken token)
   at OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker.<>c__DisplayClass10_0.<<RouteRequest>b__5>d.MoveNext()

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant