-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go to definition does not work for Pandas and other libraries #4972
Comments
Must be part of microsoft/vscode#91987 |
@joyceerhl my other bug about this was closed with statement it’s working in daily build, but it’s not working, as we see here 😜 I have “all” AB experiments enabled so feel free to add experimental code for more feedback :) also, it would be great if you can tell me how to get relevant logs for my countless bug reports to make your work easier 😊 |
@joyceerhl where settings.json is located on macOS? Is it project level or user level? |
@nfx that would be user level. You can find it by running Cmd+Shift+P to bring up the command palette, then typing in 'Open Settings (JSON)' and selecting the top option. |
I poked at this a bit on current VS Code - Insiders. I do see an initial failure the first time that I do Go To Definition or use F12. But then after that initial failure it seem to work correctly for me, but only for a basic intra file example (def foo in one call, foo() in another). Not getting any success on the example of pandas dataframe while it works just fine in .py. Looking more now. |
@IanMatthewHuff i think pandas example doesn't work because symbols, it's not defined in the workspace, but it is a dependency. And indexing/debugging non-workspace symbols is disabled by default, as far as i understood. i think we really need a popup window asking to enable this. Anyway, my expectation from IDE is to look for symbol in every submodule defined in |
@nfx. While digging in on this I found a straight up bug here. Basically outgoing links (goto def and whatnot) from inside a notebook file to anything outside a notebook file were not working. I have a fix in progress and should hit the insiders build of the Python extension soonish. Just follow this issue and you should see when it gets closed. |
Note for team validation. This was resolved in the Python extension. |
Validated against latest main for Python + Jupyter extension. |
yes! it works! thanks! |
@nfx Awesome. Thanks for the confirmation. |
Issue Type: Bug
Go To Definition
does not work for Pandas and any other source type. For example, in this very simple code snippet, i try to CMD+click on a DataFrame symbol and as a seasoned engineer, i expect to go directly to sources of DataFrame class definition, because i have no time to google for documentation nor i generally trust it, because it's either not that extensive or out of date. And sources have more things to show.navigation does not work also for any module in the
sys.path
:this does not work for symbols defined in the same notebook as well:
e.g.
def foo(): print(1)
in one cell, andfoo()
in the other cell doesn't get me jumping the way i'd expect from an IDE.Extension version: 2021.3.600686576
VS Code version: Code - Insiders 1.54.0-insider (Universal) (e590188f17162393f50feec19263398e6fe02d13, 2021-02-26T20:39:12.763Z)
OS version: Darwin x64 19.6.0
A/B Experiments
The text was updated successfully, but these errors were encountered: