astoff / digestif

A language server for TeX and friends
Other
256 stars 6 forks source link

"Attempt to index a nil value" error on RHEL 8.5 #39

Closed jg110 closed 2 years ago

jg110 commented 2 years ago

I've used digestif on several Fedora systems without a problem, but after installing it on a RHEL system with luarocks via luarocks install --local digestif I get the following error when I try to run it (just running digestif in my home directory):

kpsewhich: unrecognized option '-var-brace-value=TEXMF'
/usr/bin/lua: /home/jg110/.luarocks/share/lua/5.3/digestif/config.lua:26: attempt to index a nil value
stack traceback:
    /home/jg110/.luarocks/share/lua/5.3/digestif/config.lua:26: in main chunk
    [C]: in function 'require'
    /home/jg110/.luarocks/share/lua/5.3/digestif/langserver.lua:1: in main chunk
    [C]: in function 'require'
    /home/jg110/.luarocks/lib/luarocks/rocks-5.3/digestif/0.4-1/bin/digestif:2: in main chunk
    [C]: in ?
astoff commented 2 years ago

What does this command return on RHEL? kpsewhich -var-brace-value=TEXMF. Also, what is kpsewhich -version for you?

jg110 commented 2 years ago
$ kpsewhich -var-brace-value=TEXMF
kpsewhich: unrecognized option '-var-brace-value=TEXMF'
$ kpsewhich -version
kpathsea version 6.3.0
Copyright 2018 Karl Berry & Olaf Weber.
License LGPLv2.1+: GNU Lesser GPL version 2.1 or later <https://gnu.org/licenses/lgpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.