You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gradle build on Macosx Monterey fails on compileScala task when executed from Intellij IDEA with error
Unable to load library 'c': Native library (darwin/libc.dylib) not found in resource path
The error doesn't happen when build is started from Terminal.
The error happens only for some team members, and other people with seemingly identical setup have no issues.
Tested with 7.5-rc1, the issue is resolved: Zinc 1.6.1 uses JNA 5.8.0, which is higher than required 5.6.
Correction: the problem is fixed not because a newer JNA is used. Instead, org.scala-sbt:io >= 1.4.0 doesn't even use JNA (for millisecond time), but uses Java time with Java 10+.
Gradle build on Macosx Monterey fails on
compileScala
task when executed from Intellij IDEA with errorThe error doesn't happen when build is started from Terminal.
The error happens only for some team members, and other people with seemingly identical setup have no issues.
The error is similar to https://youtrack.jetbrains.com/issue/IDEA-244962. And the workaround suggested there helped: upgrade JNA to at least 5.6.
I upgraded to 5.11.0 using
and it helped to eliminate the error when executed from IDEA. No ill effects were observed yet but the testing wasn't extensive.
It would be better if Gradle distribution used a newer version of JNA by default without need for workaround in user build scripts.
The text was updated successfully, but these errors were encountered: