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

Command 'Python: Restart Language Server' resulted in an error (command 'python.analysis.restartLanguageServer' not found) #24275

Closed
NicoNekoru opened this issue Oct 9, 2024 · 2 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 info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@NicoNekoru
Copy link

Type: Bug

When attempting to run Python: Restart Language Server a dialog box with the content

Command 'Python: Restart Language Server' resulted in an error (command 'python.analysis.restartLanguageServer' not found)

Appears. Followed the steps to solve in #13474 (uninstall python extension and delete the residual extensions folder) but the issue was not resolved.

image

Extension version: 2024.14.1
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.22631
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
:emojisense: bierner.emojisense 0.10.0
.NET Install Tool ms-dotnettools.vscode-dotnet-runtime 2.1.7
Apc Customize UI++ drcika.apc-extension 0.3.9
Auto Rename Tag formulahendry.auto-rename-tag 0.1.10
Ayu teabyii.ayu 1.0.5
Better Comments aaron-bond.better-comments 3.0.2
C# ms-dotnettools.csharp 2.50.25
CSS Modules clinyong.vscode-css-modules 0.5.1
Debugger for Java vscjava.vscode-java-debug 0.58.0
Dev Containers ms-vscode-remote.remote-containers 0.388.0
Docker ms-azuretools.vscode-docker 1.29.2
ElixirLS: Elixir support and debugger JakeBecker.elixir-ls 0.23.1
ESLint dbaeumer.vscode-eslint 3.0.10
Extension Pack for Java vscjava.vscode-java-pack 0.29.0
GitLens — Git supercharged eamodio.gitlens 15.6.0
Gradle for Java vscjava.vscode-gradle 3.16.4
Halcyon Theme brittanychiang.halcyon-vscode 0.3.1
Heex HTML ritvyk.heex-html 0.0.5
IntelliCode VisualStudioExptTeam.vscodeintellicode 1.3.1
IntelliCode API Usage Examples VisualStudioExptTeam.intellicode-api-usage-examples 0.2.8
JavaScript and TypeScript Nightly ms-vscode.vscode-typescript-next 5.7.20241007
JavaScript Debugger ms-vscode.js-debug 1.91.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.2
Jupyter ms-toolsai.jupyter 2024.6.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags 0.1.9
Jupyter Keymap ms-toolsai.jupyter-keymap 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers 1.0.19
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow 0.1.6
Language Support for Java(TM) by Red Hat redhat.java 1.35.1
Live Preview ms-vscode.live-server 0.4.15
Markdown All in One yzhang.markdown-all-in-one 3.6.2
Material Icon Theme PKief.material-icon-theme 5.11.1
Maven for Java vscjava.vscode-maven 0.44.0
Monokai Pro monokai.theme-monokai-pro-vscode 1.3.2
PowerShell ms-vscode.powershell 2024.2.2
Prettier - Code formatter esbenp.prettier-vscode 11.0.0
Prettier ESLint rvest.vs-code-prettier-eslint 6.0.0
Pretty TypeScript Errors YoavBls.pretty-ts-errors 0.6.0
Project Manager for Java vscjava.vscode-java-dependency 0.24.0
Pylance ms-python.vscode-pylance 2024.10.1
Python ms-python.python 2024.14.1
Python Debugger ms-python.debugpy 2024.8.0
rust-analyzer rust-lang.rust-analyzer 0.3.2137
Svelte for VS Code svelte.svelte-vscode 109.0.3
Svelte Intellisense ardenivanov.svelte-intellisense 0.7.1
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.9
Tailwind CSS IntelliSense bradlc.vscode-tailwindcss 0.12.11
Test Runner for Java vscjava.vscode-java-test 0.42.0
Vim vscodevim.vim 1.28.1
WSL ms-vscode-remote.remote-wsl 0.88.4
System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.85GB (0.71GB free)
Process Argv --folder-uri file:///c%3A/Users/kaima/Desktop/Programming/Quant --crash-reporter-id 75cc42d3-c13c-4cdb-b577-8ac88e67c787
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
g316j359:31013175
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
flightc:31134773
wkspc-onlycs-t:31132770
nativeloc1:31134641
wkspc-ranged-t:31151552
defaultse:31146405
notype1cf:31151524
cc771715:31146322

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 9, 2024
@karthiknadig karthiknadig self-assigned this Oct 9, 2024
@karthiknadig
Copy link
Member

This is often the case if the extension failed to activate. Do you see any errors in the Output> Python panel, or the console logs (Help> Toggle Developer Tools)

@eleanorjboyd eleanorjboyd added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. info-needed Issue requires more information from poster labels Dec 16, 2024
Copy link

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

Happy Coding!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants