Refactor Rename broken in 2024.1
已回答
Since upgrading to 2024, renaming (at least method parameters) renames the parameter but doesn't keep it inside the parameter parens and then also inserts an /** EndMarker */. Example:
class RenameTest(something: String)
choose to rename `something` to `somxething`
class RenameTest()somxething
/** EndMarker */
: String: String)
Is there some setting that could be causing this?
请先登录再写评论。
Hello, Sydney. Could you please capture and share a short video displaying the problem? You can share it via the JetBrains Uploads service and write the ID you receive here.
Uploaded Upload id: 2024_05_06_cC6qH38nghHzFZ5EaYt7bR (file: Screen Recording 2024-05-06 at 9.07.56 AM.mov)
Thank you for sharing the video! Unfortunately, I wasn't able to reproduce the issue yet. Is it possible to share a sample project on which the issue is reproducible on your side?
I found that this is apparently something that has been intermittently broken for years. Using IntelliJ instead of scalafmt is not an option for me as it does not support some of the formatting my team uses.
Solution: enable Settings | Editor | Code Style | Scala | Use IntelliJ formatter for code range formatting
Sydney, do you expect this behavior to be fixed or you're satisfied with the solution my colleague shared in IDEA-235805?
Nice to have, but I can live with the workaround. Thanks.