why is this error showing upon building ? itemsInd...
# compose-desktop
s
why is this error showing upon building ? itemsIndexed() not resolved in lazyColumn ,However it is .
j
Did you import the function?
s
yes I did , that is why IDE is not showing any error in Editor View.
The Error Only Occur when building the application. The function takes me to this reference:
j
Probably you will need to provide a minimal repro on github or something, I'm out of ideas off the top of my head.
s
will project's public repo gonna help?
d
Clean and re sync gradle. I think the IDE is wrong/out of date.
s
@Dominaezzz Its Intellij EAP latest one , and tried on Android studio canary , Updated both today , will try rebuilding the project tho
a
this function was recently moved to be an extension function. could you try to manually add
import androidx.compose.foundation.lazy.itemsIndexed
j
But to Shabinder's earlier point, if the function weren't properly imported, wouldn't it be red in the IDE's editor view?
s
@jim that is what I am saying Editor Says it all fine , but While Building the Error Pops Up
j
@Shabinder Singh That project looks complicated, including using some sort of dependency-injection stuff that doesn't build for me, and it wasn't clear if the project as posted would reproduce the error (did you commit broken code to master?). We probably don't have time to try to get the whole app working, but a minimal repro would help make it easier for us to take a look.
s
@jim i was just finishing and pushing my last commit which will resolve existing error in codebase, And yes the project is somewhat complicated , will try making a minimal repo and will share it maybe tomorrow...?
the repo has been updated to reflect all latest changes and will share minimal repo by later tomorrow maybe
j
Actually though, @Andrey Kulikov makes a good point. When you <CTRL>+<CLICK>, it is taking you to an interface instead of an extension function. So either you haven't upgraded to build-149 or the IDE is somehow resolving to an old artifact.
s
the clean and rebuild is in progress , will update you as soon as it completes
j
What I meant to say is: Please also upgrade from
0.3.0-build140
to
0.3.0-build149
to ensure you have all the latest changes, as trying to debug potentially old versions is harder when we are looking at the latest source code.
s
sure, will do , Thanks to y'all🙌