`print(package.config:sub(1,1))` nil error
pr-apes opened this issue · comments
pr-apes commented
minimal filter:
print(package.config:sub(1,1))
if true then
os.exit(0)
end
Invoking it with sp --filter=filter.lua
, I get:
C:\helloworld\filter.lua:1: attempt to index a non-table object(nil) with key 'sub'
stack traceback:
C:\\helloworld\filter.lua:1: in main chunk
[G]: ?
I don't know whether I'm missing something.
Many thanks for your help.
Patrick Gundlach commented
Works here on macOS. Maybe this is a windows issue. I'll have a look on next Monday.
Patrick Gundlach commented
Confirmed that package.config is nil on windows
Patrick Gundlach commented
package.config will be part of the next version
pr-apes commented
Many thanks for the fix.
pr-apes commented
Sorry, I didn't want to close the issue.
Patrick Gundlach commented
Should work in the current version (4.13.12) which is online now.
Patrick Gundlach commented
I will close this as fixed. If there are still problems, please re-open.
pr-apes commented
It works fine now.
Many thanks for the new release.