BUILD file contents deleted when automatically formatted on save #6471
Labels
more-data-needed
Awaiting response from issue author
product: IntelliJ
IntelliJ plugin
topic: bazel
Bazel integration (external repositories, aspects, flags, etc)
type: bug
Description of the bug:
Whenever I make a change to a BUILD file and then save, the file's contents are all deleted (see attached video).
Confirmed that this stops happening when the Bazel plugin's
Automatically format BUILD files on save
is turned off.My best guess is that this is just some incompatibility between IDE version, plugin version, and bazel version? Maybe it's an interaction between the Bazel plugin's save action and IntelliJ's built in save action formatting?
Screen.Recording.2024-06-06.at.11.38.11.AM.mov
Which category does this issue belong to?
Intellij
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Automatically format BUILD files on save
is turned onWhich Intellij IDE are you using? Please provide the specific version.
2024.1.2
What programming languages and tools are you using? Please provide specific versions.
Java
What Bazel plugin version are you using?
2024.05.21.0.1-api-version-241
Have you found anything relevant by searching the web?
No, but this issue is kind of hard to google so possible there's something out there?
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: