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

"externalTerminal" does not work on Linux #731

Closed
Kriper1111 opened this issue Sep 23, 2021 · 0 comments
Closed

"externalTerminal" does not work on Linux #731

Kriper1111 opened this issue Sep 23, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Kriper1111
Copy link

Environment data

  • VS Code version: 1.60.2
  • Extension version (available under the Extensions sidebar): v2021.9.1246542782
  • OS and version: Linux debian 5.10.0-8-amd64, Debian 11 bullseye
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.9.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Value of the python.languageServer setting: Jedi

Expected behaviour

Konsole window would open and debugging will start.

Actual behaviour

Upon launching, a blank Konsole window opens and nothing else happens. Terminal doesn't seem to respond to any inputs. If interrupted, traceback ends at debugpy/launcher/__main__.py line 54.
The script is not executed.

Steps to reproduce:

  1. Ensure VSCode is installed with python extension in it.
  2. Create a debug profile, with "console" in launch.json set to externalTerminal
  3. Set "terminal.external.linuxExec" in config.json to "konsole"
  4. Create a simple python file (for example)
  5. Run the debugger

Logs

Output for Python in the Output panel, debugpy logs and additional notes

Error 2021-09-23 12:43:44: stderr jediProxy Error (stderr) /home/john/.vscode/extensions/ms-python.python-2021.9.1246542782/pythonFiles/completion.py:624: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).infer instead.
  script.goto_definitions(), request["id"]

Error 2021-09-23 12:43:44: stderr jediProxy Error (stderr) /home/john/.vscode/extensions/ms-python.python-2021.9.1246542782/pythonFiles/completion.py:144: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_signatures instead.
  call_signatures = script.call_signatures()

With logToFile set to true:

This has also been tested on ArcoLinux (Linux 5.13.13-arch1-1 microsoft/vscode-python#1 SMP PREEMPT Thu, 26 Aug 2021 19:14:36 +0000 x86_64 GNU/Linux) with VSCode version 1.60.2-1, and latest ms-python version, with the same results.
Additionaly, similar issue happens with Alacritty (debugger reports 'alacritty' failed with exit code 1) and xterm (same as with Konsole).

Konsole version: 20.12.3
XTerm version: XTerm(366)

The debugger does work if "terminal.external.linuxExec" is gnome-terminal, at least on my Debian install.

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Sep 23, 2021
@int19h int19h added the bug Something isn't working label Sep 23, 2021
@judej judej added this to the Dev 17.x milestone Oct 20, 2021
@int19h int19h self-assigned this Jun 22, 2022
@judej judej changed the title Debugger does not work with Konsole as externalTerminal Debugger does not work on Linux as externalTerminal Jun 27, 2022
@int19h int19h changed the title Debugger does not work on Linux as externalTerminal "externalTerminal" does not work on Linux Jun 29, 2022
int19h pushed a commit to int19h/debugpy that referenced this issue Jun 29, 2022
Do not wait for "runInTerminal" response when spawning the launcher.
@int19h int19h closed this as completed in 7676e29 Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants