vscode-ltex
vscode-ltex copied to clipboard
No longer runs on Windows
Describe the bug New versions of Node require setting "shell: true" when calling spawn/spawnSync on a .bat file such as "ltex-ls.bat".
Steps to reproduce Run on Windows.
Expected behavior That it works.
Sample document N/A
LTeX configuration N/A
"LTeX Language Server" log file No log file created as server never starts
"LTeX Language Client" log file
2024-07-29T17:17:28.190Z Info: Setting LTeX UI language to 'en'.
2024-07-29T17:17:28.190Z Info: Loading i18n messages...
2024-07-29T17:17:28.190Z Info: Loading default i18n messages...
2024-07-29T17:17:28.194Z Info:
2024-07-29T17:17:28.194Z Info: ltex.ltex-ls.path not set.
2024-07-29T17:17:28.194Z Info: Searching for ltex-ls in 'c:\Users...'...
2024-07-29T17:17:28.194Z Info: ltex-ls found in 'c:\Users...'.
2024-07-29T17:17:28.194Z Info:
2024-07-29T17:17:28.194Z Info: Using ltex-ls from 'c:\Users...'.
2024-07-29T17:17:28.194Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2024-07-29T17:17:28.196Z Info: Testing ltex-ls...
2024-07-29T17:17:28.196Z Info: Command: "c:\Users\...\lib\ltex-ls-15.2.0\bin\ltex-ls.bat"
2024-07-29T17:17:28.196Z Info: Arguments: ["--version"]
2024-07-29T17:17:28.196Z Info: env['JAVA_HOME']: undefined
2024-07-29T17:17:28.196Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2024-07-29T17:17:28.196Z Error: Test failed.
2024-07-29T17:17:28.196Z Error: Error details:
2024-07-29T17:17:28.201Z Error: Error: spawnSync c:\Users...\lib\ltex-ls-15.2.0\bin\ltex-ls.bat EINVAL
2024-07-29T17:17:28.201Z Error: at Object.spawnSync (node:internal/child_process:1124:20)
2024-07-29T17:17:28.201Z Error: at Object.spawnSync (node:child_process:914:24)
2024-07-29T17:17:28.201Z Error: at DependencyManager.
Version information
- Operating system: Windows 11
- VS Code: 1.92.0
- vscode-ltex: 13.1.0
Additional context/information Easy enough to solve by patching extension.js file locally. See https://github.com/node-red/node-red/pull/4652/commits/bd58431603fb4169c1696f6b97a618b1acae5091 for pattern to fix. Will submit PR if this project is active and accepting PRs.