Fix recursive issue with go plugin

This commit is contained in:
Zachary Yedidia 2016-08-16 13:46:33 -04:00
parent ed31d37e74
commit b42aba05a0
2 changed files with 2 additions and 4 deletions

View file

@ -326,7 +326,7 @@ func runtimePluginsAutocloseAutocloseLua() (*asset, error) {
return a, nil
}
var _runtimePluginsGoGoLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xa4\x52\xcd\xaa\xd4\x30\x14\xde\xe7\x29\x0e\x01\x21\xd1\xda\x07\x28\x74\xa1\x03\xce\x4a\x46\x54\xdc\x88\x42\x6c\x4e\xda\x60\x9a\x94\xe4\xd4\x51\xc4\x77\x97\xfe\x4c\x6f\xdb\x99\xcb\x65\xb8\xd9\x14\xd2\xef\x9f\x58\x03\x47\xa4\x53\x47\x36\x78\xc1\xeb\x60\xdb\x2e\x44\x4a\x5c\x42\x59\x82\xb7\x0e\xa8\x41\xcf\x00\x00\xde\x68\x7d\x0d\xcb\xc0\x28\x97\x50\x32\xf4\x9a\xed\xb5\x4c\x4b\x4f\xe9\x0c\x90\x0c\x28\xf6\xb3\x04\x7b\xaf\x7e\xe2\x21\xb4\xad\xf2\x7a\xeb\xc3\xeb\x90\xaf\xe2\xed\x81\x93\xd0\x04\x1a\x7d\x19\x33\xbd\xaf\x06\x1f\x08\xfe\x93\xfa\x85\x42\x8e\xf6\xd6\xc0\xa1\x8f\x5f\x2c\x9e\x85\xcc\xdf\xf6\x26\x7f\x67\x1d\x7e\xfe\xd3\xe1\x10\x94\x1f\x03\x7f\x48\x3a\xc3\x1f\xd9\x67\x03\x1b\xce\xf2\x73\x76\x1a\x0e\xba\x84\xb7\x67\xb9\x41\x37\x2d\xad\xa9\x5e\xb3\xcb\x77\x9c\x66\xe9\xb3\x46\x2e\x5d\x8a\x55\x47\x17\x2a\xe5\xa0\x51\x5e\x3b\x84\x12\x6c\xc8\xbb\xd0\xe1\xc5\x1c\x5e\x9f\x81\x43\x9e\xef\x76\xf8\xa0\xa8\x59\xd3\x23\xa6\xde\x11\x94\xb3\x4e\x11\x51\x69\xc1\x5f\x2a\x3e\x81\xe6\xdb\xca\x85\x34\xd8\xee\xc2\x7c\xc4\xd3\x60\x28\xaf\x92\x6f\x27\xba\x37\xfd\xcc\xbe\xb7\x41\xea\x9c\x25\x71\xd5\x23\x03\x5e\x3c\xa7\xcd\x24\x9b\x28\x66\x90\xb0\xbb\xe9\xfc\xf7\xdf\xe6\xb6\xc6\xdf\x50\x82\xe0\xe2\xeb\xf7\x17\xe9\xdb\x2b\xc9\x65\x61\x42\x6c\x15\x89\x45\xc0\x84\x08\xa8\xaa\x06\xac\x87\x44\xb1\xa8\x5b\x45\x55\x23\x46\xae\x04\x1d\x96\xf7\x41\xea\x87\xc3\xdc\xfa\x84\x91\xc4\x64\x98\x8d\x4c\xc9\xd6\xcf\x27\x22\xf5\xd1\xcf\x89\xc6\x02\xff\x03\x00\x00\xff\xff\xe4\x63\xe9\xa5\xf3\x03\x00\x00")
var _runtimePluginsGoGoLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xa4\x52\xcd\x6a\xdc\x30\x10\xbe\xeb\x29\x06\x41\x41\x6a\x5d\x3f\x80\xc1\x87\x76\xa1\x7b\x2a\x5b\xda\xd2\x4b\x69\x41\xb5\x46\xb6\xa8\x2c\x19\x69\xdc\x6d\x08\x79\xf7\xe0\x9f\x75\xec\xdd\x4d\x42\xc8\x5c\x0c\xe3\xef\x6f\x3e\xdb\x1a\xd8\x23\x1d\x3a\xb2\xc1\x0b\x5e\x07\xdb\x76\x21\x52\xe2\x12\xca\x12\xbc\x75\x40\x0d\x7a\x06\x00\xf0\x41\xeb\x4b\x58\x06\x46\xb9\x84\x92\xa1\xd7\xec\x5c\xcb\xb4\xf4\x9c\xce\x00\xc9\x80\x62\x3f\x4b\xb0\xcf\xea\x2f\xee\x42\xdb\x2a\xaf\xb7\x3e\xbc\x0e\xf9\x2a\xde\x39\x70\x12\x9a\x40\xa3\x2f\x63\xa6\xf7\xd5\xe0\x03\xc1\x7f\x53\xff\x50\xc8\xd1\xde\x1a\xd8\xf5\xf1\x87\xc5\xa3\x90\xf9\xc7\xde\xe4\x9f\xac\xc3\xef\x37\x1d\x0e\x41\xf9\x3e\xf0\x87\xa4\x33\xfc\x91\x7e\x36\xb0\x61\x96\x97\xb3\xd3\x30\xe8\x12\x5e\xaf\xe5\x0a\xdd\xb4\xb4\xa6\x7a\xcd\x4e\xcf\xb1\x9a\xe5\x9e\x35\xd2\x85\x4a\x39\x68\x94\xd7\x0e\xa1\x04\x1b\xf2\x2e\x74\x78\xf2\x81\xf7\x47\xe0\x90\xe7\x67\x27\x7f\x51\xd4\xac\xe9\x11\x53\xef\x08\xca\x59\xa7\x88\xa8\xb4\xe0\x6f\x15\x9f\x40\xf3\xb6\x72\x21\x0d\x2d\x8e\xbb\x45\xb0\xf8\x8a\x87\xc1\x50\x5e\x84\xdc\xb6\xf1\x44\xd0\x19\xf8\xd2\xb0\xa9\x73\x96\xc4\x45\xe4\x0c\x78\xf1\x9a\xe0\x93\x6c\xa2\x98\x41\xc2\xee\xaa\xf3\xed\xdd\x66\x5b\xe3\x7f\x28\x41\x70\xf1\xf3\xf7\x9b\xf4\xeb\x9d\xe4\xb2\x30\x21\xb6\x8a\xc4\x22\x60\x42\x04\x54\x55\x03\xd6\x43\xa2\x58\xd4\xad\xa2\xaa\x11\x23\x57\x82\x0e\xcb\x57\x27\xf5\xc7\x61\x6e\x7d\xc2\x48\x62\x32\xcc\x46\xa6\x64\xeb\x9f\x22\x22\xf5\xd1\xcf\x89\xc6\x03\xee\x03\x00\x00\xff\xff\xf3\xb7\x03\x04\xc9\x03\x00\x00")
func runtimePluginsGoGoLuaBytes() ([]byte, error) {
return bindataRead(
@ -341,7 +341,7 @@ func runtimePluginsGoGoLua() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "runtime/plugins/go/go.lua", size: 1011, mode: os.FileMode(420), modTime: time.Unix(1466955865, 0)}
info := bindataFileInfo{name: "runtime/plugins/go/go.lua", size: 969, mode: os.FileMode(420), modTime: time.Unix(1471369533, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}

View file

@ -19,7 +19,6 @@ function onSave()
end
function gofmt()
CurView():Save()
local handle = io.popen("gofmt -w " .. CurView().Buf.Path)
local result = handle:read("*a")
handle:close()
@ -28,7 +27,6 @@ function gofmt()
end
function goimports()
CurView():Save()
local handle = io.popen("goimports -w " .. CurView().Buf.Path)
local result = split(handle:read("*a"), ":")
handle:close()