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
I'm in a process of migrating my lib to the Kotlin 2.0 version and I've stumbled upon a blocker where my Java annotation processor's tests fail (both locally and on CI) with the following message:
e: [kapt] 'com.sun.tools.javac.util.Context' class can't be found ('tools.jar' is absent in the plugin classpath). Kapt won't work.
The following env & dependencies are used for tests:
I've also verified that tools.jar does in fact exists in the path /Users/paul/Library/Java/JavaVirtualMachines/corretto-1.8.0_412/Contents/Home/lib/tools.jar.
Do you have an idea what's causing this? I've searched the Internet for answers, but nothing worked in my case.
The text was updated successfully, but these errors were encountered:
Greetings.
I'm in a process of migrating my lib to the Kotlin 2.0 version and I've stumbled upon a blocker where my Java annotation processor's tests fail (both locally and on CI) with the following message:
The following env & dependencies are used for tests:
dev.zacsweers.kctfork:ksp:0.5.1
corretto-1.8.0_412
false
The testing lib is set up like this:
The
jdkHome
andtoolsJar
properties from theKotlinCompilation
class resolve to the correct paths when debugging:/Users/paul/Library/Java/JavaVirtualMachines/corretto-1.8.0_412/Contents/Home
/Users/paul/Library/Java/JavaVirtualMachines/corretto-1.8.0_412/Contents/Home/lib/tools.jar
I've also verified that
tools.jar
does in fact exists in the path/Users/paul/Library/Java/JavaVirtualMachines/corretto-1.8.0_412/Contents/Home/lib/tools.jar
.Do you have an idea what's causing this? I've searched the Internet for answers, but nothing worked in my case.
The text was updated successfully, but these errors were encountered: