Is this a known issue?
# arrow
g
Is this a known issue?
r
Hi @gas I was preparing a message about it. Just a few seconds! 🙏
Please @gas, let us know when it's already working for you after adding that repository
Thanks!!!
g
Thank you, Rachel! Unfortunately it still does not work. New error message: Execution failed for task ‘:kaptKotlin’.
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
r
Please, can you share the repository or something to reproduce the error?
Gradle configuration and the piece of source code
Thanks!
g
Sure. Gradle build file:
Copy code
plugins {
    java
    kotlin("jvm") version "1.4.0"
    kotlin("kapt") version "1.4.0"
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
    jcenter()
    maven(url = "<https://artifactory.riedel.net/artifactory/mediornet-rumba/>")
    maven(url = "<https://kotlin.bintray.com/kotlinx>")
    maven(url = "<https://jitpack.io>")
    maven("<https://dl.bintray.com/arrow-kt/arrow-kt/>")
    maven("<https://oss.jfrog.org/artifactory/oss-snapshot-local/>")
}

val arrow_version = "0.11.0-SNAPSHOT"
dependencies {
    implementation(kotlin("stdlib"))
    implementation("io.arrow-kt:arrow-optics:$arrow_version")
    implementation("io.arrow-kt:arrow-syntax:$arrow_version")
    kapt("io.arrow-kt:arrow-meta:$arrow_version")
}
Source file:
Copy code
import arrow.optics.optics

@optics
data class Inner(val i: Int) {
    companion object
}
@optics
data class Outer(val s: String, val inner: Inner) {
    companion object
}

fun main() {
    val d = Outer("bla", Inner(0))
}
r
@gas, please, add a
package
to the source code and try it again
g
Rachel you’re the best! That did the trick.
r
Thank you so much for letting us know and for trying it 🎉