-
Notifications
You must be signed in to change notification settings - Fork 110
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
tl .24.1 - bad argument to popen #839
Comments
What happens if you run |
Yes. |
Glancing at the code, it seems like Reproducing the issue on Linux: $ unset PWD
$ tl check tl.tl
tl: [string "tl"]:671: bad argument #2 to 'popen' (invalid mode)
stack traceback:
[C]: in function 'io.popen'
[string "tl"]:671: in upvalue 'cd'
[string "tl"]:688: in upvalue 'normalize'
[string "tl"]:721: in upvalue 'already_loaded'
[string "tl"]:737: in field '?'
[string "tl"]:976: in main chunk
[C]: in ? (though I assume this code path was intended for Windows, since |
@pdesaulniers Thanks for investigating!
...which seems to be the case for @SlashScreen. According to the Lua 5.4 source code, @SlashScreen How was this Does the error happen when using the |
@hishamhm lua54.exe is from the scoop PM for windows. |
@SlashScreen in that case, my diagnostic is that somehow lua54.exe was compiled by scoop without the |
Hmm, okay. I'll have to take a look at that, then. was this calling method used in previous versions of teal? Since earlier versions worked just fine. |
Thank you!
No, they were missing the "b" option in |
I'm unable to test another lua build, because I have screwed up my lua and luarocks installation. I'll try again once I fix it. |
Also getting this with Lua 5.3, with the error coming up in the VSCode extension
Lua built with https://github.com/Tieske/luawinmake and tl installed through luarocks Edit: Also attempted to rebuild Lua with Edit2: Did get it working with Lua 5.4.7 |
I just now updated tl to the latest version as of writing, and it gives me the following error:
The line in neal seems to be:
local pd = io.popen("cd", "rb")
The text was updated successfully, but these errors were encountered: