Skip to content
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

No Auto-completion/Reference navigation on Linux #21849

Closed
ThibautHH opened this issue Aug 18, 2023 · 2 comments
Closed

No Auto-completion/Reference navigation on Linux #21849

ThibautHH opened this issue Aug 18, 2023 · 2 comments
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@ThibautHH
Copy link

ThibautHH commented Aug 18, 2023

Type: Bug

Behaviour

Expected vs. Actual

The language server and extension should allow for symbol navigation and completion suggestions but nothing is available.
No syntax highlighting is done on symbol resolution-dependent code (i.e. imported classes members etc)

Steps to reproduce:

Unknown, no error in shown in my log, except a warning about storage keys the warning went away, unrelated.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.3-2
  • Type of virtual environment used: None
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2023-08-18 23:28:44.200 [info] Discover tests for workspace name: undefined - uri: /home/Thibaut/.config/Code/User/settings.json
2023-08-18 23:28:55.154 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-08-18 23:28:55.154 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-08-18 23:28:55.154 [info] Experiment 'pythonTestAdapter' is active
2023-08-18 23:28:55.174 [info] Test server listening.
2023-08-18 23:28:55.177 [info] Python interpreter path: /bin/python
2023-08-18 23:28:56.888 [info] Starting Pylance language server.

User Settings

languageServer: "Pylance"

This issue was previously mentioned in #21831 and experienced by another user at the same time as it, though the issue itself seems unrelated.
As it was stated there, the issue is there on both the pre-release and release versions.

Extension version: 2023.15.12301911
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:18:39.991Z)
OS version: Linux x64 6.4.10-arch1-1
Modes:

System Info
Item Value
CPUs AMD Ryzen 7 5800H with Radeon Graphics (16 x 3328)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 14.97GB (8.88GB free)
Process Argv --crash-reporter-id fcde559e-e694-42ec-a10a-1f160d5bfb15
Screen Reader no
VM 0%
DESKTOP_SESSION undefined
XDG_CURRENT_DESKTOP undefined
XDG_SESSION_DESKTOP undefined
XDG_SESSION_TYPE undefined
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Aug 18, 2023
@ThibautHH
Copy link
Author

The problem was simply that the imports I had in the file were not resolvable because not in the PYTHON_PATH or any looked-up locations.

@Patschke
Copy link

As others may find this issue and are looking for a solution: I had the same problems, also running Arch linux. However, in my case imports were not faulty. What seemed to be an issue for me was that I had installed the "Pylance" extension as well. After uninstalling this, stuff started to work again.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants