You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open a yaml file and, if necessary, import project root in lsp-mode
Logs
*ansible-ls::stderr buffer:
[2024-01-17T21:06:08Z INFO emacs_lsp_booster::app] Running server "/home/fred/.local/bin/ansible-language-server" "--stdio"
[2024-01-17T21:06:08Z INFO emacs_lsp_booster::app] Will convert server json to bytecode! bytecode options: BytecodeOptions { object_type: Plist, null_value: Nil, false_value: Nil }
thread '<unnamed>' panicked at /github/workspace/src/app.rs:145:18:
called `Result::unwrap()` on an `Err` value: Server->client read thread failed
Caused by:
Invalid header format
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Process ansible-ls stderr finished
I can reproduce this issue in my side. Apparently the ansible language server sends unexpected content to stdout so emacs-lsp-booster cannot correctly handle it. Seems to be the same issue as ansible/ansible-language-server#21 According to the discussion, disabling the ansible-lint feature may fix this issue.
I will also try to see if emacs-lsp-booster could be more tolerant to this kind of error
You're right. The problem comes from ansible language server that writes debug messages to stdout. This has been fixed recently (in ansible/ansible-language-server#604) but there has been no new release since.
I tested with a server built from the last commit and there is no crash anymore.
Thanks for this program. It works well for all language servers I tested with
lsp-mode
, with the exception of ansible.How to reproduce
ansible-language-server
is installed and in your PATHexport LSP_USE_PLISTS=true
init.el
lsp-mode
Logs
*ansible-ls::stderr
buffer:Last exchange in
*lsp-log: ansible-ls*
buffer:The text was updated successfully, but these errors were encountered: