Skip to content

switching language server to none does not display expected message when using Python 2.7 #19007

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
meganrogge opened this issue Apr 26, 2022 · 9 comments
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@meganrogge
Copy link

meganrogge commented Apr 26, 2022

Testing #18964

expected Editor support is inactive since language server is set to None for {workspace basename}

Screen Shot 2022-04-26 at 9 12 17 AM

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Apr 26, 2022
@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. triage and removed triage-needed Needs assignment to the proper sub-team labels Apr 26, 2022
@kimadeline
Copy link

Do you remember which steps you took in order to get to that state? If you can reproduce the bug, could you also check if there's anything in the dev tools pane?

@meganrogge
Copy link
Author

even though both extensions are installed, i'm not even seeing that entry in the output channel anymore
Screen Shot 2022-04-29 at 12 43 52 PM
I also have python installed
Screen Shot 2022-04-29 at 12 44 42 PM

@meganrogge
Copy link
Author

none of the errors in dev tools look related

@meganrogge
Copy link
Author

Oh I had to open a python file now I see it

@meganrogge
Copy link
Author

[Info  - 12:45:44 PM] (51962) Pylance language server 2022.4.3 (pyright 88f2a424) starting
[Info  - 12:45:44 PM] (51962) Server root directory: /Users/meganrogge/.vscode-insiders/extensions/ms-python.vscode-pylance-2022.4.3/dist
[Info  - 12:45:44 PM] (51962) No configuration file found.
[Info  - 12:45:44 PM] (51962) No pyproject.toml file found.
[Info  - 12:45:44 PM] (51962) Setting pythonPath for service "vscode": "/Users/meganrogge/.pyenv/versions/2.7.18/bin/python"
[Warn  - 12:45:44 PM] (51962) stubPath /Users/meganrogge/Repos/vscode/typings is not a valid directory.
[Info  - 12:45:44 PM] (51962) Python version 2.7 from interpreter is unsupported
[Info  - 12:45:44 PM] (51962) Assuming Python platform Darwin
[Info  - 12:45:45 PM] (51962) Searching for source files
[Info  - 12:45:46 PM] (51962) Found 4 source files
[Info  - 12:45:46 PM] (51962) Background analysis(1) root directory: /Users/meganrogge/.vscode-insiders/extensions/ms-python.vscode-pylance-2022.4.3/dist
[Info  - 12:45:46 PM] (51962) Background analysis(1) started
[Info  - 12:45:46 PM] (51962) Background analysis(2) root directory: /Users/meganrogge/.vscode-insiders/extensions/ms-python.vscode-pylance-2022.4.3/dist
[Info  - 12:45:46 PM] (51962) Background analysis(2) started
[Info  - 12:45:46 PM] (51962) No configuration file found.
[Info  - 12:45:46 PM] (51962) No pyproject.toml file found.
[Info  - 12:45:46 PM] (51962) Setting pythonPath for service "xterm.js": "/Users/meganrogge/.pyenv/versions/2.7.18/bin/python"
[Info  - 12:45:46 PM] (51962) Python version 2.7 from interpreter is unsupported
[Info  - 12:45:46 PM] (51962) Assuming Python platform Darwin
[Info  - 12:45:46 PM] (51962) Searching for source files
[Info  - 12:45:46 PM] (51962) Found 1 source file
[Info  - 12:45:47 PM] (51962) Indexer background runner(3) root directory: /Users/meganrogge/.vscode-insiders/extensions/ms-python.vscode-pylance-2022.4.3/dist (index)
[Info  - 12:45:47 PM] (51962) Indexing(3) started
[Info  - 12:45:48 PM] (51962) Indexer done(3). indexed 426 files

@kimadeline kimadeline changed the title switching language server to none does not display expected message switching language server to none does not display expected message when using Python 2.7 Apr 29, 2022
@kimadeline
Copy link

What's the value of the python.languageServer setting in the workspace scope? I can't reproduce the issue 😔

@meganrogge
Copy link
Author

it's also None there

@kimadeline
Copy link

Can you try switching python.languageServer values in the workspace scope instead of the user scope, and see if the issue happens?

@meganrogge
Copy link
Author

it works now 👍🏼

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants