microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.52k stars 28.65k forks source link

Outline "No symbols found in document" in python files #200340

Closed edugarcam closed 9 months ago

edugarcam commented 9 months ago

Type: Bug

The outline view is not working for python files. I tried with a .scss and It works.

VS Code version: Code 1.85.0 (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T22:27:05.695Z) OS version: Linux x64 6.5.0-14-generic snap Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 3604)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|1, 2, 1| |Memory (System)|15.29GB (8.77GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id b859c1c3-fe0c-4b9a-b18c-23a151ef14d8| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (28) Extension|Author (truncated)|Version ---|---|--- vscode-css-formatter|aes|1.0.2 Bookmarks|ale|13.4.2 arepl|alm|2.0.5 htmlplay|bia|0.0.10 pgformatter|bra|1.28.1 vscode-postgres|cko|1.4.3 gitlens|eam|14.5.2 vscode-html-css|ecm|1.13.1 pip-packages|etm|0.4.3 code-runner|for|0.12.1 copilot|Git|1.141.0 copilot-chat|Git|0.12.2023120701 search-node-modules|jas|1.3.0 svg|joc|1.5.3 typings-autoinstaller|jvi|1.2.0 git-graph|mhu|1.30.0 language-gettext|mro|0.2.2 vscode-language-pack-es|MS-|1.85.2023120618 isort|ms-|2023.10.1 pylint|ms-|2023.11.13201006 python|ms-|2023.22.0 vscode-pylance|ms-|2023.11.10 vscode-typescript-next|ms-|5.4.20231207 indent-rainbow|ode|8.3.1 vscode-xml|red|0.26.1 ActiveFileInStatusBar|Ros|1.0.3 code-spell-checker|str|3.0.1 pdf|tom|1.2.2
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30899288 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 azure-dev_surveyonecf:30548226 282f8724:30602487 f6dab269:30613381 showlangstatbar:30737416 0bi6i642:30917235 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30902429 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 dsvsc019cf:30917260 ```
edugarcam commented 9 months ago

It was a problem with "Jedi" changing to "Python: Language Server" to "default" solved the problem