microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.94k stars 28.77k forks source link

Intergrated termial shows extra space after every character #152560

Closed reporter123 closed 2 years ago

reporter123 commented 2 years ago

Issue Type: Bug

VS Code;s integrated terminal seems to be confusing UTF-16 and UTF-8 some where. The results are apparent on Linux systems which don't default to UTF-16.

bad output

VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-15T02:58:26.441Z) OS version: Linux x64 5.15.0-39-generic Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5825U with Radeon Graphics (16 x 2134)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|1, 4, 3| |Memory (System)|14.99GB (5.15GB free)| |Process Argv|--unity-launch /usr/src/kdesrc/clazy --crash-reporter-id faf32d79-1d11-4421-91bd-0059187761b3| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|plasma| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|KDE| |XDG_SESSION_TYPE|x11|
Extensions (160) Extension|Author (truncated)|Version ---|---|--- language-x86-64-assembly|13x|3.0.0 sdlang|Lau|0.1.2 vscode-sql-formatter|adp|1.4.4 vscode-css-formatter|aes|1.0.2 vscode-icalendar|af4|1.0.1 cppincludeguard|aki|1.6.0 pascal|ale|9.5.0 pascal-formatter|ale|2.6.0 vscode-sqlite|ale|0.14.1 vscode-lcov|ale|0.2.0 makeRunner|ale|0.1.2 jsfr|And|0.5.2 ng-template|Ang|14.0.1 icons-carbon|ant|0.2.5 vscode-zipfs|arc|3.0.0 inf|bag|0.0.1 gitlab-pipeline-monitor|bal|2.0.0 QML|bbe|1.0.0 vscode-node-readme|ben|3.0.2 vscode-linux-binary-preview|bet|2.3.1 perl-html-template|bia|1.1.7 cobol|bit|7.7.28 cobol-plus-pack|bit|1.0.5 npm-intellisense|chr|1.4.2 gitignore|cod|0.7.0 vscode-postgresql-client2|cwe|5.3.3 yash|dao|0.2.9 git-diff-and-merge-tool|dav|1.0.5 vscode-markdownlint|Dav|0.47.0 ini-for-vscode|Dav|0.0.4 vscode-eslint|dba|2.2.2 javascript-ejs-support|Dig|1.3.1 binary-plist|dni|0.9.1 docs-preview|doc|0.3.59 dotfiles-syntax-highlighting|dot|0.1.0 xml|Dot|2.5.1 gitlens|eam|12.1.1 vscode-html-css|ecm|1.13.0 EditorConfig|Edi|0.16.4 graphviz-preview|EFa|1.5.0 vscode-npm-script|eg2|0.3.25 git-commits|Exe|3.12.5 vscode-firefox-debug|fir|2.9.7 vscode-jest-runner|fir|0.4.48 vs-code-http-server-and-html-preview|Fli|2.2.2 auto-close-tag|for|0.5.14 webpack-4-snippets|fwg|0.0.3 vscode-yarn|gam|2.1.0 gdb|l|0.0.1 vscode-angular-html|gha|1.8.0 remotehub|Git|0.34.0 gc-excelviewer|Gra|4.2.55 global-config|Gru|0.0.16 todo-tree|Gru|0.0.215 vscode-gitbuild|grz|1.0.1 vscode-stylint|Haa|0.1.3 vscode-systemd-support|han|1.0.1 CppSnippets|har|0.0.15 vscode-test-explorer|hbe|2.21.1 live-html-previewer|hdg|0.3.0 output-colorizer|IBM|0.1.2 innosetup|idl|1.6.1 reg|ion|1.1.0 mysql-syntax|jak|1.3.1 latex-workshop|Jam|8.27.2 webpack|jer|2.2.0 vscode-graphviz|joa|0.0.6 svg|joc|1.4.18 sql-language-server|joe|1.2.1 kos-vscode|Joh|1.1.5 svn-scm|joh|2.15.5 ts-debug|kak|0.0.6 json2csv|kha|0.0.1 vscode-valgrind|kro|0.0.1 vscode-nsis|Kry|0.0.1 node-module-intellisense|lei|1.5.0 restructuredtext|lex|189.0.0 vscode-clangd|llv|0.1.17 python-grammer|M|0.0.2 autoconf|mae|0.1.0 yarn-lock-syntax|mar|0.1.3 mypy|mat|0.2.2 asm-code-lens|maz|1.10.2 ninja-syntax|mel|1.0.0 git-graph|mhu|1.30.0 dotenv|mik|1.0.1 ecdc|mit|1.7.0 HTMLHint|mka|0.10.0 vscode-git-notify|mkl|0.4.2 hg|mrc|1.8.1 vscode-apache|mrm|1.2.0 vscode-json5|mrm|1.0.0 language-gettext|mro|0.2.0 vscode-docker|ms-|1.22.0 python|ms-|2022.8.0 vscode-pylance|ms-|2022.6.20 jupyter|ms-|2022.5.1001601848 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.8 remote-containers|ms-|0.238.2 remote-ssh|ms-|0.82.1 remote-ssh-edit|ms-|0.80.0 cmake-tools|ms-|1.11.26 cpptools|ms-|1.10.7 hexeditor|ms-|1.9.7 live-server|ms-|0.2.12 remote-repositories|ms-|0.12.0 test-adapter-converter|ms-|0.1.6 color-highlight|nau|2.5.0 linux-desktop-file|nic|0.0.21 copy-json-path|nid|0.2.0 vscode-python-typehint|njq|1.4.1 angular-console|nrw|17.18.2 vscode-ts-config-plugin|oct|0.2.0 css-grid-snippets|oha|0.0.5 vscode-yaml-sort|Pas|5.3.1 qml-snippets|pat|0.0.5 tmlanguage|ped|0.12.0 jsdoc-live-preview|Per|2.0.0 pokowaka-iwyu|pok|1.0.3 vscode-css-peek|pra|4.2.0 ejs-language-support|Qas|0.0.1 inline-sql-syntax|quf|2.13.2 quicktype|qui|12.0.46 diff|raf|0.0.1 vscode-thunder-client|ran|1.16.5 cfold|rea|0.2.4 java|red|1.7.0 vscode-xml|red|0.20.0 vscode-sort-json|ric|1.20.0 llvm|RRe|0.1.1 bootstrap-product-icons|rub|1.0.2 vscode-coverage-gutters|rya|2.10.1 tt|sam|0.0.5 jasmine-problem-matcher|sea|1.0.1 vscode-qt-for-python|sea|1.1.7 lcov-lang|Ser|1.0.1 perlcritic|sfo|1.3.8 perltidy|sfo|1.3.3 gitconfig|sid|2.0.1 vscode-zipexplorer|sle|0.3.1 vscode-csstree|sme|1.1.0 vscode-stylelint|sty|1.2.2 spellchecker|swy|1.3.0 shellcheck|tim|0.19.5 qtvsctools|ton|0.11.0 d-code|ton|0.1.2 simple-rst|tro|1.5.2 json2yaml|tux|0.2.0 cmake|twx|0.0.17 errorlens|use|3.5.1 vscode-lldb|vad|1.7.0 vscodeintellicode|Vis|1.2.21 vscode-maven|vsc|0.35.2 vscode-todo-highlight|way|1.0.5 browserslist|web|1.1.0 caniuse-query|Wil|0.0.1 JavaScriptSnippets|xab|1.8.0 clang-format|xav|1.9.0 licenser|ymo|1.9.0 (3 theme extensions excluded)
infinnie commented 2 years ago

This might be due to your font used for terminal not being a monospace. All characters are spaced to meet the width of the widest character in that font.

reporter123 commented 2 years ago

Thanks had a feeling there was something obvious i was over looking. Definitely font related I'll make a note of that