GoSublime 插件安装的曲折之路

不畏将来,不念过往。如此,安好!

Someone famous 丰子恺

1.安装Package Control 

2.官网

https://margo.sh/b/migrate/

以下操作 均在sublime packages 目录下

git clone https://git.kuroku.io/GoSublime -b development

git dev 分支

重启sublime,报错

[12:26:17] margo: agent#007: ['/home/brad/.config/sublime-text-3/Packages/GoSublime/bin/margo.sh', 'start', 'margo.sublime', '-codec', 'msgpack']
[12:26:17] margo: agent#007: log: ``` go install -v -tags=margo margo.sh/cmd/margo.sublime ```
[12:26:17] margo: agent#007: log: margo.sh/cmdpkg/margosublime
[12:26:17] margo: agent#007: log: margo.sh/cmd/margo.sublime
[12:26:18] margo: agent#007: log: ``` /home/brad/.config/sublime-text-3/Packages/GoSublime/bin/margo.sublime -codec msgpack ```
[12:26:18] margo: agent#007: log: store.go:137: started
[12:26:18] margo: agent#007: log: restart.go:146: Mg/Restart: exit status 1
[12:26:18] margo: agent#007: log: ``` go install -v -tags=margo margo.sh/cmd/margo.sublime ```
[12:26:18] margo: agent#007: log: check console for errors
[12:26:18] margo: agent#007: log: *Not* using margo extension: Error: cannot find package "margo" in any of:
[12:26:18] margo: agent#007: log: /usr/local/go/src/margo (from $GOROOT)
[12:26:18] margo: agent#007: log: /home/brad/.config/sublime-text-3/Packages/User/GoSublime/src/margo (from $GOPATH)
[12:26:18] margo: agent#007: log: /home/brad/.config/sublime-text-3/Packages/GoSublime/src/margo
[12:26:18] margo: agent#007: log: agent GOPATH is /home/brad/.config/sublime-text-3/Packages/User/GoSublime:/home/brad/.config/sublime-text-3/Packages/GoSublime
[12:26:18] margo: agent#007: log:


需要安装扩展,

https://github.com/KurokuLabs/margo/blob/master/extension-example/extension-example.go

/GoSublime/src/margo/ 

没有目录自己建. 完毕自动补全


标签

注意!

Warning! 关注一下!