Coming soon - Get a detailed view of why an account is flagged as spam!
view details
2
Questions about using Sublime Text as Go editor, managing directory layout, and creating a satisfying build system
Post Body

I'm an amateur dev who likes playing around with new languages. I'm really interested in Go, and I'm looking for a way to make Sublime Text a satisfying editor/environment for Go on OSX. GoSublime just doesn't seem to do what I want.

My issues with GoSublime:

  1. GoSublime requires one to CMD B to open GoSublime's console pane, then type "build" to compile, and doesn't even include tests. To test the executable, one has to type "run" in that same pane. Once the executable is running, one has to type "tskill" to end the task, and this frequently doesn't even work.

  2. GoSublime makes no attempt to respect the structure of the $GOPATH directory. Binaries end up right next to the source files that are being built, not in a temp folder as if one were simply testing, nor in the bin folder as if one were installing.

What I really want in my editor/environment:

  1. On save, build to a temp directory, run tests, output error messages to the Sublime Text Console.

  2. On CMD B, build with tests and install to the correct bin directory, based on location of the source file(s) being built.

  3. Leave my OSX terminal in the appropriate bin directory for running the production version when I choose to. No need for "run" from within GoSublime.

Any ideas or suggestions would be welcome.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
31,006
Link Karma
8,896
Comment Karma
22,110
Profile updated: 2 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago