Fixed
Status Update
Comments
gh...@google.com <gh...@google.com> #2
Thanks for reporting, would you be able to provide a reproducible case for when this incremental error occurs? The task for merging java resources has multiple incremental inputs depending on where the java resource originates - providing a sample project where this issue can be triggered will help the team narrow what task input is impacted. A longer stacktrace of the issue from #1 might also be useful.
Description
While doing some other work in
ReplaceStringQuickFix
I was able to induce the following exception during intention preview:I think part of the problem is this line in
ReplaceStringQuickFix
:That line has the effect of changing the PsiFile back to a physical file (replacing the non-physical file synthesized by the intention preview code). The line was originally added to support applying Lint fixes to a different file than the one being edited (ag/12351963).
Probably we can disable intention preview in this case.