Open k2pctdn opened 1 year ago
I get the same error (also on M1 Mac)
I got the same error when running inside a dev container. It works however on Windows
Had the same issue, which I resolved by installing ltex-ls through brew, and setting a few config options:
"ltex.ltex-ls.path": "/usr/local",
"ltex.java.path": "/Library/Java/JavaVirtualMachines/openjdk.jdk/Contents/Home"
The JAVA_HOME
setting I figured out using this SO comment.
A new problem arises for me though, where VSCode is stuck on Starting LTeX...
, without giving any errors, and there being an ltex-ls process running as reported in htop
.
I do not know why this happens, especially as on Linux (Arch/Debian) it all works fine.
EDIT On another machine running Ventura, I didn't have to do any of this, and only had to install the extension, then it works seamlessly...
Have the same issue on windows
2023-08-13T16:45:37.535Z Info: Setting LTeX UI language to 'en-us'.
2023-08-13T16:45:37.535Z Info: Loading i18n messages...
2023-08-13T16:45:37.537Z Info: Loading default i18n messages...
2023-08-13T16:45:37.541Z Info:
2023-08-13T16:45:37.541Z Info: ltex.ltex-ls.path not set.
2023-08-13T16:45:37.541Z Info: Searching for ltex-ls in 'c:\Users\mengs\.vscode\extensions\valentjn.vscode-ltex-13.1.0\lib'...
2023-08-13T16:45:37.542Z Info: ltex-ls found in 'c:\Users\mengs\.vscode\extensions\valentjn.vscode-ltex-13.1.0\lib\ltex-ls-15.2.0'.
2023-08-13T16:45:37.542Z Info:
2023-08-13T16:45:37.542Z Info: Using ltex-ls from 'c:\Users\mengs\.vscode\extensions\valentjn.vscode-ltex-13.1.0\lib\ltex-ls-15.2.0'.
2023-08-13T16:45:37.542Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2023-08-13T16:45:37.544Z Info: Testing ltex-ls...
2023-08-13T16:45:37.544Z Info: Command: "c:\\Users\\mengs\\.vscode\\extensions\\valentjn.vscode-ltex-13.1.0\\lib\\ltex-ls-15.2.0\\bin\\ltex-ls.bat"
2023-08-13T16:45:37.544Z Info: Arguments: ["--version"]
2023-08-13T16:45:37.544Z Info: env['JAVA_HOME']: undefined
2023-08-13T16:45:37.544Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2023-08-13T16:45:39.006Z Error: Test failed.
2023-08-13T16:45:39.006Z Error: Error details:
2023-08-13T16:45:39.006Z Info: ltex-ls terminated with non-zero exit code 1.
2023-08-13T16:45:39.006Z Info: stdout of ltex-ls:
2023-08-13T16:45:39.006Z Info: {
2023-08-13T16:45:39.006Z Info: "ltex-ls": "15.2.0",
2023-08-13T16:45:39.006Z Info: "java": "11.0.12"
2023-08-13T16:45:39.006Z Info: }
2023-08-13T16:45:39.006Z Info:
2023-08-13T16:45:39.006Z Info: stderr of ltex-ls:
2023-08-13T16:45:39.006Z Info: The system cannot find the path specified.
2023-08-13T16:45:39.006Z Info:
2023-08-13T16:45:39.006Z Info: You might want to try offline installation, see https://valentjn.github.io/vscode-ltex/docs/installation-and-usage.html#offline-installation.
2023-08-13T16:47:19.564Z Info:
2023-08-13T16:47:19.564Z Info: ltex.ltex-ls.path not set.
2023-08-13T16:47:19.565Z Info: Searching for ltex-ls in 'c:\Users\mengs\.vscode\extensions\valentjn.vscode-ltex-13.1.0\lib'...
2023-08-13T16:47:19.565Z Info: ltex-ls found in 'c:\Users\mengs\.vscode\extensions\valentjn.vscode-ltex-13.1.0\lib\ltex-ls-15.2.0'.
2023-08-13T16:47:19.565Z Info:
2023-08-13T16:47:19.565Z Info: Using ltex-ls from 'c:\Users\mengs\.vscode\extensions\valentjn.vscode-ltex-13.1.0\lib\ltex-ls-15.2.0'.
2023-08-13T16:47:19.565Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2023-08-13T16:47:19.566Z Info: Testing ltex-ls...
2023-08-13T16:47:19.566Z Info: Command: "c:\\Users\\mengs\\.vscode\\extensions\\valentjn.vscode-ltex-13.1.0\\lib\\ltex-ls-15.2.0\\bin\\ltex-ls.bat"
2023-08-13T16:47:19.566Z Info: Arguments: ["--version"]
2023-08-13T16:47:19.566Z Info: env['JAVA_HOME']: undefined
2023-08-13T16:47:19.566Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2023-08-13T16:47:20.212Z Error: Test failed.
2023-08-13T16:47:20.212Z Error: Error details:
2023-08-13T16:47:20.212Z Info: ltex-ls terminated with non-zero exit code 1.
2023-08-13T16:47:20.212Z Info: stdout of ltex-ls:
2023-08-13T16:47:20.212Z Info: {
2023-08-13T16:47:20.212Z Info: "ltex-ls": "15.2.0",
2023-08-13T16:47:20.212Z Info: "java": "11.0.12"
2023-08-13T16:47:20.212Z Info: }
2023-08-13T16:47:20.212Z Info:
2023-08-13T16:47:20.212Z Info: stderr of ltex-ls:
2023-08-13T16:47:20.212Z Info: The system cannot find the path specified.
2023-08-13T16:47:20.212Z Info:
2023-08-13T16:47:20.214Z Info: You might want to try offline installation, see https://valentjn.github.io/vscode-ltex/docs/installation-and-usage.html#offline-installation.
Have same problem on windows. Don't know how to slove it. Have tried lot, but failed.
have the same problem on Windows. the LTeX Language Client said that :env['JAVA_HOME']: undefined. And there is the error: Could not run ltex-ls with Java, please see the output panel 'LTeX Language Client' for details. You might want to try offline installation.
Same Problem on windows, same log as @mengsigao
Describe the bug Every time I open VS Code on macOS the LTEX error "Could not run ltex-ls with Java, please see the output panel 'LTeX Language Client' for details. You might want to try offline installation." appears.
Steps to reproduce Steps to reproduce the behavior:
LTeX configuration Please paste all configuration settings starting with
ltex.
from yoursettings.json
. You can help us by temporarily removing some irrelevant settings from yoursettings.json
and see if the bug still occurs."LTeX Language Server" log file First, reproduce the bug. Then, go to
View
→Output
and selectLTeX Language Server
in the drop-down list. Paste this log here:"LTeX Language Client" log file First, set the
ltex.trace.server
setting in yoursettings.json
to"verbose"
. Then, reload the VS Code window and reproduce the bug. Go toView
→Output
and selectLTeX Language Client
in the drop-down list. Paste this log here (note: it will contain your checked document):Version information List here the version information of the relevant software.
java -version
, only if not using Java automatically downloaded by LTeX)Additional context/information The bundled Java exists in /Users//.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/jdk-11.0.12+7