Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with text blocks formatting on java 21. Defaulting to extreme left indentation #2138

Closed
4 tasks
rohan-changejar opened this issue May 24, 2024 · 2 comments

Comments

@rohan-changejar
Copy link

  • Issue description - While trying to migrate our existing string implementations of string append to the latest text block format
    in our java 21 project, we are seeing that text blocks are not being handled properly and therefore causing unexpected left indentation, which is deviant from the standard formatting pattern

  • Gradle or Maven version - id "com.diffplug.spotless" version "6.17.0"

  • operating system and version - MacOs sonoma 14.5

  • spotless { java { // googleJavaFormat() // optional: you can specify a specific version (>= 1.8) and/or switch to AOSP style // and/or reflow long strings // and/or use custom group artifact (you probably don't need this) googleJavaFormat('1.22.0').aosp().reflowLongStrings().groupArtifact('com.google.googlejavaformat:google-java-format') } }

image
@bmarwell
Copy link

DUplicate of #1628

@nedtwigg
Copy link
Member

nedtwigg commented Jun 4, 2024

I think this is probably a bug in googleJavaFormat, not specific to Spotless. I don't think this is related to #1628, the configuration above does not use our indentStep

@nedtwigg nedtwigg closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants