Closed 333fred closed 1 year ago
Similar for Navigate To. This was for SkippedTokensTriviaSyntax
.
[Error - 4:59:30 PM] [LanguageServerHost] System.UriFormatException: Failed create URI from 'CSharpSyntaxGenerator/CSharpSyntaxGenerator.SourceGenerator/Syntax.xml.Syntax.Generated.cs'; original string: 'CSharpSyntaxGenerator/CSharpSyntaxGenerator.SourceGenerator/Syntax.xml.Syntax.Generated.cs'
---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.CreateAbsoluteUri(String absolutePath) in /_/src/Features/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 186
--- End of inner exception stack trace ---
at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.CreateAbsoluteUri(String absolutePath) in /_/src/Features/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 186
at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.<TextSpanToLocationAsync>g__ConvertTextSpanToLocation|30_0(Document document, TextSpan span, Boolean isStale, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 491
at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.TextSpanToLocationAsync(Document document, TextSpan textSpan, Boolean isStale, Nullable`1 context, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 503
at Microsoft.CodeAnalysis.LanguageServer.Handler.WorkspaceSymbolsHandler.LSPNavigateToCallback.AddItemAsync(Project project, INavigateToSearchResult result, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Protocol/Handler/Symbols/WorkspaceSymbolsHandler.cs:line 90
at Microsoft.CodeAnalysis.NavigateTo.AbstractNavigateToSearchService.<>c__DisplayClass13_0.<<GetOnItemFoundCallback>b__0>d.MoveNext() in /_/src/Features/Core/Portable/NavigateTo/AbstractNavigateToSearchService.cs:line 37
--- End of stack trace from previous location ---
at Microsoft.CodeAnalysis.NavigateTo.AbstractNavigateToSearchService.AddResultIfMatchAsync(DocumentId documentId, Document document, DeclaredSymbolInfo declaredSymbolInfo, PatternMatcher nameMatcher, PatternMatcher containerMatcher, DeclaredSymbolInfoKindSet kinds, Func`2 onResultFound, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/AbstractNavigateToSearchService.InProcess.cs:line 164
at Microsoft.CodeAnalysis.NavigateTo.AbstractNavigateToSearchService.ProcessIndexAsync(DocumentId documentId, Document document, String patternName, String patternContainer, DeclaredSymbolInfoKindSet kinds, Func`2 onResultFound, TopLevelSyntaxTreeIndex index, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/AbstractNavigateToSearchService.InProcess.cs:line 129
at Microsoft.CodeAnalysis.NavigateTo.AbstractNavigateToSearchService.ProcessDocumentAsync(Document document, String patternName, String patternContainer, DeclaredSymbolInfoKindSet kinds, Func`2 onResultFound, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/AbstractNavigateToSearchService.InProcess.cs:line 98
at Microsoft.CodeAnalysis.NavigateTo.AbstractNavigateToSearchService.ProcessDocumentsAsync(Document searchDocument, String patternName, String patternContainer, DeclaredSymbolInfoKindSet kinds, Func`2 onResultFound, ISet`1 documents, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/AbstractNavigateToSearchService.InProcess.cs:line 84
at Microsoft.CodeAnalysis.NavigateTo.AbstractNavigateToSearchService.SearchGeneratedDocumentsInCurrentProcessAsync(Project project, String pattern, IImmutableSet`1 kinds, Func`2 onResultFound, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/AbstractNavigateToSearchService.GeneratedDocumentSearch.cs:line 60
at Microsoft.CodeAnalysis.NavigateTo.AbstractNavigateToSearchService.SearchGeneratedDocumentsAsync(Project project, String searchPattern, IImmutableSet`1 kinds, Document activeDocument, Func`2 onResultFound, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/AbstractNavigateToSearchService.GeneratedDocumentSearch.cs:line 42
at Microsoft.CodeAnalysis.NavigateTo.NavigateToSearcher.<>c__DisplayClass19_0.<<ProcessOrderedProjectsAsync>g__SearchCoreAsync|0>d.MoveNext() in /_/src/Features/Core/Portable/NavigateTo/NavigateToSearcher.cs:line 341
--- End of stack trace from previous location ---
at Microsoft.CodeAnalysis.NavigateTo.NavigateToSearcher.<>c__DisplayClass19_0.<<ProcessOrderedProjectsAsync>g__SearchCoreAsync|0>d.MoveNext() in /_/src/Features/Core/Portable/NavigateTo/NavigateToSearcher.cs:line 341
--- End of stack trace from previous location ---
at Microsoft.CodeAnalysis.NavigateTo.NavigateToSearcher.ProcessOrderedProjectsAsync(Boolean parallel, ImmutableArray`1 orderedProjects, HashSet`1 seenItems, Func`4 processProjectAsync, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/NavigateToSearcher.cs:line 301
at Microsoft.CodeAnalysis.NavigateTo.NavigateToSearcher.SearchAllProjectsAsync(Boolean isFullyLoaded, NavigateToSearchScope scope, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/NavigateToSearcher.cs:line 186
at Microsoft.CodeAnalysis.NavigateTo.NavigateToSearcher.SearchAsync(Boolean searchCurrentDocument, NavigateToSearchScope scope, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/NavigateToSearcher.cs:line 130
at Microsoft.CodeAnalysis.NavigateTo.NavigateToSearcher.SearchAsync(Boolean searchCurrentDocument, NavigateToSearchScope scope, CancellationToken cancellationToken) in /_/src/Features/Core/Portable/NavigateTo/NavigateToSearcher.cs:line 140
at Microsoft.CodeAnalysis.LanguageServer.Handler.WorkspaceSymbolsHandler.HandleRequestAsync(WorkspaceSymbolParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Protocol/Handler/Symbols/WorkspaceSymbolsHandler.cs:line 69
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`3.StartRequestAsync(TRequestContext context, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 176
[Error - 4:59:30 PM] Request workspace/symbol failed.
Message: Failed create URI from 'CSharpSyntaxGenerator/CSharpSyntaxGenerator.SourceGenerator/Syntax.xml.Syntax.Generated.cs'; original string: 'CSharpSyntaxGenerator/CSharpSyntaxGenerator.SourceGenerator/Syntax.xml.Syntax.Generated.cs'
Code: -32000
[object Object]
Type: Bug
Issue Description
FAR fails when a reference is source generated.
Steps to Reproduce
SkippedTokensTrivia
.Expected Behavior
See all references, including in the source generated file.
Actual Behavior
FAR fails with an exception.
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.83.1 C# Extension: 2.7.25 Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 8.0.100-rtm.23506.1 Commit: 0ffc9fdc93 Workload version: 8.0.100-manifests.eeb18dd1 Runtime Environment: OS Name: ubuntu OS Version: 22.04 OS Platform: Linux RID: linux-x64 Base Path: /home/fred/.dotnet/sdk/8.0.100-rtm.23506.1/ .NET workloads installed: Workload version: 8.0.100-manifests.eeb18dd1 There are no installed workloads to display. Host: Version: 8.0.0-rtm.23504.8 Architecture: x64 Commit: 22b8a5665f .NET SDKs installed: 7.0.400 [/home/fred/.dotnet/sdk] 8.0.100-preview.7.23376.3 [/home/fred/.dotnet/sdk] 8.0.100-rc.1.23455.8 [/home/fred/.dotnet/sdk] 8.0.100-rc.2.23502.2 [/home/fred/.dotnet/sdk] 8.0.100-rtm.23506.1 [/home/fred/.dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 7.0.10 [/home/fred/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-preview.7.23375.9 [/home/fred/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-rc.1.23421.29 [/home/fred/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-rc.2.23480.2 [/home/fred/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0-rtm.23502.22 [/home/fred/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 7.0.10 [/home/fred/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-preview.7.23375.6 [/home/fred/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-rc.1.23419.4 [/home/fred/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-rc.2.23479.6 [/home/fred/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0-rtm.23504.8 [/home/fred/.dotnet/shared/Microsoft.NETCore.App] Other architectures found: None Environment variables: DOTNET_ROOT [/home/fred/.dotnet] global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version|Folder Name| |---|---|---|---| |auto-close-tag|formulahendry|0.5.14|formulahendry.auto-close-tag-0.5.14| |auto-rename-tag|formulahendry|0.1.10|formulahendry.auto-rename-tag-0.1.10| |azure-account|ms-vscode|0.11.6|ms-vscode.azure-account-0.11.6| |azure-pipelines|ms-azure-devops|1.228.0|ms-azure-devops.azure-pipelines-1.228.0| |azure-repos|ms-vscode|0.38.0|ms-vscode.azure-repos-0.38.0| |base16-generator|golf1052|1.19.1|golf1052.base16-generator-1.19.1| |blazorwasm-companion|ms-dotnettools|1.1.4|ms-dotnettools.blazorwasm-companion-1.1.4| |Bookmarks|alefragnani|13.4.2|alefragnani.bookmarks-13.4.2| |code-spell-checker|streetsidesoftware|3.0.1|streetsidesoftware.code-spell-checker-3.0.1| |codespaces|GitHub|1.16.0|github.codespaces-1.16.0| |copilot|GitHub|1.129.0|github.copilot-1.129.0| |copilot-chat|GitHub|0.8.2023092902|github.copilot-chat-0.8.2023092902| |copilot-labs|GitHub|0.15.1019|github.copilot-labs-0.15.1019| |cpptools|ms-vscode|1.17.5|ms-vscode.cpptools-1.17.5-linux-x64| |csdevkit|ms-dotnettools|0.5.150|ms-dotnettools.csdevkit-0.5.150-linux-x64| |csharp|ms-dotnettools|2.7.25|ms-dotnettools.csharp-2.7.25-linux-x64| |dotnet-interactive-vscode|ms-dotnettools|1.0.4517010|ms-dotnettools.dotnet-interactive-vscode-1.0.4517010| |EditorConfig|EditorConfig|0.16.4|editorconfig.editorconfig-0.16.4| |errorlens|usernamehw|3.15.0|usernamehw.errorlens-3.15.0| |gitignore|codezombiech|0.9.0|codezombiech.gitignore-0.9.0| |gitlens|eamodio|14.4.0|eamodio.gitlens-14.4.0| |graphviz-interactive-preview|tintinweb|0.3.5|tintinweb.graphviz-interactive-preview-0.3.5| |hexeditor|ms-vscode|1.9.12|ms-vscode.hexeditor-1.9.12| |jupyter|ms-toolsai|2023.9.1102792234|ms-toolsai.jupyter-2023.9.1102792234-linux-x64| |jupyter-keymap|ms-toolsai|1.1.2|ms-toolsai.jupyter-keymap-1.1.2| |jupyter-renderers|ms-toolsai|1.0.17|ms-toolsai.jupyter-renderers-1.0.17| |markdown-all-in-one|yzhang|3.5.1|yzhang.markdown-all-in-one-3.5.1| |msbuild-project-tools|tintoy|0.4.9|tintoy.msbuild-project-tools-0.4.9| |net-compiler-developer-sdk|333fred|0.1.2|333fred.net-compiler-developer-sdk-0.1.2| |ocean-dark-extended|kleber-swf|1.5.0|kleber-swf.ocean-dark-extended-1.5.0| |path-intellisense|christian-kohler|2.8.5|christian-kohler.path-intellisense-2.8.5| |powershell|ms-vscode|2023.8.0|ms-vscode.powershell-2023.8.0| |remote-explorer|ms-vscode|0.4.1|ms-vscode.remote-explorer-0.4.1| |remote-repositories|ms-vscode|0.40.0|ms-vscode.remote-repositories-0.40.0| |remote-ssh|ms-vscode-remote|0.106.5|ms-vscode-remote.remote-ssh-0.106.5| |remote-ssh-edit|ms-vscode-remote|0.86.0|ms-vscode-remote.remote-ssh-edit-0.86.0| |remote-wsl|ms-vscode-remote|0.81.8|ms-vscode-remote.remote-wsl-0.81.8| |remotehub|GitHub|0.62.0|github.remotehub-0.62.0| |rust-analyzer|rust-lang|0.3.1705|rust-lang.rust-analyzer-0.3.1705-linux-x64| |tsl-problem-matcher|amodio|0.6.2|amodio.tsl-problem-matcher-0.6.2| |vim|vscodevim|1.26.2|vscodevim.vim-1.26.2| |vs-thunder|undefined_publisher|0.0.3|undefined_publisher.vs-thunder-0.0.3| |vscode-antlr4|mike-lischke|2.4.2|mike-lischke.vscode-antlr4-2.4.2| |vscode-docker|ms-azuretools|1.27.0|ms-azuretools.vscode-docker-1.27.0| |vscode-dotnet-runtime|ms-dotnettools|1.8.1|ms-dotnettools.vscode-dotnet-runtime-1.8.1| |vscode-eslint|dbaeumer|2.4.2|dbaeumer.vscode-eslint-2.4.2| |vscode-github-actions|github|0.26.2|github.vscode-github-actions-0.26.2| |vscode-icons|vscode-icons-team|12.6.0|vscode-icons-team.vscode-icons-12.6.0| |vscode-il|soltys|0.0.1|soltys.vscode-il-0.0.1| |vscode-jupyter-cell-tags|ms-toolsai|0.1.8|ms-toolsai.vscode-jupyter-cell-tags-0.1.8| |vscode-jupyter-slideshow|ms-toolsai|0.1.5|ms-toolsai.vscode-jupyter-slideshow-0.1.5| |vscode-pull-request-github|GitHub|0.74.1|github.vscode-pull-request-github-0.74.1| |vscode-xml|redhat|0.26.1|redhat.vscode-xml-0.26.1-linux-x64| |vscode-yaml|redhat|1.14.0|redhat.vscode-yaml-1.14.0| |vscodeintellicode-csharp|ms-dotnettools|0.1.26|ms-dotnettools.vscodeintellicode-csharp-0.1.26-linux-x64| |vsliveshare|ms-vsliveshare|1.0.5883|ms-vsliveshare.vsliveshare-1.0.5883| |xml|DotJoshJohnson|2.5.1|dotjoshjohnson.xml-2.5.1|;Extension version: 2.7.25 VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:45:31.402Z) OS version: Linux x64 5.15.0-86-generic snap Modes:
System Info
|Item|Value| |---|---| |CPUs|AMD Ryzen 9 5950X 16-Core Processor (32 x 2200)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|1, 1, 1| |Memory (System)|62.70GB (17.01GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id c9f05a69-d019-464b-b1f2-b43e5fb75046| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|regolith| |XDG_CURRENT_DESKTOP|Regolith:GNOME-Flashback:GNOME| |XDG_SESSION_DESKTOP|regolith| |XDG_SESSION_TYPE|x11|
A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30856252 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 f6dab269:30613381 2i9eh265:30646982 showlangstatbar:30737416 a2ce3375:30757347 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 copilotsettingc:30859502 synctok:30869157 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixtcf:30866406 pyreplss1:30865275 pythoncet00cf:30866519 h48ei257:30870396 pythontbext0:30864172 ```