question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated Classes are removed on CI

See original GitHub issue

Build Environment SQLDelight version: 1.4.4 OS: macOS Catalina 10.15.7 Gradle version: gradle-6.8-rc-4 Kotlin version: 1.4.30-M1

Describe the bug Hello 👋

In my CI i simply run ./gradlew build --parallel. The error below is not happening when I use version 1.4.3. When I use version 1.4.4 I have a long logcat that contains

Unresolved reference: DatabaseName
Unresolved reference: QueryNames
Unresolved reference: Models

It seems all generated files are removed.

Note: The bug happens also earlier version of Kotlin and grade so it is not related with them.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

1reaction
Ingwersaftcommented, Jan 13, 2021

@atripathi-chwy We also had similar problems on CI. Our workaround:

kotlin.parallel.tasks.in.project=false

Maybe it helps 😃

0reactions
AlecStrongcommented, Feb 21, 2021

this is very likely #1039

if you have multiple variants, and run both of their generateSqlDelightInterface tasks in parallel, its possible one of them deletes the output of the other. If you’re not on android with multiple variants feel free to reopen. We’ll try to fix the core issue soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reclassify a CI - ServiceNow Docs
Create a CI class · Delete CIs · View and edit class definitions and metadata · Update the list of classes in the...
Read more >
java - Is it a good practice to include generated classes into ...
IMHO, it's a good practice to only include the .proto file in the source code, and re-generate these classes when you compile your...
Read more >
Troubleshooting CI/CD - GitLab Docs
After the pipeline is created, the message updates with the pipeline status. ... Look for duplicated configuration that can be removed or simplified....
Read more >
The IDEA Plugin - Gradle User Manual
The IDEA plugin generates files that are used by IntelliJ IDEA, thus making it ... set of hooks for adding and removing content...
Read more >
Removing sources from generated code | MPS - JetBrains
It is a matter of a singleControl + click for them to see the implementation of a method that they are calling or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found