-
-
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
No syntax highlighting after building from source #6607
Comments
I have also added and configured the rust-analyzer without success:
|
The |
Do you have a c++ compiler installed such as |
I have the gcc-c++ compiler installed, but I can write a function to check whether the compiler is installed on different OS' and panic if not. However, where would be a good place to add this check? Many Thanks. |
Hello @kazimir-malevich, I am not familiar with the C programming language ecosystem, so I am unsure about certain aspects. It might be advisable to verify whether the grammar has compiled successfully at the end of the Helix building process. If the compilation fails, the directory of compiled grammar will be empty. However, it's worth noting that some distributions may not provide the grammar, and users may have to build it themselves, which could make things more complicated. Ultimately, @the-mikedavis would be better equipped to provide a definitive answer to this question. |
Hi @David-Else I was just thinking of writing a check on whether gcc-c++ was installed on the system precompilation, because at the moment we just (I think) have it specified in the docs. I can maybe grep for any other checks and submit a PR? |
@kazimir-malevich I am not qualified to answer, I am sure someone else will respond soon who is, then you can submit a PR, which would be awesome :) |
Looking at this line:
It seems to have been a problem when linking the runtime. I would suggest removing the |
Thanks for your input @the-mikedavis and @gabydd however:
I am guessing the debug adaptor doesn't affect syntax highlighting. And tried:
Following: https://docs.helix-editor.com/install.html#configuring-helixs-runtime-files
|
@kazimir-malevich I suggest you delete everything and use my install script, I know that works. You must ensure you have That will build and install the latest released version (as of today). If you just want the latest master, then just delete the line that has Hope that works! |
Thanks @David-Else. Is there a functions.bash script I will also need?
As a side note I think I need to update the docs around the runtime dir config, which are either incorrect or could be a bit clearer.
|
@kazimir-malevich I wrote https://docs.helix-editor.com/install.html#building-from-source , I assume you are refering to that section? Please can you tell me what is incorrect or can be improved, I would be happy to take any suggestions. I expected you to edit the install script, no worries, I have extracted what you want, just make this script and run it, nothing else needed, make sure to run as a user: #!/bin/bash
helix_src_folder="$HOME/src/helix"
helix_config_folder="$HOME/.config/helix"
mkdir -p "$helix_src_folder"
git clone https://github.com/helix-editor/helix "$helix_src_folder"
git -C "$helix_src_folder" checkout 23.03
cargo install --locked --path "$helix_src_folder"/helix-term
[ ! -e "$helix_config_folder"/runtime ] && ln -s "$helix_src_folder"/runtime "$helix_config_folder" # if there is no symlink create one to the source directory
cp "$helix_src_folder"/contrib/helix.png "$HOME/.icons"
cp "$helix_src_folder"/contrib/Helix.desktop "$HOME/.local/share/applications"
sed -i "s|Exec=hx %F|Exec=$terminal_program hx %F|g;s|Terminal=true|Terminal=false|g" "$HOME/.local/share/applications/Helix.desktop" |
@David-Else It may (and probably is) my misunderstanding of the docs, but I have created a small PR that can be accepted, rejected or amended. I am running off a ChromeOS Debian container ATM that can make things a little difficult. Thanks for the script, which I will use very soon. And thanks everyone for their help. |
@kazimir-malevich No problem, I have added a comment. I am going away for a week now so won't be able to add any more to this, but I expect more people will chime in on your pull request. |
@David-Else The script works, even though I don't have a Linux desktop. Thank you very much. Does it have something to do with the unconventional installation path /home/user_name/src/helix? Have a good holiday and I hope to contribute while I have time off. |
Summary
No syntax highlighting after building from source using Debian Bullseye and wanting to write in Rust,
Reproduction Steps
Helix log
Platform
Debian Buster
Terminal Emulator
$ echo $SHELL /bin/bash
Helix Version
$ hx --version helix 23.03 (531b745)
The text was updated successfully, but these errors were encountered: