Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having error 'transactionWithResult' should be called only from a coroutine after upgrading to 2.0.0-alpha03 #3404

Closed
rsktash opened this issue Aug 3, 2022 · 7 comments · Fixed by #3411

Comments

@rsktash
Copy link

rsktash commented Aug 3, 2022

image

@AlecKazakova
Copy link
Collaborator

whats your gradle config

@rsktash
Copy link
Author

rsktash commented Aug 4, 2022

Gradle version is 7.5
AGP version is 7.2.1

@AlecKazakova
Copy link
Collaborator

sorry I meant the sqldelight { } block inside of your gradle file

@rsktash
Copy link
Author

rsktash commented Aug 4, 2022

I didn't make any change there only declared database name and package name

@dellisd
Copy link
Collaborator

dellisd commented Aug 4, 2022

Is this in a generated file? And if so, can you post the associated query?

@rsktash
Copy link
Author

rsktash commented Aug 5, 2022

Yes it's in a generated file. It's a grouped statement
image

@dellisd
Copy link
Collaborator

dellisd commented Aug 5, 2022

Thanks! This is indeed a bug in the codgen (assuming you have generateAsync = true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants