Hi, is there anything available for IntelliJ, so t...
# arrow
j
Hi, is there anything available for IntelliJ, so that Arrow Optics elements (the generated lenses for example) are not marked as (red) errors ? (this is from the 'backend-arrow-example')
s
Actually, I think it’s just missing a Gradle config in the example but I haven’t had time to look into it
You have to include the generated code by KSP into the sourcesets and then I think IDEA highlights it correctly
👌 1
j
marking the /generated as source (IDEA project) won't help, I guess you mean marking it with gradle ? Can anyone provide this snippet as I don't know how to add sourceSet(s) in gradle (kts) ?
l
Try something like
Copy code
sourceSets {
    getByName("main").java.srcDirs("path/to/your/sourceset")
}
This will add the sources to the
main
sourceSet. Path to added sources is relative to the
build.gradle.kts
file location.