speedata / publisher

speedata Publisher - a professional database Publishing system

Home Page:https://www.speedata.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`print(package.config:sub(1,1))` nil error

pr-apes opened this issue · comments

@pgundlach,

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.

Works here on macOS. Maybe this is a windows issue. I'll have a look on next Monday.

Confirmed that package.config is nil on windows

package.config will be part of the next version

Many thanks for the fix.

Sorry, I didn't want to close the issue.

Should work in the current version (4.13.12) which is online now.

I will close this as fixed. If there are still problems, please re-open.

It works fine now.

Many thanks for the new release.