-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Did not work on Windows, JAVA problem #886
Comments
I noticed this problem too. It was working last week, so I'm guessing a recent update to VS Code broke something. I tried using the offline installation, but it didn't help either. Curiously running the
|
Perhaps is this a duplicate of #884? I had the same problem, but the patch solution suggested there seems to have worked for me. |
Same problem I guess. Tried setting ltex.java.path manually, to no avail. Hope this helps. |
This issue is because VS Code updated Node.js which includes this security fix: It can be fixed (not sure if this is a safe fix though). By replacing the executableOptions in extension.js (starting line 13618) with:
This is also a duplicate of issue #884 |
Thanks @wellebeSICKAG was able to fix it using that patch |
UPDATE: I just found a working fork of this repository (VSCode plugin) which solves the issue on Windows: LTeX+ I can confirm the same problem on Windows 11 and VSCode 1.94.2. I tried:
Still no luck. Feel free to request more info. Just in case my log file:
|
This not work for me with windows 10 and VScode 1.94.2, |
I´m facing the same problems here with Windows 11 and VCcode 1.94.2. |
Also faced the same problem. Is this repository still being maintained? |
No it's not, I changed to |
When install on VSCode (Windows 11 Pro 64 bit, all updated) and open a file - error message:
Could not run ltex-ls with Java, please see the output panel 'LTeX Language Client' for details. You might want to try offline installation.
2024-08-11T16:59:05.110Z Info: Setting LTeX UI language to 'en'.
2024-08-11T16:59:05.110Z Info: Loading i18n messages...
2024-08-11T16:59:05.110Z Info: Loading default i18n messages...
2024-08-11T16:59:05.112Z Info:
2024-08-11T16:59:05.112Z Info: ltex.ltex-ls.path not set.
2024-08-11T16:59:05.112Z Info: Searching for ltex-ls in 'c:\Users\User.vscode\extensions\neo-ltex.ltex-13.1.1\lib'...
2024-08-11T16:59:05.112Z Info: ltex-ls found in 'c:\Users\User.vscode\extensions\neo-ltex.ltex-13.1.1\lib\ltex-ls-15.2.0'.
2024-08-11T16:59:05.112Z Info:
2024-08-11T16:59:05.112Z Info: Using ltex-ls from 'c:\Users\User.vscode\extensions\neo-ltex.ltex-13.1.1\lib\ltex-ls-15.2.0'.
2024-08-11T16:59:05.112Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2024-08-11T16:59:05.113Z Info: Testing ltex-ls...
2024-08-11T16:59:05.113Z Info: Command: "c:\Users\User\.vscode\extensions\neo-ltex.ltex-13.1.1\lib\ltex-ls-15.2.0\bin\ltex-ls.bat"
2024-08-11T16:59:05.113Z Info: Arguments: ["--version"]
2024-08-11T16:59:05.113Z Info: env['JAVA_HOME']: undefined
2024-08-11T16:59:05.113Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2024-08-11T16:59:05.113Z Error: Test failed.
2024-08-11T16:59:05.113Z Error: Error details:
2024-08-11T16:59:05.119Z Error: Error: spawnSync c:\Users\User.vscode\extensions\neo-ltex.ltex-13.1.1\lib\ltex-ls-15.2.0\bin\ltex-ls.bat EINVAL
2024-08-11T16:59:05.119Z Error: at Object.spawnSync (node:internal/child_process:1124:20)
2024-08-11T16:59:05.119Z Error: at Object.spawnSync (node:child_process:914:24)
2024-08-11T16:59:05.119Z Error: at DependencyManager. (c:\Users\User.vscode\extensions\neo-ltex.ltex-13.1.1\dist\extension.js:14956:45)
2024-08-11T16:59:05.119Z Error: at Generator.next ()
2024-08-11T16:59:05.119Z Error: at fulfilled (c:\Users\User.vscode\extensions\neo-ltex.ltex-13.1.1\dist\extension.js:14587:58)
2024-08-11T16:59:05.119Z Info: ltex-ls did not print expected version information to stdout.
2024-08-11T16:59:05.119Z Info: stdout of ltex-ls:
2024-08-11T16:59:05.119Z Info:
2024-08-11T16:59:05.119Z Info: stderr of ltex-ls:
2024-08-11T16:59:05.119Z Info:
2024-08-11T16:59:05.120Z Info: You might want to try offline installation, see https://valentjn.github.io/vscode-ltex/docs/installation-and-usage.html#offline-installation.
The offline installation is successful, but nothing changes.
The text was updated successfully, but these errors were encountered: