Open schmitch opened 7 years ago
Urgh... I wasn't expecting the JVM to prefer the platform library over the bundled one. Do you perhaps know of a way that I can tell jna to only load the library located in the JAR? In my opinion it should not matter whether someone has libsass installed himself.
(I wasn't expecting it, too I tought about 1000 other things, but never about the homebrew library..).
hm... I'm not sure but I doubt there is no possible way to actually handle that.
Actually I think when specifiying the library with the name:
public static final SassLibrary INSTANCE = (SassLibrary)Native.loadLibrary(SassLibrary.JNA_LIBRARY_NAME, SassLibrary.class);
instead of a path, it will try to use the system library that might be in memory, but I'm not 100% sure about that I'm not really a big JNA user. (and I'm also not sure if there is a way to explicity use a library path?!)
Actually it looks like that sbt-sassify tries to load a libsass installed via homebrew which will result in segfaults when libsass v3.4.4 will be installed:
Memory Mapping is:
Reverting to 3.4.3 or uninstalling it fixes the issue.
It took me a while to figure it out that it will use the libsass that is loaded via homebrew.
Well I think we should actually add something to the readme that either
libasss
needs to be uninstalled or that the version should align with the tested versions.