-
Notifications
You must be signed in to change notification settings - Fork 52
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
Forward search after build stopped working on MacOS + Skim on 5.5.0 #880
Comments
Update: Well I'm not sure what is the problem, but it does work in some situations and does not work randomly. I cannot reproduce it reliably now, I will update the issue once I understand why it may jump all of a sudden in a different place. |
Ah, I understand now, basically if I first use the format command + build (in my setup I use |
Released with |
Hey! Thanks, but as soon as I can tell the issue is still present on |
I tried and was working for me today. I needed to reinstall texlab and not sure what was going on but it worked after reinstalling. I'm sure I touched something in my way there xD |
What's not fully working for me it's inverse search though. |
Inverse search is not done by the server, so you need to check the configuration of your PDF viewer. |
## [5.6.0] - 2023-05-20 ### Added - Add `texlab.cancelBuild` command to cancel the currently active build ([#887](latex-lsp/texlab#887)) ### Fixed - Fix resolving include commands from the `import` package ([#885](latex-lsp/texlab#885)) - Fix regression when tracking active cursor position ([#880](latex-lsp/texlab#880))
Hey @pfoerster! I am on 5.7.0 and forward search after build does not work (always sends line number 1) while regular forward search works. |
@MarkusLohmayer I have a few questions:
|
Dear @pfoerster, thanks for reopening. I am sorry, either last time I tried I did not experiment sufficiently or for some unknown reason the behavior changed.
Let me know if I can provide more information which would be useful. |
Unfortunately, the LSP spec does not provide a way at the moment to retrieve the cursor position so the current implementation uses a best-effort approach. Effectively, the server tries to guess the cursor position by looking at the following requests/notifications:
So if you just move the cursor around but do not change the document or trigger any hover/completion requests, then
Previously, formatting on save was the problem because the text edit of |
Thank you very much @pfoerster ! |
This is a follow-up on #475
After the recent release the forward search after build stopped working properly with
Skim
application on MacOS. Previosuly everything was working fine, but now it basically jumps on the most top-level\section
after each build, which may be quite far away from the actual cursor position.I should note that manual forward search still works fine. The problem is only with the automatic forward search after build.
Can I somehow control the settings and restore the previous behaviour as it was working as expected?
My setup is Neovim + LSP + Texlab and the pdf reader is
Skim
.My config is:
The text was updated successfully, but these errors were encountered: