Closed DJT-hust closed 2 months ago
LTeX LS+ has an build-in Java distribution. Does it work when you remove your setting in ltex.java.path in VS Code?
LTeX LS+ has an build-in Java distribution. Does it work when you remove your setting in ltex.java.path in VS Code?
No, It still doesn't works. ERROR MESSAGES: 2024-08-30T05:14:27.611Z Info: Setting LTeX UI language to 'zh-cn'. 2024-08-30T05:14:27.611Z Info: Loading i18n messages... 2024-08-30T05:14:27.612Z Info: Loading default i18n messages... 2024-08-30T05:14:27.614Z Info: 2024-08-30T05:14:27.614Z Info: ltex.ltex-ls.path set to 'D:/download/ltex-ls-16.0.0-windows-x64/ltex-ls-16.0.0/bin/ltex-ls'. 2024-08-30T05:14:27.614Z Info: 2024-08-30T05:14:27.614Z Info: Using ltex-ls from 'D:/download/ltex-ls-16.0.0-windows-x64/ltex-ls-16.0.0/bin/ltex-ls'. 2024-08-30T05:14:27.615Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set. 2024-08-30T05:14:27.616Z Info: Testing ltex-ls... 2024-08-30T05:14:27.616Z Info: Command: "D:\download\ltex-ls-16.0.0-windows-x64\ltex-ls-16.0.0\bin\ltex-ls\bin\ltex-ls.bat" 2024-08-30T05:14:27.616Z Info: Arguments: ["--version"] 2024-08-30T05:14:27.616Z Info: env['JAVA_HOME']: undefined 2024-08-30T05:14:27.616Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m" 2024-08-30T05:14:27.644Z Error: Test failed. 2024-08-30T05:14:27.644Z Error: Error details: 2024-08-30T05:14:27.644Z Info: ltex-ls terminated with non-zero exit code 1. 2024-08-30T05:14:27.644Z Info: stdout of ltex-ls: 2024-08-30T05:14:27.644Z Info: 2024-08-30T05:14:27.644Z Info: stderr of ltex-ls: 2024-08-30T05:14:27.644Z Info: ϵͳ�Ҳ���ָ����·���� 2024-08-30T05:14:27.644Z Info: 2024-08-30T05:14:27.644Z Info: You might want to try offline installation, see https://ltex-plus.github.io/vscode-ltex-plus/docs/installation-and-usage.html#offline-installation.
One reason could be your language setting on your computer. Another reason could be, that you downloaded LTeX Ls 16.0.0 manually. The VS Code extension LTeX+ works with LTeX LS 15.2
In any case, I suggest that you try the offline installation: https://ltex-plus.github.io/ltex-plus/vscode-ltex-plus/installation-usage-vscode-ltex-plus.html#offline-installation
One reason could be your language setting on your computer. Another reason could be, that you downloaded LTeX Ls 16.0.0 manually. The VS Code extension LTeX+ works with LTeX LS 15.2
In any case, I suggest that you try the offline installation: https://ltex-plus.github.io/ltex-plus/vscode-ltex-plus/installation-usage-vscode-ltex-plus.html#offline-installation
I've deleted the line "ltex.ltex-ls.path" in settings.json, then it works! Thank you very much!
ERROR MESSAGES:
2024-08-29T14:13:51.075Z Info: Setting LTeX UI language to 'zh-cn'. 2024-08-29T14:13:51.075Z Info: Loading i18n messages... 2024-08-29T14:13:51.076Z Info: Loading default i18n messages... 2024-08-29T14:13:51.077Z Info: 2024-08-29T14:13:51.077Z Info: ltex.ltex-ls.path set to 'D:/download/ltex-ls-16.0.0-windows-x64/ltex-ls-16.0.0/bin/ltex-ls'. 2024-08-29T14:13:51.077Z Info: 2024-08-29T14:13:51.077Z Info: Using ltex-ls from 'D:/download/ltex-ls-16.0.0-windows-x64/ltex-ls-16.0.0/bin/ltex-ls'. 2024-08-29T14:13:51.077Z Info: Using Java from 'C:/Program Files/Java/jdk-22/bin/java.exe' (set in ltex.java.path). 2024-08-29T14:13:51.078Z Info: Testing ltex-ls... 2024-08-29T14:13:51.078Z Info: Command: "D:\download\ltex-ls-16.0.0-windows-x64\ltex-ls-16.0.0\bin\ltex-ls\bin\ltex-ls.bat" 2024-08-29T14:13:51.078Z Info: Arguments: ["--version"] 2024-08-29T14:13:51.078Z Info: env['JAVA_HOME']: "C:/Program Files/Java/jdk-22/bin/java.exe" 2024-08-29T14:13:51.078Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m" 2024-08-29T14:13:51.101Z Error: Test failed. 2024-08-29T14:13:51.101Z Error: Error details: 2024-08-29T14:13:51.101Z Info: ltex-ls terminated with non-zero exit code 1. 2024-08-29T14:13:51.101Z Info: stdout of ltex-ls: 2024-08-29T14:13:51.101Z Info: 2024-08-29T14:13:51.101Z Info: stderr of ltex-ls: 2024-08-29T14:13:51.101Z Info: ϵͳ�Ҳ���ָ����·���� 2024-08-29T14:13:51.101Z Info: 2024-08-29T14:13:51.101Z Info: You might want to try offline installation, see https://ltex-plus.github.io/vscode-ltex-plus/docs/installation-and-usage.html#offline-installation.