Can't automaticly quit python language server after quitting VSCode on macOS
See original GitHub issueBug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur
- Open a ipynb file in VSCode
- Close tab or VSCode after finish using it
- You can find
Microsoft.Python.LanguageServer
still in the background, and can be seen in theActivity Monitor.app
Actual behavior
When I finished using jupyter notebooks in vscode, I close the window, press cmd+q
to quit VSCode. However, there is a process called Microsoft.Python.LanguageServer
which can be seen in the Activity Monitor.app
, and using my memory more than 1G
.
Expected behavior
When close all of the jupyter notebooks tabs in vscode, the Microsoft.Python.LanguageServer
in the background should be automaticly quit.
Your Jupyter and/or Python environment
Please provide as much info as you readily know
- Jupyter server running: Local
- Extension version: 2020.5.80290
- VS Code version: 1.45.1
- Setting python.jediEnabled: false
- Setting python.languageServer: Microsoft
- Python and/or Anaconda version: Python 3.7.7 & conda 4.8.3
- OS: Mac
- Virtual environment: conda
Developer Tools Console Output
No output available.
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Can't automaticly quit python language server after ... - GitHub
When I finished using jupyter notebooks in vscode, I close the window, press cmd+q to quit VSCode. However, there is a process called...
Read more >Language Server Extension Guide - Visual Studio Code
Language Server is a special kind of Visual Studio Code extension that powers the editing experience for many programming languages. With Language Servers...
Read more >Troubleshoot Terminal launch failures - Visual Studio Code
Some terminal launch failures may be due to your shell installation and are not specific to VS Code. The exit codes displayed come...
Read more >Visual Studio Code Frequently Asked Questions
How do I opt out of VS Code auto-updates? By default, VS Code is set up to auto-update for macOS and Windows users...
Read more >Get Started Tutorial for Python in Visual Studio Code
Write a simple Python script to plot figures within VS Code. This tutorial is not intended to teach you Python itself. Once you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Saafo while I can’t replicate this exact issue, I do think I see a possible code path where this could be a problem. We’ll discuss this in our triage meeting.
Triage: The refCountedLanguageServer is only getting disposed when VSCode is shut down, not on notebook close. Looks like the monaco component is supposed to handle this, but I don’t see it happening. It should get closes on VSCode close, but that is timing dependent.
Year old bug, closing for now. @Saafo, please reopen if this problem still occurs when using notebooks in VS Code Insiders.