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 have a very simple example where google-java-format errors:
class Problem {
static String problematic() {
return """
A too long string directly before the ending triple quote seems to cause a problem with google java formatter""";
}
}
When I run the formatter on this file (using java -jar /path/to/google-java-format-1.17.0-all-deps.jar /path/to/Problem.java) I get the following error:
/path/to/Problem.java:error: Something has gone terribly wrong. We planned to make the below formatting change, but have aborted because it would unexpectedly change the AST.
Please file a bug: https://github.com/google/google-java-format/issues/new
=== Actual: ===
class Problem {
static String problematic() {
return "A too long string directly before the ending triple quote seems to cause a problem\"\n + \" with google java formatter";
}
}
=== Expected: ===
class Problem {
static String problematic() {
return "A too long string directly before the ending triple quote seems to cause a problem with google java formatter";
}
}
The text was updated successfully, but these errors were encountered:
benediktsatalia
changed the title
Bug: error when too long line before triple quotes
Bug: error when too long line before ending triple quotes
Sep 13, 2023
I have a very simple example where google-java-format errors:
When I run the formatter on this file (using
java -jar /path/to/google-java-format-1.17.0-all-deps.jar /path/to/Problem.java
) I get the following error:The text was updated successfully, but these errors were encountered: