-
-
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
Slow startup time on WSL2 #7219
Comments
I think it might have been fixed in #7028 |
Isn't this fix specific for |
Yes you are right, does you still have the problem with the latest version though? |
I found something similar a while ago, where it turned out to be because I had a misconfigured X-server in my WSL distro, and helix's clipboard logic was waiting for |
@christianfosli tried that just now, unfortunately it doesn't help. |
No tree sitter is the syntax highlighting used for every language so that PR might help altough not super likely. |
Apparently it is due to Helix scanning the PATH for some non-existent binary upon opening. Accessing Windows PATH inside WSL is slow, so it took quite some time for Helix to start up. Disabling Windows PATH inside WSL helped me fix this issue.
(But I guess, installing that missing binary could help too, but I don't know what that is) |
We are searching for the LSP binary when opening a file. It might be reasonable to start LSPs async (since it generally involves a decent amount of I/O anyway) to speedup startupt |
It could be the clipboard provider binary too helix/helix-view/src/clipboard.rs Lines 95 to 144 in d6856cf
|
Yes, I think this is the cause! EDIT: Ah, I realize I could just
and call it a day, as WSL has support for Wayland stuff. This is much faster now. |
I guess that just means we can make searching for any binary (clipboard provider or LSP) async? It's kind of unfortunate and seems like a WSL problem gir the mist part but I guess not doing IO on the main thread is generally good practice |
As a first-time Helix user on WSL2, this was something I noticed almost immediately. Googled and found this issue. |
Thanks, this solved my issue. |
Summary
I've install Helix on WSL2 (default Ubuntu distro) through
apt
. Startup time of the editor is significantly slower thenvim
.I imagine something is misconfigured correctly out of the box, but not sure what.
This is true for when I'm opening
hx
without a file path, and with different file types (.rs
,.ts
,.txt
).Reproduction Steps
Note sure how helpful it is, but:
I think the
user
/sys
parameters here are the relevant ones. It definitely feels like its takes 1-2 seconds to startup.Helix log
~/.cache/helix/helix.log
Platform
Linux (WSL2)
Terminal Emulator
Windows Terminal
Helix Version
helix 23.03
The text was updated successfully, but these errors were encountered: