Running Groovy in Sublime Text 3

I have been trying to run groovy in sublime text 3 in the last three days, and I cannot do this. I searched throughout the web, but to no avail. Even when I try to add a build system, this is what I get:

enter image description here

I am stuck very badly and need help. Any help is appreciated, thanks.

+4
source share
1 answer

It seems you do not have groovy in your way. Following these instructions, I worked for me: https://gist.github.com/kdabir/2203530

, , groovy, . Groovy : http://groovy-lang.org/download.html / SDK Java, : http://groovy-lang.org/download.html

Java, groovy 'bin' . GROOVY_HOME JAVA_HOME, , Windows, % GROOVY_HOME%\bin % JAVA_HOME%\bin PATH.

, : https://gist.github.com/kdabir/2203530

, Sublime Text 3 → → , JSON . , :

{
    "cmd": ["groovy","$file"],
    "selector": "source.groovy",
    "file_regex": "[ ]*at .+[(](.+):([0-9]+)[)]",

    "windows": {
        "shell": "cmd.exe"
    }

}

groovy.sublime-build.json , , Sublime Text 3, \\Sublime Text 3\Packages\user\ groovy.sublime-build.json

Sublime Text 3.

, , "-" → "".

.groovy script Ctrl-B Tools → Build. script , Sublime Text 3, .

, groovy . , groovy , , Sublime Text 3.

+5

Source: https://habr.com/ru/post/1666137/


All Articles