If that doesn't work try src/main/sqldelight
# squarelibraries
a
If that doesn't work try src/main/sqldelight
c
having this issue again with a similar project 😞 kotlin 1.3.20, sqldelight 1.0.3, but I don't have the main folder so I don't know where to put .sq files this time
a
What do you mean don't have the main folder
c
literally cloned this project, moved from kts to groovy and tried adding sqldelight. https://github.com/bugsnag/kotlin-multiplatform-example
hey Alec, any idea on this? I tried checking sqldelight source code to understand why the error message is thrown, but I can't find the reason... The error should be thrown when the "packageName" is empty, but I setted the variable in the sqldelight {} task in the build.gradle... I tried putting my sq files nearly everytwhere without any positive result
a
where r ur files
.sq files
c
I used this sourceSet = files("../common/src/commonMain/sqldelight/com/mypackage/myapp")
a
in gradle?
c
yep
a
i dont think thats right
id just remove that
and put the .sq files in src/main/sqldelight
you're using an old version right
c
yes, sqldelight 1.0.3 the project is basically 1:1 with the one linked above, and there is no main folder. I tried adding the folder anyway but it's still giving me the same error
if I remove the line from gradle I get the "NO-SOURCE" message
a
did u try doing both, removing
sourceSet
and putting the .sq files in src/main/sqldelight?
surprised if that doesnt work
no real other ideas
c
I am pretty sure I already tried, but I'll try again in a minute
thanks anyway for your support, really appreciated
dunno what happened but your suggestion + invalidate cache/restart worked! maybe something was broken since I tried multiple versions of sqldelight