Open aderchox opened 4 years ago
Somewhat similar to https://github.com/microsoft/python-language-server/issues/178. __file__
is not a static property, it is a dynamically added object. LS is a static analyzer and does not run any Python code hence dynamically added members won't show up.
Presentation
is just a function that returns dynamically constructed object.
Environment data
"python.jediEnabled"
set to; more info microsoft/vscode-python#3977): falseExpected behaviour
I installed python-pptx and then opened the Presentation.__file__ in it and then chose Go-to Symbol in File, I expect it to list the symbols in that file.
Actual behaviour
But it says: "No symbol information for the file". I've also waited there thinking it might be still loading things but it's permanent and is not showing the symbols. Then I thought it might be because of the kind of deep installation path of my Python (in the local in the appdata, is that deep?) and so copied the file to the root of a drive and now when I reopen it, the option works instantly. Could someone tell me whether it's really my bad Python installation path or something else? I read here that such an issue might be an extension thing so I'm posting this here.
Steps to reproduce:
Go -> Go to Symbol in File
Logs
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
) (I open the console but I really have no idea where to runEnable source map support for extension debugging
, it doesn't sound like JavaScript to be entered in the console :/ )