-
Notifications
You must be signed in to change notification settings - Fork 147
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
nushell doesn't work with debugpy (python debugger) #1853
Comments
This is actually handled in the |
Hi @karthiknadig, |
@ishipachev I think this change might needs fixes in @rchiodo The run in terminal command is sent from |
Created this microsoft/vscode-python-debugger#647 to track support for nushell no-config debugging. PRs welcome on that, since it is a smallish feature, to enable debugging with VS Code directly from terminal without any configuration. |
I don't think debugpy is adding the Here's the command I see in my terminal:
Here's the actual request from debugpy:
|
@anthonykim1 Can you take a look? |
@rchiodo I will move it to the right place after @anthonykim1 confirms. I didn;t realize that |
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:
b) Conda's environment python bad command example:
Screenshot:

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:
@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:
nushell/nushell#14022
Here is also one of my comments on this problem with some advices from one of the authors:
nushell/nushell#2775 (comment)
@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
Steps to Reproduce:
print("Hello nu in vscode")
Error: × Invalid literal
complaining (see the above the full command it calls) about "" or "&&" symbols in the string.The text was updated successfully, but these errors were encountered: