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

Could not find FFI Provider #39

Open
martinandersson opened this issue Apr 4, 2015 · 6 comments
Open

Could not find FFI Provider #39

martinandersson opened this issue Apr 4, 2015 · 6 comments

Comments

@martinandersson
Copy link

Running any kind of task created by this plugin crash on my machine:

ERROR: Loading command: install (LoadError)
               Could not load FFI Provider: (NotImplementedError) FFI not available: null
 See https://jira.codehaus.org/browse/JRUBY-4583

ERROR: While executing gem ... (NoMethodError=
      undefined method 'invoke_with_build_args' for nul:NilClass

My machine is Windows 8.1, x64. My Gradle version: 2.3.6. The gradle-compass plugin version used: 2.0.5.

@ghost
Copy link

ghost commented Apr 15, 2015

I am having the exact same Issue here :(
Windows 8.1. Oracle Java 8 jdk. Gradle 2.3.9.

@martinandersson
Copy link
Author

I tried everything on this earth trying to get Gradle to compile SASS. Nothing works. So until further notice, I have skipped the thought of it. I'll go with vanilla CSS until someone somewhere know how to make Gradle compile SASS.

@ghost
Copy link

ghost commented Apr 15, 2015

Same here. Until this works out of the box I will use JAWR with a SassPreProcessor.

@ghost
Copy link

ghost commented Apr 15, 2015

seems to be this issue:
jruby-gradle/jruby-gradle-plugin#83

Please use latest jruby-gradle v0.1.15 then it should be fixed.

@ghost
Copy link

ghost commented Apr 15, 2015

I solved it by a custom build from the 2.0.4 version together with jruby-gradle 0.1.15 and it works.
my output now:

$ gradlew compassCompile

Download https://repo1.maven.org/maven2/org/jruby/jruby-complete/1.7.19/jruby-complete-1.7.19.pom
Download https://repo1.maven.org/maven2/org/jruby/jruby-artifacts/1.7.19/jruby-artifacts-1.7.19.pom
Download https://repo1.maven.org/maven2/org/jruby/jruby-parent/1.7.19/jruby-parent-1.7.19.pom
Download https://repo1.maven.org/maven2/org/jruby/jruby-complete/1.7.19/jruby-complete-1.7.19.jar
    Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!
        Successfully installed compass-1.0.3
        Successfully installed sass-3.4.13
        Successfully installed compass-core-1.0.3
        Successfully installed compass-import-once-1.0.5
        Successfully installed chunky_png-1.3.4
        Successfully installed rb-fsevent-0.9.4
        Successfully installed rb-inotify-0.9.5
        Successfully installed multi_json-1.11.0
        Successfully installed ffi-1.9.8-java
        9 gems installed

   write src/main/resources/static/assets/css/main.css

Please provide a new version with latest jruby-gradle. thanks you :)

@fgiannesini
Copy link

As a workaround of this error, i had in jruby-gradle-plugin with the last 0.1.x version in the classpath dependencies

buildscript {
    repositories {
        jcenter()
        maven { url "http://dl.bintray.com/robfletcher/gradle-plugins" }
    }
    dependencies {
        classpath (
            "com.github.robfletcher:compass-gradle-plugin:+",
            "com.github.jruby-gradle:jruby-gradle-plugin:0.1.+"
        )
    }
}

Works for me on java 8.60

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

2 participants