~The @optics ksp codegen (using `"io.arrow-kt:arro...
# arrow
j
The @optics ksp codegen (using
"io.arrow-kt:arrow-optics-ksp-plugin:1.0.2-alpha.42"
) seems to have a bug: if I put @optics on a data class with 3 or fewer fields it generates code with
first
,
second
,
third
which is great because arrow.core.Tuple3 has those fields.
But once I hit 4 fields it starts generating code with
a
,
b
,
c
,
d
which fails because arrow..core.Tuple4 does not have those fields (it has
first
through
fourth
) -- is this a known issue?
Solved
Ah looks like this is my issue: https://github.com/arrow-kt/arrow/pull/2654
For posterity: the solution was to pull in version
1.0.3-alpha.1
instead
👍🏼 1
👍🏻 1