-
-
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
tree-sitter with musl target #1028
Comments
Try |
I got the following error message now: error: failed to run custom build command for Caused by: --- stderr Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: thread '' panicked at 'called Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: Caused by: |
Can we label this as bug? Unless its working for other people of course. |
I think you're likely missing some environment variables so |
|
Possibly missing |
I have a similar problem. I am using Void Linux with musl. |
Yeah, as it stands now, i cant use helix on our rhel8 work machine. |
My pi (2b) uses musl too bad sadly I can't even build some of the dependencies (non-helix) there. If possible I could have tested it there. |
Looks like #1603 is building on musl |
Since helix is now packaged for alpine (see #1603 (comment)) which ships musl this seems resolved to me. |
Alpine patches their Rust distribution to pass the extra flag. It's still an issue but should be worked around by the end user. Maybe we could add it to the documentation |
I did leave #1603 open as I wasn't 100% sure if that was still the case. I don't think we need to separate issues for this. However I was able to build and run the latest helix master just fine (including working tree sitter grammars) in the rust alpine linux docker image which installs rustc using rustup (so without any patches). I think rust-lang/rust#40113 fixed this. |
There was #4818 and we discovered gtk-rs/gtk-rs-core#387 (comment) so Alpine patches this: https://git.alpinelinux.org/aports/tree/community/rust/0001-When-linking-statically-on-musl-based-system-also-li.patch |
Yeah I just noticed I messed up something I while testing. Sorry about that! I will add an FAQ entry. |
When i build helix with --target=x86_64-unknown-linux-musl, tree-sitter related things dont seem to work.
There is no syntax highlight and textobject queries.
LSP seems to work.
Content of helix.log:
2021-11-08T23:30:37.722 helix_lsp::transport [ERROR] err <- "[ERROR project_model::workspace] cyclic deps: helix_view(CrateId(167)) -> helix_tui(CrateId(161)), alternative path: helix_tui(CrateId(161)) -> helix_view(CrateId(167))\n"
The text was updated successfully, but these errors were encountered: