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

Calva locking up when opening files with very long lines #556

Closed
PEZ opened this issue Jan 30, 2020 · 0 comments
Closed

Calva locking up when opening files with very long lines #556

PEZ opened this issue Jan 30, 2020 · 0 comments
Labels
bug Something isn't working paredit Paredit and structural editing parsing

Comments

@PEZ
Copy link
Collaborator

PEZ commented Jan 30, 2020

When opening a file with very long lines all Calva commands stop working.

A symptom is that even just hitting backspace stops doing what it should. Another is that the CPU gets very a lot of load.

I think this is because that the tokenizer (probably the TokenCurosr, but it could also be the Calva highlight tokenizer) locks up trying to split the line up with its regular expressions.

A ”solution” is to do what the VS Code built-in syntax highlighter does: Recognise that tokenisation will take a long time and just skip doing it then.

@PEZ PEZ added bug Something isn't working paredit Paredit and structural editing parsing labels Jan 30, 2020
@PEZ PEZ closed this as completed in 850489b Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working paredit Paredit and structural editing parsing
Projects
None yet
Development

No branches or pull requests

1 participant