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.

Rendering random characters

See original GitHub issue

Random characters are sometimes rendered in place of true characters (the code is still correct when I run it, but doesn’t display correctly). If I highlight the wrongly displayed characters and then unhighlight, the error corrects itself. It’s really random when it happens and I don’t know how best to reproduce it. However, this has happened on two of my machines running Windows 10 and 11.

Rendered wrong: image True text: image

Rendered wrong: image True text: image

  • VS Code Version:
1.68.1
30d9c6cd9483b2cc586687151bcbcd635f373630
x64

-VSCode Neovim Version: v0.0.87

  • OS Version:
Edition	Windows 10 Pro
Version	21H2
Installed on	‎3/‎19/‎2021
OS build	19044.1766
Experience	Windows Feature Experience Pack 120.2212.4180.0

Steps to Reproduce:

  1. Open a python file in VS Code with the “VSCode Neovim” extension
  2. Write code for a while, then random characters will be rendered in place of true characters.

https://github.com/microsoft/vscode/issues/154565

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:16
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
windwpcommented, Nov 11, 2022

I can reproduce it . #1075 will fix that.

1reaction
plainoldcheesecommented, Nov 11, 2022

Hi, I am experiencing this issue as well with Version 1.73 of VSCode and neovim v0.8.0 My vscode-neovim plugin page states ‘last modified: 08/11/2022, 08:07:47’ (I could not figure out how to get the version number for the plugin)

  1. When I disable all plugins (except vscode-neovim) and set the init.lua config path to NONE then I do not experience the issue.
  2. When I enable all plugins (except vscode-neovim) and still have the config path to NONE I still do not experience this issue. (even with multiple linters installed, like Prettier, and markdownlint when editing markdown files)
  3. When I introduce my config init.lua without any extensions; I begin to experience the issue (albeit less frequently than when I have vscode linting plugins and init.lua enabled).
  4. after removing all autocmds and almost all keymaps (some of them with <c-...> do not like running inside vscode) the issue is pretty much gone.

So, I think it is most likely issues in the users init.lua. (Maybe this answer will help someone experiencing this issue as well.)

I also find that the vscode-neovim performs much worse in general when my config is loaded (even with most things removed) Narrowing down what options need to be excluded with if vim.g.vscode then ... is quite a process if you already had a beefy init.lua and I think I need to work through my config again with the setup guide in the README and try to use VSCodeCall/VSCodeNotify as recommended.

In case this is still considered a bug (doubt) Here is a file that I was testing with. It mostly happens when changing between modes and doing short inserts and quick movements around syntax elements like -, ##, 1. etc. and the issue is worse with larger files, and files with more syntax elements like code files.

# Lorem Ipsum

Velit quibusdam sint eos dolores ab iure. Dolorem nulla vitae et qui id. Voluptas unde rerum ipsam est doloribus eum ducimus. Nam fuga optio quo labore occaecati vel sint vel.

> Dolor quia vero voluptate ad illum dicta iste minus. Doloremque adipisci ut et porro illo suscipit. Omnis quod voluptatum dignissimos illum doloribus quasi reiciendis voluptatem. Et facilis iste quasi.

Ipsum aut sed tempora doloribus aut.
Nisi corporis nobis magnam quis molestias nemo.
Sed labore enim aperiam.
Repellat et enim earum cumque.

- Eos sint est corrupti consequatur blanditiis quasi est nam.
- Voluptate aut quas adipisci rerum.
- Aut cupiditate consequatur soluta dignissimos et laudantium.
- Velit aspernatur aut voluptates veritatis sunt quo.
- Eveniet reprehenderit vel cum quis.
- Earum ex distinctio veniam.

## Hic sit excepturi officiis

Quas dolor qui cupiditate adipisci odio culpa quod.
Numquam consequatur labore deserunt sed.

Illum dolorem omnis aut eos voluptas et sapiente.
Voluptas perferendis omnis consequatur facilis magnam quaerat corporis.
Fuga esse aliquid nostrum dolores dolorem culpa et vel.

\```text
Non asperiores placeat ipsam.
Nisi sapiente et minus a et.
Modi voluptates in ratione.
Ut sit tempore officiis doloribus distinctio id.
Dolorem numquam nobis atque.
\```

Non eaque ut et unde quibusdam iure totam.

1. Aut vero dignissimos laborum facilis aut quo corrupti.
1. Expedita quis in et aut explicabo temporibus aut et.
1. Corporis aliquid qui dolorem eos veritatis.
1. Et nemo dolores consequatur et excepturi expedita cupiditate fugit.

Dolores voluptatem reprehenderit necessitatibus dolorem sunt officia assumenda.
Voluptatibus non consequatur rem nostrum.
Voluptatem et nihil ut et dolore modi veritatis consequuntur.

Vel[^Vel] exercitationem dignissimos numquam pariatur magni quae et.
Unde ea autem vitae.
Nisi labore qui et dolores.
Quo necessitatibus quas voluptas sint sint et sit quasi.
Voluptatem ut est est neque quia eaque.

[^Vel] : Velit quibusdam sint eos dolores ab iure. Dolorem nulla vitae et qui id. Voluptas unde rerum ipsam est doloribus eum ducimus. Nam fuga optio quo labore occaecati vel sint vel.
Read more comments on GitHub >

github_iconTop Results From Across the Web

random characters appearing when site is rendered
On a couple sites I've made random ASCII characters have been appearing in the middle of the document. It's always been on test...
Read more >
How To Procedurally Randomize Background Characters ...
Randomizing Characters Procedurally In The Material / Shader Editor. ... Random Hair Color Node (Beginner) 40:10 Random Generator Node ...
Read more >
Hyper Realistic Character Rendering | Tutorial - YouTube
How I Render my CG Characters in MayaHead to https://squarespace.com/jhill to save 10% off your first purchase of a website or domain using ......
Read more >
Mojibake - Wikipedia
Symptoms of this failed rendering include blocks with the code point displayed in hexadecimal or using the generic replacement character.
Read more >
Weird characters like â are showing up on my site - Blog
Most likely there is a Character set problem. It can occur when a MySQL and PHP are upgraded or when data has been...
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