sqldelight icon indicating copy to clipboard operation
sqldelight copied to clipboard

IDE plugin flips between two error messages infinitely if the library and plugin versions do not match

Open saket opened this issue 2 years ago • 6 comments

SQLDelight Version

2.0.0-alpha01

IDE Version

Android Studio Electric Eel | 2022.1.1 Canary 1

Dialect

SQLite

Describe the Bug

Here's what I was seeing when I was using 2.0.0-alpha01 in my project:

https://user-images.githubusercontent.com/2387680/173000180-a337fc93-4ce7-4330-bd12-112bed872e51.mp4

Stacktrace

No response

saket avatar Jun 10 '22 05:06 saket

Do you see anything in your idea log? Help -> Show Log In Finger

AlecKazakova avatar Jun 10 '22 10:06 AlecKazakova

I found something. Are these useful?

2022-06-10 09:31:56,029 [60533632]   INFO - indexing.UnindexedFilesUpdater - Scanning of playground uses 9 scanning threads
2022-06-10 09:31:56,055 [60533658]   INFO - indexing.UnindexedFilesUpdater - Scanning completed for playground. Number of scanned files: 107557; Number of files for indexing: 0 took 26ms; general responsiveness: ok; EDT responsiveness: ok
2022-06-10 09:31:56,064 [60533667]   INFO - indexing.UnindexedFilesUpdater - Finished for playground. No files to index with loading content.
2022-06-10 09:31:56,064 [60533667]   INFO - ij.psi.search.LogFileTypeIndex - File type index snapshot dropped
2022-06-10 09:31:57,178 [60534781]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:31:57,280 [60534883]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:31:57,672 [60535275]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:31:57,778 [60535381]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:31:58,070 [60535673]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:31:58,175 [60535778]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:31:58,471 [60536074]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:31:58,575 [60536178]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:31:58,924 [60536527]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:31:59,030 [60536633]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:31:59,345 [60536948]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:31:59,448 [60537051]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:31:59,755 [60537358]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:31:59,755 [60537358]   WARN - xecution.GradleExecutionHelper - Exception 'org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: SqlDelightPropertiesFile.getModuleJars().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.' was reported 250 times
2022-06-10 09:31:59,856 [60537459]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:00,157 [60537760]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:00,259 [60537862]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:00,563 [60538166]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:00,667 [60538270]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:00,969 [60538572]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:01,072 [60538675]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:01,362 [60538965]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:01,467 [60539070]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:01,774 [60539377]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:01,880 [60539483]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:02,286 [60539889]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:02,387 [60539990]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:02,702 [60540305]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:02,805 [60540408]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:03,081 [60540684]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:03,187 [60540790]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:03,497 [60541100]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:03,605 [60541208]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:03,883 [60541486]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:03,884 [60541487]   WARN - xecution.GradleExecutionHelper - Exception 'org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: SqlDelightPropertiesFile.getModuleJars().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.' was reported 260 times
2022-06-10 09:32:03,987 [60541590]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:04,266 [60541869]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:04,371 [60541974]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:04,638 [60542241]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:04,742 [60542345]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:05,051 [60542654]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:05,154 [60542757]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:05,545 [60543148]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:05,652 [60543255]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:05,920 [60543523]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:06,024 [60543627]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:06,308 [60543911]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:06,414 [60544017]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:06,694 [60544297]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:06,799 [60544402]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:07,092 [60544695]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:07,195 [60544798]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:07,533 [60545136]   INFO -              SQLDelight[playground] - Assembling file index
2022-06-10 09:32:07,639 [60545242]   INFO -              SQLDelight[playground] - Fetching SQLDelight models
2022-06-10 09:32:07,930 [60545533]   INFO -              SQLDelight[playground] - Assembling file index

saket avatar Jun 10 '22 13:06 saket

Yes that is helpful. It looks like there was a gradle incompativility Exception 'org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: SqlDelightPropertiesFile.getModuleJars(). but the IDE didn't do the thing its supposed to where it says incompatible versions - or i guess it does but its flip flopping

AlecKazakova avatar Jun 10 '22 14:06 AlecKazakova

Hey @saket 👋

How were you able to add the version 2.0.0-alpha01 in your project?

I keep getting:

Could not find com.squareup.sqldelight:gradle-plugin:2.0.0-alpha03.

For any alpha version 😢

ovitrif avatar Jun 21 '22 09:06 ovitrif

Package name has changed, it's also stated in the changelog

vanniktech avatar Jun 21 '22 09:06 vanniktech

Package name has changed, it's also stated in the changelog

Thank you 🙇 !

ovitrif avatar Jun 21 '22 10:06 ovitrif