ltex-ls
ltex-ls copied to clipboard
Build failure with JDK 20
Describe the bug A clear and concise description of what the bug is.
While packaging OpenJDK 20 for Homebrew at https://github.com/Homebrew/homebrew-core/pull/126319, the following LTeX LS build failure was noticed (full logs available here):
[INFO] Exit code: COMPILATION_ERROR
Error: warnings found and -Werror specified
Warning: /private/tmp/ltex-ls-20230322-91263-1reu6ck/ltex-ls-16.0.0/src/main/kotlin/org/bsplines/ltexls/languagetool/LanguageToolHttpInterface.kt: (44, 7) 'constructor URL(URL!, String!)' is deprecated. Deprecated in Java
Warning: /private/tmp/ltex-ls-20230322-91263-1reu6ck/ltex-ls-16.0.0/src/main/kotlin/org/bsplines/ltexls/languagetool/LanguageToolHttpInterface.kt: (44, 11) 'constructor URL(String!)' is deprecated. Deprecated in Java
This is related to the deprecation of java.net.URL
's public URL(String)
and public URL(URL, String)
constructors.
Steps to reproduce Steps to reproduce the behavior:
- Download LTeX LS 16.0.0 release tarball from https://github.com/valentjn/ltex-ls/archive/refs/tags/16.0.0.tar.gz and extract it.
-
python3.11 -u tools/createCompletionLists.py
-
mvn -B -e -DskipTests package
- See error
Expected behavior A clear and concise description of what you expected to happen.
LTeX LS should be successfully built.
Sample document If the bug occurs for a specific document (e.g. LaTeX), please paste it here. If your document is very long or confidential, please create and attach a smaller example for which the bug still occurs so that we can reproduce it.
N/A
LTeX configuration
Please paste all configuration settings starting with ltex.
from your settings.json
. You can help us by temporarily removing some irrelevant settings from your settings.json
and see if the bug still occurs.
N/A
LTeX LS log Paste the log (output) of LTeX LS here:
N/A
Version information List here the version information of the relevant software.
- Operating system: Ubuntu 22.04 (x86_64); macOS 11, 12, 13 (x86_64 and arm64)
- ltex-ls: 16.0.0
- Java:
openjdk 20 2023-03-21
Additional context/information You can add any other context or information about the problem here.