GoSublime: Crashes all Sublime plugins when a test dereferences a nil pointer

I’m using macOS 10.13.4, Sublime Text build 3175, GoSublime v18.05.19.

Steps to reproduce:

  1. Create a file named foo_test.go
package test

import "testing"

type fooer interface {
	foo()
}

func TestFoo(t *testing.T) {
	var f fooer
	f.foo()
}
  1. Open 9o and run go test

  2. Sublime’s plugin host crashes. All plugins are unavailable until you restart the app.

screen shot 2018-05-26 at 12 11 00 am

Other types of panics, such as calling panic() in the test, seem to be handled normally and do not result in a crash.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 17 (10 by maintainers)

Most upvoted comments

In-case people are still landing on this issue but aren’t in the loop:

From comments in https://github.com/SublimeTextIssues/Core/issues/2327 it seems the last non-crashing version of Sublime Text is 3161. To download an older version, you can simply change the version number in the download URL e.g. https://download.sublimetext.com/Sublime Text Build 3161.dmg

Just an update:

This seems to be a known issue https://github.com/SublimeTextIssues/Core/issues/2327

I’d still like to work around it if possible, but I have no ideas about how to do that yet.

Edit: maybe try downgrading Sublime Text.