Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete using LSP texlab for Latex is broken #12044

Open
pozix604 opened this issue Nov 9, 2024 · 3 comments
Open

Complete using LSP texlab for Latex is broken #12044

pozix604 opened this issue Nov 9, 2024 · 3 comments
Labels
C-bug Category: This is a bug S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

Comments

@pozix604
Copy link

pozix604 commented Nov 9, 2024

Summary

Completion is incorrect, but texlab itself works in other editors, e.g. vim + ale.

Screencast.from.2024-11-09.09-09-18.webm

Expected behavior is as shown in the video at https://github.com/latex-lsp/texlab.

Same error with texlab versions from crates.io 4.3.2 and github 5.12.0.

Reproduction Steps

  1. hx --health latex --> OK
  2. hx test.tex
  3. Type \documen

See attached video.

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Debian 12

Terminal Emulator

Gnome Terminal

Installation Method

AppImage

Helix Version

24.07

@pozix604 pozix604 added the C-bug Category: This is a bug label Nov 9, 2024
@Daniel-Cunningham011
Copy link

Not sure if this issue is still being worked on, but I could not gather logs on my Debian 12 WSL. However, the issue is also reproducible on Windows 11. I'm new to this project, so I am not sure if the logs will be the same on Debian 12. If they are different, can you submit them? Here are the logs on Windows 11:

2024-11-21T19:10:01.719 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:10:01.719 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:13:08.851 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:13:08.851 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:15:57.638 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:15:57.638 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:18:12.800 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:19:49.280 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:19:49.280 helix_lsp::transport [ERROR] texlab err: <- StreamClosed

@johkneisl
Copy link

I can reproduce this.
However, when I open an existing LaTeX file that already has a preamble + some content,
completion with texlab works as expected.
So it doesn't seem fundamentally broken.

@kirawi
Copy link
Member

kirawi commented Nov 26, 2024

Run hx -v and retrieve the logs with the given repro steps if possible.

@kirawi kirawi added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

No branches or pull requests

4 participants