is there any way to debug android sqldelight plugi...
# squarelibraries
m
is there any way to debug android sqldelight plugin? The code isn’t generated, unless i run the task ./gradlew generateSqlDelight
m
What version are you using?
m
1.5.1
👍 1
m
Asking because https://github.com/cashapp/sqldelight/pull/2518 would have been a good candidate as it changes quite a bunch the way dependencies are propagated
But it's not in 1.5.1
In these cases, running Gradle with
-i
should show "some" information
Actually, this PR might fix your issue
Can you try with the snapshots?
m
i can try. give me the info
m
It should be a matter of adding
Copy code
repositories {
  maven { 
    url = uri("<https://oss.sonatype.org/content/repositories/snapshots/>")
  }
}
to your repositories (both buildscript + project repositories)
And then using version
1.6.0-SNAPSHOT
m
ok thaks. give me a sec
still the same. and the Transacter is gone
😞 1
m
So if you change a
.sq
file, the code doesn't get generated?
m
it doesnt
m
You could run your build with
-Dorg.gradle.debug=true
and run a remote debug session from IntelliJ. This allows to put breakpoints in the plugin code.
m
i’m applying the plugin and the dependencies in a module, not the app’s module
but it should work. i think i have done this before
m
Yea, should work.
What target are you running?
m
using kotlin build script. but it shudnt make a difference, right ?
m
Try
./gradlew -i :$module:assembleDebug
using kotlin build script. but it shudnt make a difference, right ?
Shouldn't change anything
The above command shouldn't output
NO-SOURCE
for the SqlDelight task
m
it generated the code. let me check what you asked
m
Ah then if it generates the code, it's all good 🙂
that might be an IntelliJ plugin issue then if running Gradle from the command line works well
a
Restart intellij, then check to see if the plugin had any errors in the log (under the help menu, can search the log for SQLDelight)
m
ya. this is a recurring log: GradleBuildOutputUtil.kt - Could not find output listing file. Build may have failed
maybe related. ill try to investigate
2021-09-01 170118,353 [ 373861] INFO - SQLDelight[LeagueDex] - Initialized file index 2021-09-01 170118,423 [ 373931] WARN - GradleBuildOutputUtil.kt - Could not find output listing file. Build may have failed.
a
the file index initializing is the big one, if that works then the codegen part should work
hmmmmm