Skip to content

Releases: DisposaBoy/GoSublime

Disable gocode in go1.11

22 Jul 10:42
Compare
Choose a tag to compare

nsf/gocode is not enabled in go1.11.
Try migrating to GoSublime's development branch https://margo.sh/b/migrate/?_r=r18.07.22

just another update

18 Jul 17:22
1e67186
Compare
Choose a tag to compare
v18.07.17

ann

Nothing new, just an announcement

14 Jul 11:58
Compare
Choose a tag to compare

v18.05.19

19 May 09:58
Compare
Choose a tag to compare
  • Improve ligature support in the GoSublime: Go syntax

v18.04.30-1

30 Apr 09:03
Compare
Choose a tag to compare
  • fix margo build failure in some cases when the go compiler is up/down-graded

v18.04.19-1

19 Apr 09:54
Compare
Choose a tag to compare
  • fix margo build failure when use_gs_gopath is enabled

v18.03.26-1

26 Mar 08:20
Compare
Choose a tag to compare
  • update gocode
  • fix gocode completion showing duplicate function parameter names
  • add support for restricting the files in which events are triggered
  • (hopefully) fix an issue where some users were experiencing laggy input

v18.03.23-1

23 Mar 21:04
Compare
Choose a tag to compare
  • GOPATH is automatically set to the internal GOPATH when editing margo source files
    this allows for things like linters and gocode to work when editing margo.go

  • margo is now only automatically restarted if go test succeeds
    this further supports linters by not restarting when margo.go compilation fails

  • add a default linter pattern for gometalinter
    the following reducer/linter should now work without any additional setup

      &golang.Linter{Name: "gometalinter", Args: []string{"--fast"}},
    
    
  • add support for sending settings to margo
    in the GoSublime settings, Sublime Text preferences or project settings
    the entry "margo": {...} will be send to margo where reducers can make use of it
    by accessing mx.Editor.Settings e.g.

    gosublime settings:

      "margo": {
      	"message": "hello world from the GoSublime settings",
      }
    

    project settings:

      "margo": {
      	"message": "hello world from the project settings",
      }
    

    margo.go

      mg.Reduce(func(mx *mg.Ctx) *mg.State {
      	var settings struct {
      		// due to limitations in the codec pkg we need to add struct tags
      		// unless we use the exact (capitalized name) in the editor settings
      		Status string `codec:"status"`
      	}
      	err := mx.Editor.Settings(&settings)
      	switch err {
      	case mg.ErrNoSettings:
      		// when the `Started` action is dispatched, no client data is present
      		// and we therefore have no settings
      		return mx.State
      	case nil:
      		return mx.AddStatus(settings.Status)
      	default:
      		return mx.AddStatusf("cannot decode settings: %v", err)
      	}
      }),
    

v18.03.21-1

21 Mar 19:48
Compare
Choose a tag to compare

fix exception due to missing import?

v18.03.20-1

20 Mar 19:02
Compare
Choose a tag to compare
  • fix a case where (old) margo compilation fails because the Go version cannot
    be determined, but the sanity check shows the correct version
  • move some initializations off the ui thread to avoid ui freezes on startup
  • fix the golang.GoInstallDiscardBinaries linter failing due to invalid dirname