Skip to content
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

error: attempt to index a non-table object(nil) with key 'init' #5

Open
recoilme opened this issue Jan 10, 2020 · 0 comments
Open

error: attempt to index a non-table object(nil) with key 'init' #5

recoilme opened this issue Jan 10, 2020 · 0 comments

Comments

@recoilme
Copy link

recoilme commented Jan 10, 2020

Macos:
Micro encountered an error: attempt to index a non-table object(nil) with key 'init'
stack traceback:
[G]: ?
*lua.ApiError attempt to index a non-table object(nil) with key 'init'
stack traceback:
[G]: ?
/Users/v.kulibaba/go/pkg/mod/github.com/yuin/[email protected]/state.go:600 (0x11cf363)
panicWithTraceback: panic(err)
/Users/v.kulibaba/go/pkg/mod/github.com/yuin/[email protected]/state.go:695 (0x11cfdb8)
(*LState).raiseError: ls.Panic(ls)
/Users/v.kulibaba/go/pkg/mod/github.com/yuin/[email protected]/state.go:1658 (0x11d3e42)
(*LState).getFieldString: ls.raiseError(1, format, args...)
/Users/v.kulibaba/go/pkg/mod/github.com/yuin/[email protected]/state.go:1253 (0x11d3d52)
(*LState).getFieldString: ls.RaiseError("attempt to index a non-table object(%v) with key '%s'", curobj.Type().String(), key)
/Users/v.kulibaba/go/pkg/mod/github.com/yuin/[email protected]/state.go:1836 (0x133df77)
(*LState).GetField: return ls.getFieldString(obj, skey)
/Users/v.kulibaba/Program/micro/internal/config/plugin.go:106 (0x133df44)
(*Plugin).Call: luafn := ulua.L.GetField(plug, fn)
/Users/v.kulibaba/Program/micro/internal/config/plugin.go:32 (0x133d511)
RunPluginFn: _, err := p.Call(fn, args...)
/Users/v.kulibaba/Program/micro/cmd/micro/micro.go:206 (0x14505bd)
main: err = config.RunPluginFn("init")
/usr/local/go/src/runtime/proc.go:203 (0x103119e)
main: fn()
/usr/local/go/src/runtime/asm_amd64.s:1357 (0x105d071)
goexit: BYTE $0x90 // NOP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant