Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail from compiler: /bin/sh: groovy: command not found #26

Open
f-lima opened this issue Apr 5, 2017 · 1 comment
Open

Fail from compiler: /bin/sh: groovy: command not found #26

f-lima opened this issue Apr 5, 2017 · 1 comment

Comments

@f-lima
Copy link

f-lima commented Apr 5, 2017

If you try to run a groovy script, you get:

Building /Users/flima/dev/test/groovy/multiline_string.groovy in /Users/flima/dev/test/groovy/...

NodeDebugUtils.js:114 [node-log 7:31:20 AM] exec groovy "/Users/flima/dev/test/groovy/multiline_string.groovy" from /Users/flima/dev/test/groovy/
main.js:68 Fail from compiler: /bin/sh: groovy: command not found

But if you try get a groovy version directly from Console inside Brackets, you get:

groovy --version

VM507:2 Uncaught SyntaxError: Unexpected identifier(…)
InjectedScript._evaluateOn @ VM414:878
InjectedScript._evaluateAndWrap @ VM414:811
InjectedScript.evaluate @ VM414:667

Groovy is installed and works if I run directly from Mac Terminal.

Definition in edit builder:

{
"name": "Groovy",
"cmd": "groovy $FILE",
"file_reg": "(.+):",
"line_reg": ":([0-9]+)",
"msg_reg": "[0-9]+[ |\n]*([\w\W]+)",
"seperator": "\n"
}

Code of multiline_string.groovy:

def find = 'A'
def s = """
SELECT *
FROM CLIENT
"""
println "============================="
println s[1..-2]
println "============================="

Thanks for your attention

@f-lima
Copy link
Author

f-lima commented Apr 5, 2017

Putting the entire path to groovy worked like I saw at issue about Python.
Groovy was installed by sdkman.
I don't know why it was not found before, but just when I give the entire path.
Something with node.js? Because worked using Mac Terminal app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant