you may be missing an import
# arrow
p
you may be missing an import
f
It's not offered in auto completion
nothing
r
Are you including the dependency on arrow-optics?
Also make sure you perform a full clean and build. Kapt does not get triggered on highlighting only on full builds
f
This is what I have now
Copy code
def arrow_version = "0.10.5"
implementation "io.arrow-kt:arrow-optics:$arrow_version"
implementation "io.arrow-kt:arrow-syntax:$arrow_version"
kapt    "io.arrow-kt:arrow-meta:$arrow_version"
I've tried running
gradlew clean build
r
If you want to push a small minimal repro repo we can take a look but that should have worked. Also check out what gets generated in your build folder to see if those optics are there
should be under /build/…kapt/..
f
When I moved into the code the
main
source set it worked. It looks like non-main source sets are not being handled correctly.
unfortunately, I don't think I will be able to move things to main with my current setup...
hmm, I have an idea
r
if you are in Android make sure you followed the https://arrow-kt.io/docs/0.10/quickstart/setup/#additional-setup
f
I'm not in android
r
if you have a different layout you may still need that regardless of android
so idea can pick up the source code gen files as sources via gradle
f
there are no source gen files being generated
I've figured out a way to use the main sourceset though