From b64fc3fb1cdef4358b96ea8cbb554a0b99654efc Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sat, 5 Oct 2024 23:44:19 +0200 Subject: [PATCH] Refine FAQ --- docs/code-howtos/faq.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/code-howtos/faq.md b/docs/code-howtos/faq.md index 2f05e66c1407..605dfbbb0a31 100644 --- a/docs/code-howtos/faq.md +++ b/docs/code-howtos/faq.md @@ -25,15 +25,17 @@ Please ensure that you setup and configured the Google Java Format IntelliJ plug On Windows, to fix using the CLI, you can run the following command in the root directory of the project: ```bash -find . -name "*.java" -exec /c/Program\ Files/OpenJDK/jdk-21.0.2/bin/java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar /c/Users/{username}/Downloads/google-java-format-1.24.0-all-deps.jar -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \; +find . -name "*.java" -exec /c/Users/{username}/Downloads/google-java-format_windows-x86-64.exe -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \; ``` -Note that the `.exe` does not produce the same results - thus the following command does not work: +On Linux, it is similar to following call: ```bash -find . -name "*.java" -exec /c/Users/{username}/Downloads/google-java-format_windows-x86-64.exe -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \; +find . -name "*.java" -exec /c/Program\ Files/OpenJDK/jdk-21.0.2/bin/java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar /c/Users/{username}/Downloads/google-java-format-1.24.0-all-deps.jar -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \; ``` +Note that the `.exe` does not produce the same results - thus the following command does not work: + ### `org.jabref.logic.l10n.LocalizationConsistencyTest findMissingLocalizationKeys` FAILED You have probably used Strings that are visible on the UI (to the user) but not wrapped them using `Localization.lang(...)` and added them to the [localization properties file](https://github.com/JabRef/jabref/blob/main/src/main/resources/l10n/JabRef_en.properties).