You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had previously opened tickets on this first with Jenkinsfile where its removing spacing by open rewrite. Every single version still continues to remove spaces when writting something like this
int value = something as int
The 'somethingasint' is the result making it useless for working with groovy. What ever came of fixing this as I see tickets claiming groovy was fixed but I've never seen it fixed at all. We alrady had to globally ignore Jenkinsfile. But any vars / groovy classes have the same issue.
The text was updated successfully, but these errors were encountered:
Historically speaking, the fix was to fully and completely disabled recipes and the auto format system. A while later a new way to control auto formatting (ie. AutoFormatService) was introduced allowing each language binding to provide their specific implementations for how styling should behave for the specific language. At that time, the Groovy language binding reintroduced auto formatting being very specific about what to actually format and what to avoid as known problematic.
Things have been pretty quiet on the formatting front since the introduction of that new system, but it sounds like the as type cast may be causing you some problems.
As we ask in the bug report issue type, would you mind confirming that the behavior is present in the latest release as well as how you are executing and with what versions you're executing the OpenRewrite recipes using? Including the specific recipe that you're executing as well when you are observing the issue would also be of great help.
I indeed also think this was fixed quite a while ago in release 8.11.1 as part of #3792. If you still see Groovy type casts getting mangled this way, it is possible that you are still using an old release of OpenRewrite.
I had previously opened tickets on this first with Jenkinsfile where its removing spacing by open rewrite. Every single version still continues to remove spaces when writting something like this
int value = something as int
The 'somethingasint' is the result making it useless for working with groovy. What ever came of fixing this as I see tickets claiming groovy was fixed but I've never seen it fixed at all. We alrady had to globally ignore Jenkinsfile. But any vars / groovy classes have the same issue.
The text was updated successfully, but these errors were encountered: