valentjn / ltex-ls

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
762 stars 33 forks source link

Uncaught exception: Header must provide a Content-Length property. #243

Open Jakob-Koschel opened 1 year ago

Jakob-Koschel commented 1 year ago

Describe the bug coc.nvim raises [coc.nvim]: Uncaught exception: Header must provide a Content-Length property. with 16.0.0-alpha.1.develop, the vscode plugin it spins on "Starting LTeX..." but I can't find an error message. No highlighting is happening.

Steps to reproduce Steps to reproduce the behavior:

  1. Install the latest ltex-ls.
  2. Set ltex.ltex-ls.path according to installation in coc-settings.json.

Expected behavior ltex-ls should just start without an error message.

LTeX configuration I haven't changed anything here.

I used the following formulae to build: https://github.com/Jakob-Koschel/homebrew-tap/blob/main/Formula/ltex-ls.rb This is the working version, to build the "broken" version you can just comment out:

system "git", "revert", "-n", "6b72b5e9845ce11dad143fff05cdce76684edcc0"
inreplace "pom.xml", "15.2.1-alpha.1.develop", "16.0.0-alpha.1.develop"

LTeX LS log I haven't figured out how to retrieve this when starting ltex-ls from within vscode-ltex.

Version information

Additional context/information I've debugged this a bit and looks like https://github.com/valentjn/ltex-ls/commit/6b72b5e9845ce11dad143fff05cdce76684edcc0 is breaking it for me.

I'm not exactly sure if the issue is in ltex-ls or in vscode-ltex but I didn't figure out how to compile vscode-ltex for neovim to debug this properly. For now I just disabled the update of LanguageTool to 6.0 and verified that everything else in 16.0.0 works as intended.

thunderbird-1990 commented 1 year ago

Can confirm.

OS: Arch Linux ltex-ls: 16.0.0 Java: java-20-openjdk

thunderbird-1990 commented 1 year ago

Possibly a problem with coc-ltex than with ltex-ls (see comments at https://aur.archlinux.org/packages/ltex-ls-bin), but can't confirm.