Sublime Forum

Scala snippets offered while editing Go - Why?

#1

When editing Go code, Sublime has started offering me Scala snippets. For example, if I type def, it will offer a snippet that inserts:

def method(arg: Type) = {
	
}

…which has nothing to do with Go. If I add “Scala” to ignored_packages in my preferences file, these stop happening.

What’s going on? Pressing Cmd-Alt-P verifies that the scope I’m editing is source.go pure and simple.

0 Likes

#2

That was a bug in the default packages. It was fixed with https://github.com/sublimehq/Packages/commit/cc913ad259028044bdf463e1219ca33151f0dbab and will be part of the next dev build. Alternatively you can follow the instructions in the readme of that repo to get the latest fixes now.

0 Likes

#3

Alright, thanks :slight_smile: I’m not using Scala so it’s no sweat to just put the package on ignore until it’s a released fix.

1 Like