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

Outline View not populated with symbols

Open views63 opened this issue 6 years ago • 12 comments

default vscode version 1.29.1 and rls version 0.4.10

views63 avatar Nov 26 '18 07:11 views63

Part of this comes from RLS returning symbols with empty names. I've sent RLS a pull request to fix this (rust-lang/rls#1193), which should make symbols show up more reliably. However, they still won't populate immediately after opening a project, since we have the same problem the C++ server used to have (Microsoft/vscode-cpptools#2477) where we execute the query before analysis has finished. But at least that can be worked around by reopening the file or making an edit.

tchebb avatar Dec 17 '18 09:12 tchebb

it seems that (rust-lang/rls#1193) is merged. any idea why still doesn't' populate the view?

woss avatar Feb 05 '20 13:02 woss

same problem!

tigeran2020 avatar Oct 20 '20 15:10 tigeran2020

Similar problem here. Some of my crate workspaces seemingly work fine, while others consistently report that nothing was found. Things like:

  • No symbols found in document <file> for the Outline view
  • No editor symbols for the "Go-to symbol..." (in current file) shortcut, Ctrl+Shift+O
  • No workspace symbols for the "Show all symbols" shortcut, Ctrl+T

And I can't figure out how to find what's different between the workspaces that blocks the symbol finding.

plwalsh avatar Nov 17 '20 16:11 plwalsh

Any update on this? Same problem.

sbatururimi avatar Jun 08 '21 14:06 sbatururimi

Same problem.

jinq0123 avatar Aug 03 '21 13:08 jinq0123

Same problem

ghost avatar Oct 12 '21 02:10 ghost

Same Issues. What's wrong

jkryanchou avatar Dec 14 '21 08:12 jkryanchou

Same. (Reopening file workaround ineffective).

gskerry avatar Jan 26 '22 17:01 gskerry

Same issue... CobiSymbolOutline extension doesn't work either...

spdrman avatar Feb 14 '22 21:02 spdrman

same problem

EDIT: Solved my issue by disabling GitLens. I believe this is a GitLens issue.

wrinkledeth avatar Sep 18 '22 14:09 wrinkledeth

This extension is deprecated, you should try https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer instead. Outline view works there. CobiSymbolOutline too.

lnicola avatar Sep 18 '22 14:09 lnicola