question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't automaticly quit python language server after quitting VSCode on macOS

See original GitHub issue

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Open a ipynb file in VSCode
  2. Close tab or VSCode after finish using it
  3. You can find Microsoft.Python.LanguageServer still in the background, and can be seen in the Activity 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
IanMatthewHuffcommented, Jun 8, 2020

@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.

0reactions
greazercommented, Jun 6, 2021

Year old bug, closing for now. @Saafo, please reopen if this problem still occurs when using notebooks in VS Code Insiders.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found