-
Notifications
You must be signed in to change notification settings - Fork 26
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
Unknown characters were output in the built-in terminal. #302
Comments
@ZhanZiyuan Can you share logs from Output > Python? this seems like it might be coming from python extension trying to activate the environment. |
OK. Here are logs from Output for Python in the Output panelContents in brackets were translated by Google Translate.
I found that when switching between Incorrect output in the built-in terminal❯ d:; cd 'd:\zigzag\Python Assignments'; & 'D:\Python\python.exe' 'c:\Users\user\.vscode\extensions\ms-python.python-2024.4.0\python_files\lib\python\debugpy\adapter/../..\debugpy\launcher' '62282' '--' 'C:\Users\user\Downloads\test.py'
2' '--' 'C:\x5cUsers\x5cuser\x5cDownloads\x5ctest.py' ;d089afb6-7948-4b04-9449-756ef89608562' '--' 'C:\x5cUsers\x5cuser\x5cDownloads\x5ctest.py' ;d089afb6-7948-4b04-9449-756ef89608567.098666746304519 Correct output in the built-in terminal❯ d:; cd 'd:\zigzag\Python Assignments'; & 'D:\Python\python.exe' 'c:\Users\user\.vscode\extensions\ms-python.python-2024.4.0\python_files\lib\python\debugpy\adapter/../..\debugpy\launcher' '62042' '--' 'C:\Users\user\Downloads\test.py'
7.098666746304519 |
@Tyriar This looks like it might be coming from shell integration. |
@karthiknadig that guid could be the set command line nonce if it's not something the extension is inputting 🤔 @ZhanZiyuan what version of Windows are you on? |
Hello. My OS Version: Windows I'm also using the latest stable release of Visual Studio Code (version 1.88). |
This is likely a very old version of conpty misbehaving as it's shipped with Windows and you're still on 10. So a workaround is to disable shell integration, the real fix is to update to Windows 11. |
Alright, many thanks for your reply though the computer is not eligible to upgrade to Windows 11. |
I have this problem on Windows 11 as well. However it might be independent of the Python Debugger itself, as there are no issues with VsCode version 1.87.2, only with 1.88. The problem is only present when using |
I have encountered similar issue when I update to VSC 1.88.1 and it is solved when I revert to 1.87.2 Another walkaround is setting "console" as "internal Console" in launch.json My Windows version is 22631.3527 I have another PC with a Windows Canary Insider Preview 26200.5001 |
Closing the issue as the error is on vscode side. |
Behaviour
Debug a Python file
C:\Users\user\Downloads\test.py
in Visual Studio Code.Steps to reproduce:
Open
C:\Users\user\Downloads\test.py
in Visual Studio Code.Press F5.
The built-in terminal launched.
The output is printed, while it looks strange:
However, if the Python file is run in the terminal instead of being debugged with Visual Studio Code, the issue will not occur:
Diagnostic data
launch.json
configurationOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output for
Python Debugger
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython Debugger
)The text was updated successfully, but these errors were encountered: