Skip to content

Why is the initialization of LTeX failing (download/extraction/run of Java failed)? #185

Answered by valentjn
Shanggao-lab asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is the Active code page: 65001 in the output where it says stdout of ltex-ls. The curly braces and the things in between are printed by ltex-ls (so it is working correctly), but the Active 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, as Active code page: 65001 is exactly what chcp 65001 prints when being run in a command prompt.

The accepted answer in that Super User question shows that a command can be r…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Shanggao-lab
Comment options

Answer selected by Shanggao-lab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants