Skip to content

Instantly share code, notes, and snippets.

@jboner
Created May 6, 2011 09:47
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jboner/958699 to your computer and use it in GitHub Desktop.
Save jboner/958699 to your computer and use it in GitHub Desktop.
Sublime Editor SBT build setup
{
"cmd": ["sbt-no-color compile"],
"file_regex": "^\\[error\\] ([.a-zA-Z0-9/-]+[.]scala):([0-9]+):",
"selector": "source.scala",
"working_dir": "${project_path:${folder}}",
"shell": "true"
}
@chilang
Copy link

chilang commented May 7, 2011

Excellent!
It only worked for me after adding working_dir

{
    "cmd": ["sbt-no-color compile"],
    "file_regex": "^\\[error\\] ([.a-zA-Z0-9/-]+[.]scala):([0-9]+):",
    "selector": "source.scala",
    "working_dir": "${project_path:${folder}}",
    "shell": "true"
}

@jboner
Copy link
Author

jboner commented May 7, 2011 via email

@basetta
Copy link

basetta commented May 9, 2011

Nice tips. I have to had also the env : { "blah", "blah" } becasuse it seems sublime is not parsing the .profile file on mac os.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment