PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

Navigation bar is not working

Open ttSpace opened this issue 3 years ago • 13 comments

Describe the bug

image

Steps to Reproduce

image

Expected behavior

Navigate bar displayed at the top of each editor window and includes a tow-level list of definitions. i. Left drop-down contains top-level class and function definitions in the current file. ii. Right drop-down displays a list of definitions within the scope shown in the lest.

ttSpace avatar Jun 02 '21 05:06 ttSpace

This should be handled here:

https://dev.azure.com/devdiv/DevDiv/_git/VSLanguageServerClient?path=%2Fsrc%2Fproduct%2FRemoteLanguage%2FImpl%2FFeatures%2FNavbar%2FRemoteLanguageDropdownBarClient.cs&_a=contents&version=GBdevelop

Not sure why it isn't.

rchiodo avatar Jun 02 '21 15:06 rchiodo

I don't get the nav bar. Not sure how this is showing up for you @ttSpace

image

rchiodo avatar Jun 02 '21 15:06 rchiodo

@ttSpace how did you get the nav bar to show up?

rchiodo avatar Jun 02 '21 15:06 rchiodo

@rchiodo you can go to Tools > Options > Text Editor > Python > General > Navigation bar (The option is checked by default) image

ttSpace avatar Jun 03 '21 01:06 ttSpace

Hmm, I have that set but I still don't see nav bars.

image

rchiodo avatar Jun 03 '21 19:06 rchiodo

This should be fixed when goto definition gets fixed by #6541

greazer avatar Jun 09 '21 22:06 greazer

@greazer Go to definition works well on this build. But the Navigation bar is still not show up. image

linette-zyy avatar Aug 18 '21 02:08 linette-zyy

In today's build I see the Navigation bar, but there is nothing in the the Navigation bar.

image

ttSpace avatar Sep 03 '21 02:09 ttSpace

In toady's build 17.1.0 Preview 3.0 [32030.14.main] , the Navigation bar still does not work properly.

ttSpace avatar Dec 31 '21 07:12 ttSpace

This still needs to be investigated. If I had to guess, I'd say pylance is not properly sending the list of methods and properties to the LSP client or they are getting lost along the way.

AdamYoblick avatar Jan 26 '23 22:01 AdamYoblick

This doesn't repro in vscode, so pylance is most likely doing the right thing here. PTVS or the VS LSP Client is most likely responsible.

AdamYoblick avatar Jan 26 '23 22:01 AdamYoblick

In today's latest build:17.6.0 Preview 1.0 [33331.318.main],Python Package:17.0.23031.1 Navigation bar is missing and go to Tools > Options > Text Editor > Python > General > Navigation bar(it is disabled) image

linette-zyy avatar Feb 01 '23 06:02 linette-zyy

Yes that's disabled as a short term fix since the navigation bar isn't showing anything. Need to come up with a long term fix for this one.

StellaHuang95 avatar Feb 23 '23 19:02 StellaHuang95