Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run groovy scripts from sublime-text
{
"cmd": ["groovy", "$file"],
"selector": "source.groovy",
"file_regex": "[ ]*at .+[(](.+):([0-9]+)[)]",
"windows": {
"shell": "cmd.exe"
}
}
@kdabir

This comment has been minimized.

Owner

kdabir commented May 7, 2012

If groovy is not found on PATH, check out here to set groovy on path for non terminal apps, or give complete path to groovy executable

@leonidasos

This comment has been minimized.

leonidasos commented Sep 21, 2012

Add selector for 'Automatic' build system:

"selector": "source.groovy",

@kdabir

This comment has been minimized.

Owner

kdabir commented Aug 26, 2013

Thanks for the "selector" tip @leonidasos

@whgreate

This comment has been minimized.

whgreate commented Sep 10, 2013

it works!

@jhntrifork

This comment has been minimized.

jhntrifork commented Oct 10, 2013

If you add the line below, you will be able to use F4 to skip to next build error:
"file_regex": "[ ]*at .+((.+):([0-9]+))",

@seanf

This comment has been minimized.

seanf commented Feb 7, 2014

@jhntrifork, thanks for that. Sublime 3 gave an error about an escape character, so I went with this:

"file_regex": "[ ]*at .+[(](.+):([0-9]+)[)]",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment