Skip to content
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

Symbols appear at random places #2

Open
AlexanderZeilmann opened this issue Aug 11, 2020 · 3 comments
Open

Symbols appear at random places #2

AlexanderZeilmann opened this issue Aug 11, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@AlexanderZeilmann
Copy link

As mentioned in the issues siegebell#42 and siegebell#53 of the original vsc-prettify-symbols-mode, symbols sometimes appear at random places. This bug sadly also exists in conceal.

As far as I can tell, the symbols that appear randomly are actually present somewhere else in the file.
So it is not random symbols, but only a random placement.

Interestingly, the random symbols often also appear in files that should not be touched at all. For example, I configured conceal to only do substitutions in *.tex files, however, I also get substitutions in my settings.json.

Maybe the same bug, maybe not:
Using a configuration like

{
    "ugly": "\\\\Omega",
    "pretty": "Ω",
    "post": "\\b|_"
}

sometimes leads to the partial substitution, where \Omega is substituted by \Ωmega, where only the O is replaced by an Ω.

So far I do not know what triggers the bug. But it appears very often when working on files for some time.
The issues sadly cannot be fixed by disabling and enabling conceal.

I am using conceal 0.2.3 and the latest version of vsc:

Version: 1.47.3
Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e
Date: 2020-07-23T13:08:29.692Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0
@pancaek
Copy link
Collaborator

pancaek commented Aug 11, 2020

This is indeed very strange, and probably the main bug of the repo I forked. It's gonna take some digging but I'll see if I can find anything

@TyPR124
Copy link

TyPR124 commented Apr 26, 2021

Consider looking here: rfru@99f8568#diff-898332678664790ddb753092948f301d3b040f2eb965f7a289194c768115a985L162-R167

Disclaimer: I claim no actual understanding of this code, just saw this in the network graph.

@pancaek
Copy link
Collaborator

pancaek commented Apr 26, 2021

Oooh interesting, I'll check this out, it seems promising

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants