-
-
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
hx --tutor or :tutor don't work when hx is symlink #3768
Comments
Does syntax highlighting work either when The tutor is loaded from the runtime directory: helix/helix-term/src/application.rs Lines 160 to 163 in fae9203
|
Syntax highlighting indeed doesn't work. I believe runtime_dir() ultimately falls back to (I can try putting together a PR sometime next week.) |
When looking up the runtime/ directory relative to the executable path, canonicalize the path first in case the executable is a symbolic link. Fixes helix-editor#3768
On my nixos install helix is also a symlink (like on every nixos install) and the tutor works
If there are any issues with helix being a symlink nixos users will always suffer from them. |
When looking up the runtime/ directory relative to the executable path, canonicalize the path first in case the executable is a symbolic link. Fixes #3768
I'm not sure if this is the same issue or just the same symptom because I'm super new to Helix, but I followed the build-from-source instructions on a Debian 11 machine (clone repo & |
If you installed from source, you need to link the runtime directory: Lines 60 to 67 in d14de27
|
When looking up the runtime/ directory relative to the executable path, canonicalize the path first in case the executable is a symbolic link. Fixes helix-editor#3768
Summary
The tutor doesn't work when hx is invoked through a symlink. The real path works.
Reproduction Steps
I tried this:
cd $HOME/bin && ln -s ../opt/helix/hx
(~/bin is on the PATH)hx --tutor
I expected this to happen:
See the tutorial. :-)
Instead, this happened:
Nothing. Empty buffer.
Helix log
No log file was written.
Platform
macOS
Terminal Emulator
Terminal.app
Helix Version
helix 22.08.1 (66276ce)
The text was updated successfully, but these errors were encountered: