Why is the initialization of LTeX failing (download/extraction/run of Java failed)? #185
-
Hi, there. I'm a tex user and want to use this popular grammar checking extension on VScode, but after I reloading VScode and opening a tex file, it reports I've tried three ways of installation:
However, all three ways failed with the initialization report Following is output report:
I don't know why it doesn't work. If necessary, I could provide other log files or something else. Please give me some instructions to fix it. Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The problem is the This Super User question suggests that you have set somewhere that the command The accepted answer in that Super User question shows that a command can be run automatically on startup of every command prompt if you add the command to the registry key |
Beta Was this translation helpful? Give feedback.
The problem is the
Active code page: 65001
in the output where it saysstdout of ltex-ls
. The curly braces and the things in between are printed by ltex-ls (so it is working correctly), but theActive code page: 65001
is not from ltex-ls. vscode-ltex expects the stdout of ltex-ls to be JSON, and it fails to parse this particular stdout because it's not valid JSON.This Super User question suggests that you have set somewhere that the command
chcp 65001
is run every time a batch file is run/a command prompt is opened, asActive code page: 65001
is exactly whatchcp 65001
prints when being run in a command prompt.The accepted answer in that Super User question shows that a command can be r…