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

The pylance server doesn't do anything on vscode #6816

Open
AImixAE opened this issue Jan 3, 2025 · 7 comments
Open

The pylance server doesn't do anything on vscode #6816

AImixAE opened this issue Jan 3, 2025 · 7 comments

Comments

@AImixAE
Copy link

AImixAE commented Jan 3, 2025

Environment data

  • Pylance version: 2024.12.100
  • OS and version: Arch Linux x86_64 Linux 6.12.7
  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.1

Code Snippet

# Everything can be used

Repro Steps

  1. Open VSCode.
  2. Create or open a Python file.
  3. Enter something and try to see if the autocomplete feature is available.

Expected behavior

No supplementary content has been provided, and it seems that the language server is also not functioning.

Actual behavior

No supplementary content has been provided, and the commands for Pylance cannot be used (within Ctrl+shift+p, it will prompt that the command cannot be found).

Image

Other things

I am not certain if it is only malfunctioning on my system.

If you require more information, please feel free to inquire with me at your earliest convenience!

Logs

Chinese:

2025-01-04 07:33:22.015 [info] 试验“pythonRecommendTensorboardExt”处于活动状态
2025-01-04 07:33:22.015 [info] 试验“pythonSurveyNotificationcf”处于活动状态
2025-01-04 07:33:22.015 [info] 试验“pythonTerminalEnvVarActivation”处于活动状态
2025-01-04 07:33:22.015 [info] 试验“pythonTestAdapter”处于活动状态
2025-01-04 07:33:22.015 [warning] Dir "/home/aimix/code/python/projects/twochat/.pixi/envs" is not watchable (directory does not exist)
2025-01-04 07:33:22.016 [info] Python 解释器路径: /usr/bin/python
2025-01-04 07:33:22.693 [info] > pyenv which python
2025-01-04 07:33:22.693 [info] cwd: .
2025-01-04 07:33:40.789 [info] Discover tests for workspace name: twochat - uri: /home/aimix/code/python/projects/twochat/src/main.py
2025-01-04 07:33:55.907 [info] 试验“pythonRecommendTensorboardExt”处于活动状态
2025-01-04 07:33:55.907 [info] 试验“pythonSurveyNotificationcf”处于活动状态
2025-01-04 07:33:55.907 [info] 试验“pythonTerminalEnvVarActivation”处于活动状态
2025-01-04 07:33:55.907 [info] 试验“pythonTestAdapter”处于活动状态
2025-01-04 07:33:55.907 [warning] Dir "/home/aimix/code/python/projects/twochat/.pixi/envs" is not watchable (directory does not exist)
2025-01-04 07:33:55.909 [info] Python 解释器路径: /usr/bin/python
2025-01-04 07:33:58.016 [info] > pyenv which python
2025-01-04 07:33:58.016 [info] cwd: .
@AImixAE
Copy link
Author

AImixAE commented Jan 3, 2025

And here
Image

@AImixAE
Copy link
Author

AImixAE commented Jan 4, 2025

I tried using vscode on aur, It's working again.
That's weird.

@AImixAE AImixAE closed this as completed Jan 4, 2025
@AImixAE AImixAE reopened this Jan 14, 2025
@AImixAE
Copy link
Author

AImixAE commented Jan 14, 2025

It's not working again, it's weird...

@rchiodo
Copy link
Contributor

rchiodo commented Jan 14, 2025

Your original logs don't show Pylance being used. What is this setting set to?

Image

@AImixAE
Copy link
Author

AImixAE commented Jan 17, 2025

I just set Default.Even Pylance doesn't work.
(I have followed the online settings many times)

@AImixAE
Copy link
Author

AImixAE commented Jan 17, 2025

I can provide my settings file if needed.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 21, 2025

We'd need the logs from the 'Python' extension. It's the one that starts Pylance. This could be this bug here:
microsoft/vscode-python#24324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants