-
Notifications
You must be signed in to change notification settings - Fork 266
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
Exceptions are swallowed when using withCompilation flag #974
Comments
They are not really swallowed, it is intentional. The reason is that we want to provide most details about errors in the code, KSP is not able to provide any diagnostics due to its limitation, therefore when |
I agree with @idanakav. When I have |
Fair enough, let me consider it. Will keep you updated. |
@neetopia wondering if you had a chance to give it any thoughts? do you think an extra flag would be the way to go? I'm happy to help with contributing. |
Thanks for the remind, added to next milestone for discussion. |
This actually looks like a bug to me after taking a deep look, basically the logic here ignores |
Hey, per title, when
returnOkOnError=false && withCompilation=true
I would expect to fail with callingAnalysisResult.compilationError
instead of proceeding with the compilation.Any reason we would not want to fail fast in that scenario?
Happy to submit a PR in case you agree with this case.
The text was updated successfully, but these errors were encountered: