News for hackers. Stuff that matters.
Re:How I fixed a bug in Atom by zenocon on Friday January 29, 2016 @06:36AM (#10994650)
Here's another one that needs to get fixed with Atom. Try writing this in the editor with syntax set to Go:

expected

func someFunc() {

        aSlice := []string{}{

 	}
}

actual

func someFunc() {

        aSlice := []string{}{
}

}

The end bracket on the slice's initializer never indents correctly when you type it and hit <enter>. It always defaults to the first character of the next line. It seems insertNewLine somehow is not able to grok the idea of more than one set of matching brackets.

Edit: issue filed https://github.com/atom/bracket-matcher/issues/209

Re:How I fixed a bug in Atom by sergiotapia on Friday January 29, 2016 @12:15PM (#10996573)
Install the go-plus package and it'll `go fmt` on save everytime, saving you this headache. Works seamlessly.
Re:How I fixed a bug in Atom by zenocon on Friday January 29, 2016 @12:54PM (#10996953)
Thanks for the tip -- yea, I have go-plus installed. It is helpful, but still isn't ideal to have to save the file in the middle of trying to initialize a slice.