-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Run Selection/Line in Python Terminal - SyntaxError #6334
Comments
I'll also mention that this seems to start occurring after I select 1024+ characters which is an interesting number to start to see an issue at.
{
"test": "test",
"test2": "test",
"test3": "test",
"test4": "test",
"test5": "test",
"test6": "test",
"test7": "test",
"test8": "test",
"test9": "test"
}
{
"test": "test",
"test2": "test",
"test3": "test",
"test4": "test",
"test5": "test",
"test6": "test",
"test7": "test",
"test8": "test",
"test9": "test"
}
{
"test": "test",
"test2": "test",
"test3": "test",
"test4": "test",
"test5": "test",
"test6": "test",
"test7": "test",
"test8": "test",
"test9": "test"
}
{
"test": "test",
"test2": "test",
"test3": "test",
"test4": "test",
"test5": "test",
"test6": "test",
"test7": "test",
"test8": "test",
"test9": "test"
}
{
"test": "test",
"test2": "test",
"test3": "test",
"test4": "test",
"test5": "test",
"test6": "test",
"test7": "test",
"test8": "test",
"test9": "test",
"test9": "test",
"test9": "test",
"test9": "test1234",
} |
This is a known upstream issue: microsoft/vscode#38137. It is possible that we could temporarily work around the problem in the Python extension (e.g. chunk the data sent to the terminal), but I'm not sure. We'll look into it. |
Thanks @ericsnowcurrently ! |
Closing in favour of microsoft/vscode#38137. |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Microsoft Python Language Server version 0.3.20.0Expected behaviour
The following code should run as expected when executed using "Run Selection/Line in Python Terminal".
Actual behaviour
Approximately 1/5 of the time on my machine it will result in a syntax error. I've noticed this becomes more of an issue the longer my selection is. For example I can't reproduce the error using the above code when I only have lines 1 - 88 selected (989 total characters). When I select 1 - 92 (1035 total characters) the issue starts occurring. Note that characters in the Python terminal start to be transposed which may suggest there's some sort of race condition as data from the source is inserted into the terminal.
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: