-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Panics when deleting multiple selections #3730
Comments
Looks like the LSP (see also #3683), here: helix/helix-view/src/document.rs Line 1039 in 1fe3273
It may make sense to gate the sending of textDocument/didChange where there is no path since we can't send a URI |
I was trying to do the Tutor exercise 10.2.:
I give up. This bug makes the tutor unusable for me. |
Seems like you have ltex LSP running on all files? It shouldn't be running on the tutor. |
Based on your blog post I guess it's because it's getting applied to txt? |
Found it. The tutor is loaded as a txt file then we unset the path: helix/helix-term/src/application.rs Lines 162 to 163 in 01ee42b
As a quick fix I'll remove the txt suffix from the tutor. |
Your fix works for me. Thank you. |
The tutor file is loaded as .txt which can potentially spawn a language server. Then the path is unset, but the LS remains active. This can cause panics since updates are now submitted for a doc with no path. As a quick workaround we remove the extension which should avoid detection. Fixes helix-editor#3730
Heads up the public site appears not to have been released since this update, so the tutor.txt link at the top of the usage page is a 404. |
The link is up to date on the master docs: https://docs.helix-editor.com/master/usage.html We may want to freeze links like this for releases in the future though |
I pushed a change to correct the link for the 22.08.1 docs 6668e44 |
The tutor file is loaded as .txt which can potentially spawn a language server. Then the path is unset, but the LS remains active. This can cause panics since updates are now submitted for a doc with no path. As a quick workaround we remove the extension which should avoid detection. Fixes helix-editor#3730
Summary
Helix panics when deleting multiple selections. Experienced with tutor exercise 10.1
Reproduction Steps
I tried this:
hx --tutor
xx
, thenswould
as suggested in the exercise.d
to delete multiple selections.Helix log
~/.cache/helix/helix.log
Platform
Linux Debian 11
Terminal Emulator
xfce4-terminal 0.8.10 (Xfce 4.16)
Helix Version
22.08.1-35-g1fe32737
The text was updated successfully, but these errors were encountered: