Skip to content

Breadcrumb Bar Not Detecting Python Functions #2502

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

Closed
kd7vrc opened this issue Sep 6, 2018 · 7 comments
Closed

Breadcrumb Bar Not Detecting Python Functions #2502

kd7vrc opened this issue Sep 6, 2018 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@kd7vrc
Copy link

kd7vrc commented Sep 6, 2018

The breadcrumb bar works intermittently. It sometimes does not detect functions in my .py code (complete and valid). When I click through the code, it doesn't show the function my cursor is currently in. I haven't detected a pattern when it does or does not work to reproduce the issue.

microsoft/vscode#57973 (comment)

VS Code version: Code 1.26.1 (493869ee8e8a846b0855873886fc79d480d342de, 2018-08-16T18:38:57.434Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.49GB (8.81GB free)
Process Argv C:\Users\browns\AppData\Local\Programs\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (11)
Extension Author (truncated) Version
overtype ada 0.2.0
dealii-prm dav 0.0.1
pgsql dou 0.1.3
vs-code-xml-format fab 0.1.5
hive-sql jos 0.0.4
mssql ms- 1.4.0
python ms- 2018.7.1
PowerShell ms- 1.8.4
java red 0.30.0
vscode-sql-beautify sen 0.0.4
line-endings ste 1.0.2
@DonJayamanne
Copy link

Please could you provide the following information:

  • Steps to reproduce (sample repo)
  • Python version (& distribution if applicable, e.g. Anaconda)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...)
  • Are you using the new experimental Language server or still using Jedi
    If you don't know, please could you check if the following setting is enabled in your settings.json file (user and workspace settings)
"python.jediEnabled": false

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster feature-code navigation labels Sep 6, 2018
@kd7vrc
Copy link
Author

kd7vrc commented Sep 6, 2018

The problem is intermittent, and I have not detected a pattern that allows me to describe steps that will reliably reproduce the issue.
My python version is 3.6.4 Anaconda 64 bit.
I haven't configured any special environments. I suppose I'm using conda, but I'm not sure.
I have "python.jediEnabled": false, but I don't remember intentionally setting that. I also have what appears to be an invalid setting "[python]": {}

@brettcannon
Copy link
Member

@kd7vrc if you installed IntelliCode then it would have flipped on the language server.

If you look down in the status bar it will tell you what Python interpreter you are using (and thus if you are using Anaconda).

The [python]: {} is totally valid; that just means you have no settings that are scoped to only when you are editing Python code.

@kd7vrc
Copy link
Author

kd7vrc commented Sep 7, 2018

My python interpreter is Anaconda 5.1.0

@brettcannon brettcannon added needs verification and removed info-needed Issue requires more information from poster labels Sep 7, 2018
@brettcannon
Copy link
Member

Can you verify this, @DonJayamanne ?

@kd7vrc
Copy link
Author

kd7vrc commented Sep 7, 2018

I may have found a pattern. I noticed it didn't work when the status bar at the bottom said "Analyzing Workspace...", but when it was finished, it worked fine. "Analyzing Workspace" can sometimes take a long time to complete.

@brettcannon
Copy link
Member

@kd7vrc thanks for the update. I'm going to close this then as we are tracking the fact analysis seems to hang in microsoft/python-language-server#69 .

@lock lock bot locked as resolved and limited conversation to collaborators Oct 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants