Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

nushell doesn't work with debugpy (python debugger)

オープン
#1,853 コメント 7 件 リアクション 8 件 担当者 2 名 GitHub で見る

@anthonykim1 がすでに取り組んでいます。

2025年3月4日 から。

評価

この issue はまだ評価されていません。

説明

bug needs repro

Does this issue occur when all extensions are disabled?: Well. I need Python extension to make it run.

The issue description (system details at the bottom):

Seems like even though it says that nushell is supported now in VSCode in August release (here is the announce), it still can't be used as one of Internal Terminals when you try to debug python script. It gets call with a sequence not compatible with nushell syntax like this one.

a) Pixi's environemnt python bad command example:

cmd /C "c:\dev\data_processing\.pixi\envs\default\python.exe c:\Users\360ci\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher 54917 -- c:\dev\data_processing\test.py "

b) Conda's environment python bad command example:

c: && cd c:\dev\sfms && cmd /C "c:\programs\miniconda\envs\data_proc\python.exe c:\Users\360ci\.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher 50270 -- c:\dev\sfms\test.py "

Screenshot:
Image

It DOES work when you just try to run the script because comparing with debug sequence it doesn't have nushell incompatible command in this case. Because when you try to just run it correctly forms the line. Here is example of the command which works

Conda's good and compatible command when you just run without debugger:

C:/programs/miniconda/envs/data_proc/python.exe c:/dev/sfms/test.py

@anthonykim1, I saw you latest work on having nushell and julia integrated into VSCode, but I think there is a small chance that I misunderstand how it is expected to work?

The isssue is also discussed here in nushell repo:
https://github.com/nushell/nushell/issues/14022
Here is also one of my comments on this problem with some advices from one of the authors:
https://github.com/nushell/nushell/issues/2775#issuecomment-2412005812

@IanManske point outed here that the problem in these lines where nushell is not supported:
https://github.com/microsoft/vscode/blob/321e1e5b8a0af43a0ee7549713f606936a1ac9ac/src/vs/workbench/contrib/debug/node/terminals.ts#L81

Details

  • VS Code Version: 1.94.2
  • OS Version: Win10: 10.0.19045 Build 19045
  • Plugins: Python plugin, but no nushell plugin (is it needed?)

Steps to Reproduce:

  1. Install nushell in your system.
  2. Go to Settings, to to Terminal > Integrated > Default Profile: Windows, set up "path" to installed nushell
  3. Have a small python program like print("Hello nu in vscode")
  4. Click on the "Run" arrow, selecting "Python Debugger: Debug Python File"
  5. Get error message caused by ill-formed command Error: × Invalid literal complaining (see the above the full command it calls) about "" or "&&" symbols in the string.
主要言語
Python
スター
2.5k
フォーク
202
平均マージ
5日 1時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。