Open akhikhl opened 10 years ago
I had a working version and backed up my ~/.gradle/.jruby and let this run again I see that the old working version had the gem sass-3.3.0.rc.2
installed where it is now failing is on sass-3.3.0.rc.3
When "breakpoint" is commented out, error disappears. So, the problem seems to be specific to installing "breakpoint" gem under jruby.
I've just seen this with a non-Gradle Sass project (using Grunt). Looks to me like the problem is in the version of Compass that Breakpoint depends on being too rigid. Then when the plugin installs both compass and breakpoint gems it gets the latest of each which causes a version conflict.
I guess I need to read up on resolving conflicts with Ruby gems :-/
It looks like one of the gems is doing some kind of post-installation task that requires Java. The JRubyTask class overrides the PATH environment variable, though. I can fix that but then it complains that jrake is not found. I have no idea what needs that or why it thinks it should already be installed.
Rob, thank you for checking this. I tried fixing PATH as well, with the same result as you - jrake not found. Next logical step is to add Rake gem:
gems = ["rake", "compass", "breakpoint"]
then Breakpoint post-installation gets past "jrake not found". Now it hits the next error:
Installing listen >= 1.1.0, < 2.5
"java -jar /home/ahi/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.8/c72460fd292ac290953373c7d5a14a2d98b6dfa1/jruby-complete-1.7.8.jar" -rubygems /home/ahi/.gradle/.jruby/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/home/ahi/.gradle/.jruby/gems/sass-3.3.0.rc.3/lib RUBYLIBDIR=/home/ahi/.gradle/.jruby/gems/sass-3.3.0.rc.3/lib
/bin/sh: 1: java -jar /home/ahi/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.8/c72460fd292ac290953373c7d5a14a2d98b6dfa1/jruby-complete-1.7.8.jar: not found
I guess, this has something to do with quote symbols around "java -jar ...". For example, when you copy the first line "java -jar ..." to the bash prompt and try to run it, it gives a message "No such file or directory". Probably, Breakpoint forms invalid command-line. I'll check whether there's a difference with this between Linux and Windows.
yes, I'm getting to exactly the same point. I managed to get past the jrake error by just upgrading to the latest JRuby – I didn't have to specify the rake gem explicitly.
By the way, I'm successfully recreating this on OSX.
That's good news. Do I get it right, you install jruby separately? I mean it would be great, if things "just work" with gradle and maven repos, without manually installed software.
No I just upgraded the version of JRuby that the plugin looks for.
On 14 February 2014 at 11:07:36, Andrey Hihlovskiy (notifications@github.com) wrote:
That's good news. Do I get it right, you install jruby separately? I mean it would be great, if things "just work" with gradle and maven repos, without manually installed software.
Reply to this email directly or view it on GitHub: https://github.com/robfletcher/gradle-compass/issues/17#issuecomment-35074703
Is this still happening with v2.0.1 of the plugin?
Problem
Attempt to install "breakpoint" gem via installCompass task fails with error message "java not found" both on Linux and Windows.
Steps to reproduce problem
Program output
On Linux:
very similar error message is observed on Windows.
Configuration/environment Linux:
Configuration/environment Windows:
Sample build.gradle