Coder Social home page Coder Social logo

go-plugin's People

Contributors

jantb avatar sepetrov avatar zyedidia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

go-plugin's Issues

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

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

gopls

Are there any plans for adding gopls?

Does not show errors in _test.go files

I use this package a lot but it seems to fail to provide errors within test files. This is unfortunate as it makes writing tests take a lot more time than what it necessarily needs to.

Wrong installation location

Expected

According the plugin docs here, the installation location of the plugin must be in directory in ~/.config.micro/plug. Using the plugin name go-plugin, this means, the gplugin files should be in ~/.config.micro/plug/go-plug.

$ tree ~/.config/micro
~/.config/micro
└── plug
    └── go-plugin
        ├── README.md
        ├── go.lua
        ├── help
        │   └── go-plugin.md
        └── info.json

Actual

Following the documentation instructions, the plugin files will be placed directly in ~/.config.micro/plug directory.

$ git clone https://github.com/micro-editor/go-plugin ~/.config/micro/plug
$ tree ~/.config/micro
~/.config/micro
└── plug
    ├── README.md
    ├── go.lua
    ├── help
    │   └── go-plugin.md
    └── info.json

Suggested Fix

Changing the installation command in the documentation to download the plugin files in ~/.config/micro/plug/go-plugin.

git clone https://github.com/micro-editor/go-plugin ~/.config/micro/plug/go-plugin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.