Status Update
Comments
sa...@google.com <sa...@google.com>
an...@google.com <an...@google.com> #2
Thanks for the feedback. I am not able to reproduce the issue based upon the information provided.
Please share diagnostic logs, which can be found by going to Help
> Collect Logs and Diagnostic Data
. Additionally, can you clarify which version of Android Studio you are using?
xi...@gmail.com <xi...@gmail.com> #3
Android Studio Giraffe | 2022.3.1 Patch 1
Build #AI-223.8836.35.2231.10671973, built on August 17, 2023
Runtime version: 17.0.6+0-b2043.56-10027231 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
an...@google.com <an...@google.com> #4
Thank you. I'm able to repro this by tweaking a few settings:
- In
Settings
>Editor
>Inspections
, enable theGeneral
>Incorrect formatting
inspection. - In
Settings
>Editor
>Code Style
>XML
, go to theOther
tab and find theWrap attributes
setting. - In
Settings
>Editor
>Code Style
>XML
, go to theAndroid
tab and find theWrap attributes
setting forLayout Files
.
It appears that reformatting the file (with Code
> Reformat Code
or Code
> Reformat File
) is using the setting for layout files, which would be expected.
However, the Incorrect formatting
inspection appears to be using the more general XML attributes setting. When it fires and offers a correction, the correction is based on that setting instead.
I'm looking into a fix to honor the correct, more specific setting.
an...@google.com <an...@google.com>
an...@google.com <an...@google.com> #5
I've submitted a fix for this issue, which will be included in an upcoming canary build of AS Iguana.
an...@google.com <an...@google.com> #6
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 Canary 3
- Android Gradle Plugin 8.3.0-alpha03
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description