Open Flo2410 opened 3 months ago
I experience the same issue on my NixOS installation.
I think this is a problem with the packaged ltex-ls
in nixpkgs, since it works with the FHS build of VS Codium and the downloaded FHS-compliant binary that the extension downloads when the path of ltex-ls
is not set.
Therefore, a temporary fix is to use FHS build of the VS Code flavor of your choice, e.g. codium-fhs
and let the extension manage the ltex-ls
binary. For this, unset the ltex-ls
path, but keep the Java path. Afterwards, use the LTeX: Reset and Restart
command in the FHS build VS Code flavor. Note that you must use a FHS build as the binary that the extensions automatically downloads links to libraries that are not located in well-known places on NixOS.
Oh... I completely forgot to post the workaround I found for this...
I got it to work using the with the offline vsix and the normal (non-fhs) stable version of vscode
.
I install the ltex using the following code-snippet:
ltex-vsxi = pkgs.vscode-utils.buildVscodeMarketplaceExtension rec {
version = "13.1.1";
mktplcRef = {
inherit version;
name = "ltex";
publisher = "neo-ltex";
};
vsix = builtins.fetchurl {
url = "https://github.com/neo-ltex/vscode-ltex/releases/download/${version}/ltex-${version}-offline-linux-x64.vsix";
sha256 = "sha256:0wlcndwax4d68b29k2kmagv3vm01ill4dix9d8cljdnwfvzaapr8";
};
unpackPhase = ''
unzip ${vsix}
'';
};
I don't know why it works without the FHS, but it does.
Thanks for this!
Do you use the ltex-ls
from nixpkgs or do you use the built-in, downloaded binary of the extension?
I use the bundled ltex-ls
binary from the offline vsix (First Alternative: Download the Offline Version of ltex).
So, I do not set the ltex.ltex-ls.path
, but do set the java option "ltex.java.path" = "${pkgs.temurin-bin-20}";
Describe the bug The extension does not start. It always shows
Starting LTeX...
in the status bar of VS Code.Steps to reproduce Just install the extension, set the ltex-ls and java paths and see that it does not work
Expected behavior I would expect the extension to start.
Sample document There is no file required for the bug to occur, but the extension only loads if it sees a latex file.
LTeX configuration
"LTeX Language Server" log file First, reproduce the bug. Then, go to
View
→Output
and selectLTeX Language Server
in the drop-down list. Paste this log here:"LTeX Language Client" log file First, set the
ltex.trace.server
setting in yoursettings.json
to"verbose"
. Then, reload the VS Code window and reproduce the bug. Go toView
→Output
and selectLTeX Language Client
in the drop-down list. Paste this log here (note: it will contain your checked document):Version information List here the version information of the relevant software.
Actual Java version I have installed:
Additional context/information I had to install
ltex-ls
manually from nixpkgs, as it does not get installed automatically by the extension. Furthermore, I don't understand why it says it is using Java 19, when I set the java path to a Java 20 version.