micro-editor / go-plugin

Auto gofmt/goimports and gorename
43 stars 5 forks source link

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

Open recoilme opened 4 years ago

recoilme commented 4 years ago

Macos: Micro encountered an error: attempt to index a non-table object(nil) with key 'init' stack traceback:

*lua.ApiError attempt to index a non-table object(nil) with key 'init' stack traceback:

/Users/v.kulibaba/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20191220021717-ab39c6098bdb/state.go:600 (0x11cf363) panicWithTraceback: panic(err) /Users/v.kulibaba/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20191220021717-ab39c6098bdb/state.go:695 (0x11cfdb8) (LState).raiseError: ls.Panic(ls) /Users/v.kulibaba/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20191220021717-ab39c6098bdb/state.go:1658 (0x11d3e42) (LState).getFieldString: ls.raiseError(1, format, args...) /Users/v.kulibaba/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20191220021717-ab39c6098bdb/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/gopher-lua@v0.0.0-20191220021717-ab39c6098bdb/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