DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

Make GS/MG go-get-able #435

Closed DisposaBoy closed 5 years ago

DisposaBoy commented 10 years ago

Re-organise the repo such that it's go get-able and add support to margo, or perhaps another dedicated binary to install the GS sources. If the margo source no longer lives in the Packages/GoSublime directory it might pave the way towards GoSublime.sublime-package as well but otherwise, the installation mostly consist of copying files so the installation step can be reduced to go get gosubli.me/$bin && $bin install If $bin is margo it would also mean that we don't need to worry about compiling it as well. The update process would be go get -u gosubli.me/$bin && $bin install. The only issues I can think of is the reloading of running plugins in Sublime Text and this can be worked-around by dropping some kind of update script that upon restart of ST prevent the loading of old code. This could potentially be handled by GoSublime.py since it's always safe to reload it (it manages its state and is responsible for loading all the other code). The other issue is the missing GOPATH. In this case, the env vars can possibly be copied from the shell during installation and stored as another fallback level. If this fails, then the user's configuration is messed up and they should fix it.

allanruin commented 10 years ago

Hope this could be down quickly. Currently I can't make GoSublime work

DisposaBoy commented 10 years ago

huh?