-
Notifications
You must be signed in to change notification settings - Fork 54
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
Texlab exits with non-zero exit code #405
Comments
Thanks for the report. To me, it looks like, texlab is panicking after receiving the exit notification because the client closes the console streams. The panic should result in a |
I think you're right; the lsp client log contains
(Sorry, should have added logs from the beginning.) Unfortunately, the commit doesn't seem to help, but I'm doing a full rebuild right now to make sure. Should neovim be doing something in another order? |
Hmm, it looks like |
Great, thank you! It's only cosmetic, so no hurry! |
@clason You can now try the
There are probably more changes that I have not mentioned here, but it would be really awesome if you and anyone else can try to find any regressions, be it in functionality or performance-wise. Once ChkTeX is added again and the regressions are fixed, I will think about adding a feature like semantic highlighting or maybe the grammar checker and then publish a 3.0 release. |
Awesome! I'll start test-driving it for my work. From what you write, it should be a drop-in replacement and even improvement for me since a) I never liked I am a bit sad to see the equation preview go, as I used that as an example for pushing image support in console :] But I agree that it's too fragile and never worked for me for complex projects with many macros. (And thanks for releasing the parsers, especially if you didn't end up using them! They're already used by nvim-treesitter and work really well!) |
It even builds more quickly now (but not much more quickly -- it's still Rust, after all 😁 ) |
First, it seems noticeably snappier! 👍🏻 One major regression I noticed, though, is that On the same larger project, the And the Finally, the completion stopped working reliably -- at least for autocompletion. For example, typing |
I love the new static parser errors! |
Yeah, the compile times aren't the best, especially for release builds but reducing the numer of dependencies certainly helps a lot. Right now, the biggest culprit is actually citeproc-rs but at the moment, there is not really a good option available.
Maybe I can get MathJax-Node to work inside a Duktape instance, which should work way better than the current approach.
That's very good to hear.
It looks like hover range was actually to small. Before, you had to be inside the token to pick up the hover and not just hover over the complete command. Now, it should perform better. If it still does not work, I added an additional log statement, which should help to fix the issue (it looks the token the cursor is positioned at).
That's a bit odd. For now, I removed symbols from document classes and packages but it looks like a lexer issue to me.
This should be related to the hover issue and is hopefully fixed now. If not, it would be awesome if you could provide a log or a small example.
For testing purposes, I ended up reducing the number of completion candidates but I forgot to revert it to the old value. Now, it has the old value again. For the other issue, a log would indeed be helpful if it happens again. |
It's OK; I just like poking fun at Rust's slow compile time :)
That's an interesting approach. But I don't really consider that a necessary feature -- more fun than actually helpful (for me).
No, that's not it -- it doesn't show anything no matter where I trigger it. It's only If it doesn't work, I don't see any response from the server. Does texlab write a log file somewhere?
That seems to fix these issues, thanks!
Same problem still, unfortunately. Minimal example is \documentclass{article}
\begin{document}
\begin{equation}\label{eq:foo}
1+1=2
\end{equation}
See \eqref{eq:foo}.
\end{document} I don't see anything in the (client) logs about the references request. For some reason, it doesn't recognize texlab as supporting this request? (For the record, my "stress test" project is https://arxiv.org/abs/2001.00216 -- you can download the TeX sources under "Other Formats" -- the downloaded archive for some reason doesn't get a file extension; just add it and you should be able to extract it.)
Will do! Haven't seen it since... |
If you open a PR for the branch, I can comment there instead of here, if that's better? |
Looking at the |
I created a PR over at #408.
This should be fixed now: I had the capability still commented out 🤦 |
Great, I'll comment there from now on!
Nice one :) |
Last one here, I promise: references now work indeed 👍🏻 However, it seems to be noticeably slower now (~1s), but only for some symbols and only the first time? (An example would be the |
I see the issue got closed. Would it be possible to make a release with this bug fixed? Still present in version 2.2.2. |
Yes, I will publish a release once GitHub sorts out their actions issue. See https://www.githubstatus.com/ |
And status is green again :) |
Looks like it was successful this time :) |
Homebrew tests fail on ARM, unfortunately :( |
I think the tests need to be adapted since the initialization changed. Do you have a minimal request/response I can use for a test? |
@clason You can try sending the following "handshake" to stdout:
TexLab should respond with a message containing the server capabilities. |
Shouldn't that be (Just pasting this to the terminal after starting texlab gives |
Yeah, i meant
I think the reason why pasting to the terminal does not work is because of the Unix line breaks (LSP uses Windows line breaks) and it looks like the Looking at other LSP tests, I think you can just copy the test of Rust Analyzer and it should work just fine. |
Ah, that explains it (you did switch the underlying language-server framework). Rust-analyzer tests seem to work indeed, thank you! |
Yeah, we used to implement the LSP layer on our own (the
👍 |
Worked like a charm, homebrew now has 3.0.0 :) |
I am using texlab with neovim's builtin LSP client. Everything works fine, but when I exit neovim (which then sends a shutdown rpc request to texlab), it prints
to the terminal (because the exit code is non-zero). Do you know why this is happening? I couldn't find anything regarding code
101
in the sources...The text was updated successfully, but these errors were encountered: