-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
The recommended luarocks invocation completely breaks SILE (on macOS?) #2215
Comments
If you are installing Rocks to a project-local That's not to say there isn't a real issue here, just a tip to maybe get you back to work fast while I try to make out what's up with the rest of this. |
Ah, I had a stale invocation left over in that terminal. Okay, simply not running the second command seems to work well. |
Reading the exchanges, I've added the "question" label, but honestly
Please clarify the expectations ;) |
Ideally, SILE would not tell you to run a command that breaks SILE if you run it. Especially when you get the correct behaviour by simply not running the command. |
@davidchisnall That's kind of obvious. What isn't obvious is that the command is needed in some circumstances and we are not able to detect whether it will or won't be needed, so we just suggest it it all cases. What really needed fixing is that the command should either ⓐ fix the problem if necessary or ⓑ be a no-op for situations that didn't need the fix. It should not have broken anything in the first place, and that was an issue with Homebrew packaging. I'm addressing this from that end so that the fix either works or is a noop. |
If I understood the rest of the thread:
|
If you use a package that does not exist, SILE tells you to first do:
This installs the package under lua_modules. So far so good.
It then tells you to:
This then sets
LUA_PATH
andLUA_CPATH
, which overrides SILE's built-in paths and prevents it from finding things (the first error is for penlight, but then all of the other things SILE depends on).It looks as if SILE forcibly preserves some paths. The error list includes things like:
But the SILE dependencies are installed under
/opt/homebrew/Cellar/sile/0.15.9/libexec
, so this doesn't work.You can work around this by doing:
This (from reading the comments in the SILE code) makes add (prepend) the environment variables to the default path, rather than replacing.
The text was updated successfully, but these errors were encountered: