Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode-Python Outline view for Python in VSCode on Linux not working

Running VSCode on Ubuntu 16.04.3 VSCode Version: 1.26.1 Microsoft Python Extension: 2018.7.1

When I view a python file the outline view shows No symbols found in document. Same file in VSCode on Windows shows all the symbols

Any help?

like image 670
Andy Tomlin Avatar asked Nov 18 '22 04:11

Andy Tomlin


1 Answers

Summing up answers found in the comments...

Opened Python files that have not yet been edited will not show anything in the Outline View (message is "No symbols found in document 'xyz'"). Once the file has been edited and saved, the Outline View will populate correctly.

This is a known issue being tracked at https://github.com/Microsoft/vscode-python/issues/2334.

like image 188
Chris Collett Avatar answered Mar 16 '23 00:03

Chris Collett