You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[string "src/luarocks/cmd.lua"]:183: bad error, expected string, got: nil
stack traceback:
[C]: In function 'assert'
[string 'src/luarocks/cmd.lua']:183: in upvalue 'die'
[string 'src/luarocks/cmd.lua']:697: in function 'luarocks.cmd.run_command'
[string 'luarocks']:34: in main chunk
[C]: in ?
Description:
Install luarocks and luaJIT using scoop scoop install luarocks luajit
Run luarocks --lua-version=5.1 --local config variables.LUA C:/Users/quadr/scoop/apps/luajit/current/bin/luajit.exe
Using Process Monitor, I was able to figure out that luarocks calls this command: C:\WINDOWS\system32\cmd.exe /c type NUL && C:"\Users\quadr\scoop\shims\luajit.exe" -e "io.write(_VERSION:sub(5))" > C:\Users\quadr\AppData\Local\Temp/luarocks-3743
(The 3743 is different for each run)
For some reason, This command doesn't work since luajit receives this: C:\Users\quadr\scoop\apps\luajit\current\bin\luajit.exe" e" -e "io.write(_VERSION:sub(5))
(Note the excess e)
The e causes luajit to error out; this means that nothing is written to luarocks-3743, which causes the GUI error.
Changing the location of the quotes in the first command to this: "C:\Users\quadr\scoop\shims\luajit.exe"
makes the command work when I run it with Windows+R (The previous command didn't)
I believe changing line 409 in src/luarocks/util.lua should fix the issue, but of course I have no idea if that breaks something else.
The text was updated successfully, but these errors were encountered:
Nice digging, was wondering what was happening haha. tbh might get more visibility if you just open a PR with your change with a note about it just being a jumping off point.
Platform:
LuaRocks version:
Configuration file:
LuaRocks output from when the issue occurred:
Also, I get a windows GUI error message saying:
scoop install luarocks luajit
luarocks --lua-version=5.1 --local config variables.LUA C:/Users/quadr/scoop/apps/luajit/current/bin/luajit.exe
Using Process Monitor, I was able to figure out that luarocks calls this command:
C:\WINDOWS\system32\cmd.exe /c type NUL && C:"\Users\quadr\scoop\shims\luajit.exe" -e "io.write(_VERSION:sub(5))" > C:\Users\quadr\AppData\Local\Temp/luarocks-3743
(The 3743 is different for each run)
For some reason, This command doesn't work since luajit receives this:
C:\Users\quadr\scoop\apps\luajit\current\bin\luajit.exe" e" -e "io.write(_VERSION:sub(5))
(Note the excess
e
)The
e
causes luajit to error out; this means that nothing is written to luarocks-3743, which causes the GUI error.Changing the location of the quotes in the first command to this:
"C:\Users\quadr\scoop\shims\luajit.exe"
makes the command work when I run it with Windows+R (The previous command didn't)
I believe changing line 409 in
src/luarocks/util.lua
should fix the issue, but of course I have no idea if that breaks something else.The text was updated successfully, but these errors were encountered: