question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot print long characters in one line at terminal. ptvsd upgrade is required.

See original GitHub issue

Environment data

  • VS Code version: 1.41.1
  • Extension version (available under the Extensions sidebar): 2019.11.50794
  • OS and version: Windows 10 Education 10.0.18362 Build 18362
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.1 32bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A

Expected behaviour

Expect to print 10 'C’s at end of line. image

Actual behaviour

It only prints ‘A’. So I think there are maximum character size when print one line. image

Steps to reproduce:

  1. Write below code & save it.
s = 'A' * 0x4000 + 'C' * 10
print(s)
  1. Press Ctrl + F5 to run this file without debugging.

  2. You can see the terminal output which there is no ‘C’.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

User belongs to experiment group 'ShowPlayIcon - start'
> conda --version
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> py -3.7 -c "import sys;print(sys.executable)"
> py -3.6 -c "import sys;print(sys.executable)"
> py -3 -c "import sys;print(sys.executable)"
> py -2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> conda info --json
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.exe c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\interpreterInfo.py
Starting Jedi Python language engine.
> conda --version
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text f:\coding\twitchNotification\src\test.py
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text f:\coding\twitchNotification\src\test.py
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -c "import sys;print(sys.prefix)"
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -c "import sys;print(sys.prefix)"
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -c "import sys;print(sys.executable)"
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -c "import sys;print(sys.executable)"
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -m site --user-site
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe -m site --user-site
cwd: f:\coding\twitchNotification
> ~\AppData\Local\Programs\Python\Python37-32\python.exe completion.py
cwd: c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles
> ~\AppData\Local\Programs\Python\Python37-32\python.exe completion.py
cwd: c:\Users\JJH\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles
##########Linting Output - pylint##########

--------------------------------------------------------------------

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

There is no error log when running python code.

But in Debug Console, there exists 10 'C’s. image

@karthiknadig transfer this problem to ptvsd repository.

https://github.com/microsoft/ptvsd/issues/2017

The collaborator says this issue is fixed in ptvsd 5.X version. So, could you update ptvsd version from 4.3.2 to 5.X?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kimadelinecommented, Dec 30, 2019

Hi @humit0 👋 Thank you for reaching out and mentioning the original issue on the ptvsd repo.

ptvsd 5.0 is currently enabled as an experiment for a small subset of users, and we plan on rolling it out for all users in an upcoming release, so please hang tight until we release it.

Thanks!

0reactions
brettcannoncommented, Mar 24, 2020

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue 1602: windows console doesn't print or input Unicode
msg58487 ‑ (view) Author: Mark Summerfield (mark) * Date: 2007‑12‑12 09:56 msg58621 ‑ (view) Author: Mark Summerfield (mark) * Date: 2007‑12‑14 11:31 msg58651 ‑ (view)...
Read more >
Bash or Python, When print characters to terminal, how to ...
I'm going to answer in Python, since it's easier. You can print a backspace to the terminal to move the cursor to the...
Read more >
Debugging configurations for Python apps in Visual Studio Code
This article mainly addresses Python-specific debugging configurations, including the necessary steps for specific app types and remote debugging.
Read more >
JupyterLab Changelog — JupyterLab 3.6.0b0 documentation
For existing extensions, there is a new python -m jupyterlab.upgrade_extension script that can be used to upgrade extensions. The script will update the ......
Read more >
License Files — Omniverse View documentation
(Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found