ROCKTAKEY / lsp-latex

Emacs lsp-mode client for LaTeX, on texlab.
GNU General Public License v3.0
69 stars 4 forks source link

Easy keybindings for building the tex file and viewing pdf #25

Open md-arif-shaikh opened 3 years ago

md-arif-shaikh commented 3 years ago

Hi, thanks for this very nice package. I was wondering if there is a way to bind the lsp-latex-build to simple key such as C-c C-c which is used in AucTeX and similarly for viewing the generated pdf using something like C-c C-v. These keys are bound to the tex-mode commands which I do not want. I tried few things like

(with-eval-after-load "tex-mode"
    `(define-key latex-mode-map (kbd "C-c C-c") 'lsp-latex-build))

However, it does not work.

ROCKTAKEY commented 3 years ago

Body should not be quoted in case of with-eval-after-load. It is in case of eval-after-load that quote is needed.

(with-eval-after-load "tex-mode"
    (define-key latex-mode-map (kbd "C-c C-c") 'lsp-latex-build))
(eval-after-load "tex-mode"
    `(define-key latex-mode-map (kbd "C-c C-c") 'lsp-latex-build))
md-arif-shaikh commented 3 years ago

While this fixed the key binding issue, I am having trouble with actually making it work with pdf-tools. Here is my config for lsp-latex link . When I invoke M-x lsp-latex-forward-search nothing actually happens.

ROCKTAKEY commented 3 years ago

Hmm, There seems to be nothing wrong on your config...

Could you get the log with forward-searching and post it here? You can get log if you eval:

(setq lsp-latex-texlab-executable-argument-list
      '("-vvvv" "--log-file" "texlab.log"))

and run the command lsp-restart-workspace.

Note that "texlab.log" is made on directory including current file, and you cannot use abbreviation "\~" like "\~/texlab.log" as the argument.

md-arif-shaikh commented 3 years ago

This what I get

Command "~/.cargo/bin/texlab" is present on the path.
Command "digestif" is not present on the path.
Command "texlab" is not present on the path.
Command "~/.cargo/bin/texlab" is present on the path.
Command "digestif" is not present on the path.
Command "texlab" is not present on the path.
Found the following clients for /home/arif/test/test.tex: (server-id texlab2, priority 2)
The following clients were selected based on priority: (server-id texlab2, priority 2)
Command "~/.cargo/bin/texlab" is present on the path.
Command "digestif" is not present on the path.
Command "texlab" is not present on the path.
Command "~/.cargo/bin/texlab" is present on the path.
Command "digestif" is not present on the path.
Command "texlab" is not present on the path.
Found the following clients for /home/arif/test/test.tex: (server-id texlab2, priority 2)
The following clients were selected based on priority: (server-id texlab2, priority 2)
Rc files read:
  /etc/LatexMk
  /home/arif/.latexmkrc
Latexmk: This is Latexmk, John Collins, 17 Apr. 2020, version: 4.69a.
Latexmk: All targets (test.pdf) are up-to-date
Rc files read:
  /etc/LatexMk
  /home/arif/.latexmkrc
Latexmk: This is Latexmk, John Collins, 17 Apr. 2020, version: 4.69a.
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
Latexmk: applying rule 'pdflatex'...
      '/home/arif/test/test.tex'
      'test.tex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -synctex=1 --interaction=nonstopmode -file-line-error  -interaction=nonstopmode -synctex=1 -recorder  "/home/arif/test/test.tex"'
------------
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(/home/arif/test/test.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-07-17>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)
(./test.aux) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux
) )</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></u
sr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/sha
re/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 30139 bytes).
SyncTeX written on test.synctex.gz.
Transcript written on test.log.
Latexmk: Log file says output to 'test.pdf'
=== TeX engine is 'pdfTeX'
Latexmk: All targets (test.pdf) are up-to-date
Rc files read:
  /etc/LatexMk
  /home/arif/.latexmkrc
Latexmk: This is Latexmk, John Collins, 17 Apr. 2020, version: 4.69a.
Latexmk: All targets (test.pdf) are up-to-date
Cancelling textDocument/hover(85) in hook after-change-functions
Cancelling textDocument/documentLink(93) in hook after-change-functions
Cancelling textDocument/documentLink(91) in hook after-change-functions
Cancelling textDocument/hover(96) in hook after-change-functions
Cancelling textDocument/hover(139) in hook after-change-functions
Cancelling textDocument/hover(174) in hook after-change-functions
Cancelling textDocument/hover(195) in hook after-change-functions
Cancelling textDocument/hover(196) in hook after-change-functions
Cancelling textDocument/hover(202) in hook after-change-functions
Cancelling textDocument/hover(203) in hook after-change-functions
Cancelling textDocument/hover(204) in hook after-change-functions
Cancelling textDocument/documentHighlight(212) in hook after-change-functions
Cancelling textDocument/documentLink(211) in hook after-change-functions
Cancelling textDocument/hover(210) in hook after-change-functions
Cancelling textDocument/hover(232) in hook after-change-functions
Cancelling textDocument/hover(241) in hook after-change-functions
Cancelling textDocument/documentLink(244) in hook after-change-functions
Cancelling textDocument/hover(243) in hook after-change-functions
Cancelling textDocument/hover(246) in hook after-change-functions
Cancelling textDocument/documentLink(256) in hook after-change-functions
Cancelling textDocument/hover(262) in hook after-change-functions
Cancelling textDocument/hover(311) in hook after-change-functions
Cancelling textDocument/documentHighlight(362) in hook after-change-functions
Cancelling textDocument/documentLink(361) in hook after-change-functions
Cancelling textDocument/documentHighlight(395) in hook after-change-functions
Cancelling textDocument/documentLink(394) in hook after-change-functions
Cancelling textDocument/documentLink(406) in hook after-change-functions
Cancelling textDocument/hover(440) in hook after-change-functions
Cancelling textDocument/hover(442) in hook after-change-functions
Cancelling textDocument/hover(443) in hook after-change-functions
Cancelling textDocument/documentLink(471) in hook after-change-functions
Cancelling textDocument/hover(479) in hook after-change-functions
Cancelling textDocument/hover(489) in hook after-change-functions
Cancelling textDocument/hover(491) in hook after-change-functions
Cancelling textDocument/hover(497) in hook after-change-functions
Cancelling textDocument/hover(498) in hook after-change-functions
Cancelling textDocument/hover(503) in hook after-change-functions
Cancelling textDocument/documentHighlight(501) in hook after-change-functions
Cancelling textDocument/documentLink(500) in hook after-change-functions
Command "~/.cargo/bin/texlab -vvvv --log-file texlab.log" is present on the path.
Command "digestif" is not present on the path.
Command "texlab" is not present on the path.
Command "~/.cargo/bin/texlab -vvvv --log-file texlab.log" is present on the path.
Command "digestif" is not present on the path.
Command "texlab" is not present on the path.
Found the following clients for /home/arif/test/test.tex: (server-id texlab2, priority 2)
The following clients were selected based on priority: (server-id texlab2, priority 2)
ROCKTAKEY commented 3 years ago

Could you post "texlab.log"?

md-arif-shaikh commented 3 years ago

This is what the "texlab.log" looks like

TRACE - Received message:
{"jsonrpc":"2.0","method":"initialize","params":{"processId":null,"rootPath":"/home/arif/test","clientInfo":{"name":"emacs","version":"GNU Emacs 27.1 (build 1, x86_64-conda-linux-gnu, X toolkit, Xaw scroll bars)\n of 2020-12-24"},"rootUri":"file:///home/arif/test","capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":true,"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true},"workspaceFolders":true,"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"resolveSupport":{"properties":["edit","command"]},"dataSupport":true},"completion":{"completionItem":{"snippetSupport":true,"documentationFormat":["markdown"],"resolveAdditionalTextEditsSupport":true},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":false},"publishDiagnostics":{"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":true}},"window":{"workDoneProgress":true}},"initializationOptions":null,"workDoneToken":"1"},"id":25}

TRACE - Sent message:
Content-Length: 593

{"jsonrpc":"2.0","result":{"capabilities":{"completionProvider":{"resolveProvider":true,"triggerCharacters":["\\","{","}","@","/"," "]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentSymbolProvider":true,"foldingRangeProvider":true,"hoverProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"textDocumentSync":{"change":1,"openClose":true,"save":{"includeText":false}},"workspaceSymbolProvider":true},"serverInfo":{"name":"TexLab","version":"2.2.2"}},"id":25}

TRACE - Received message:
{"jsonrpc":"2.0","method":"initialized","params":{}}

TRACE - Sent message:
Content-Length: 100

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":0}

TRACE - Received message:
{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"latex":{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}}}}

TRACE - Received message:
{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"bibtex":{"formatting":{"formatter":"texlab","lineLength":120}}}}}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex","languageId":"latex","version":0,"text":"\\documentclass{article}\n\\usepackage{amsmath}\n\n\\begin{document}\nThis is the pdf. This is now.\n\\begin{enumerate}\n\\item \n\\end{enumerate}\n\\begin{equation}\n  \\label{eq:est}\n  \\alpha + \\beta = \\gamma\n\\end{equation}\n\n\\section{Section}\n\\label{sec:section}\n\nThis is not a lie.\n\\begin{equation}\n  \\label{eq:new}\n  \\alpha + \\beta + \\gamma\n\\end{equation}\n\nss2\n\n\\end{document}\n"}}}

DEBUG - Adding document: file:///home/arif/test/test.tex
TRACE - Sent message:
Content-Length: 128

{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/arif/test/test.tex"}}

TRACE - Sent message:
Content-Length: 128

{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/arif/test/test.tex"}}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"}},"id":26}

DEBUG - Loading document: file:///home/arif/test/test.aux
TRACE - Sent message:
Content-Length: 100

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":1}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"},"position":{"line":11,"character":0}},"id":27}

TRACE - Sent message:
Content-Length: 100

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":2}

TRACE - Received message:
{"jsonrpc":"2.0","id":0,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":3}

TRACE - Received message:
{"jsonrpc":"2.0","id":1,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":4}

TRACE - Received message:
{"jsonrpc":"2.0","id":2,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":5}

TRACE - Received message:
{"jsonrpc":"2.0","id":3,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

DEBUG - Reparsing document: file:///home/arif/test/test.tex
DEBUG - Reparsing document: file:///home/arif/test/test.aux
INFO - Detected TeX distribution: TeXLive
TRACE - Received message:
{"jsonrpc":"2.0","id":4,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":26}

TRACE - Received message:
{"jsonrpc":"2.0","id":5,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":27}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/hover","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"},"position":{"line":11,"character":0}},"id":28}

TRACE - Sent message:
Content-Length: 100

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":6}

TRACE - Received message:
{"jsonrpc":"2.0","id":6,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":7}

TRACE - Received message:
{"jsonrpc":"2.0","id":7,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"}},"id":29}

TRACE - Sent message:
Content-Length: 100

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":8}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"},"position":{"line":11,"character":0}},"id":30}

TRACE - Sent message:
Content-Length: 100

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":9}

TRACE - Received message:
{"jsonrpc":"2.0","id":8,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":10}

TRACE - Received message:
{"jsonrpc":"2.0","id":9,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":11}

TRACE - Sent message:
Content-Length: 2216

{"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"![preview](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAd4AAAAiCAYAAADxubgVAAAFuElEQVR4nO3cgTEkTRiH8ZEBQkAECAERIAREgBAQAUJABAgBESAEZPB9+0xVV62untk22zU3u/v8qu7m7I7R03s1/37fmbul/0YqSZLUC4NXkqQeGbySJPXI4JUkqUcGryRJPTJ4JUkL7/v7uzo/P69ubm5GX/3d/f396PeqOjg4GP3ebmGC9/Lysvr6+qp+fn6ql5eX6ujoqDo+Ph69I0laZITuzs5O9fz8XK2srIxe6YbQPTw8rLdt5j54mVBC9vb29teEbm1t1a8bvpK02MiDi4uLand3d/RVGpUwFfHn5+evLIlxrLu7u2p9fX30VdrcBy/ByoTFqICZnNfX19FXkqRFRD5Q6YZW8TgqV7qka2tr9T6ELp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qixqDl8CloiWxx9vIvE4I8EAVlWM4MOFL9ZszoBQCt0TwsspgTIyPEw8YI+NjzEzgLGHsmLVxS9JQkTV0dXM7kuQg/89C03NPMbKQ255kUqwxeEHI0mIlEAMGSlUJ3qcFSsixT+oH5GISOAbbaTA2FgH8ovIlhNlybM6FyZg1zCudhZwPW5KUhzAlw8iNFF4nbKly2YJMoXMKuqepTCHHyMqmkG4N3j4xUMKRbVe0DpCzepklfHAsciRJ5XDLlC4otyFLmnTcwQQvCMwQnl2wOpnVqrYJgcuKrOkDlCR1R16U+Jc54yiWaDM33R4cVPBOi5YsK415wvnQKqd1Lkkqi2sswRuepZkWxSMFYFuxZPAOHOfE/81MN0CSVB7VLhVqiess1S4PbLFtMjfBS0uWm99Npf2sInjnbTEhSUPCs0U8JEzlS+u5K/KHW4Ns28xN8EqS1BXhS4u4a6ETWtWTQhcGryRJPTJ4JUnqkcErSVKPDF5Jknpk8EqS1KP/AR99BddDC7BnAAAAAElFTkSuQmCC)"},"range":{"end":{"character":14,"line":11},"start":{"character":0,"line":8}}},"id":28}

TRACE - Received message:
{"jsonrpc":"2.0","id":10,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":29}

TRACE - Received message:
{"jsonrpc":"2.0","id":11,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":30}

TRACE - Sent message:
Content-Length: 128

{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/arif/test/test.tex"}}

TRACE - Sent message:
Content-Length: 128

{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/arif/test/test.aux"}}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"}},"id":31}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":12}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"},"position":{"line":11,"character":0}},"id":32}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":13}

TRACE - Received message:
{"jsonrpc":"2.0","id":12,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":14}

TRACE - Received message:
{"jsonrpc":"2.0","id":13,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":15}

TRACE - Received message:
{"jsonrpc":"2.0","id":14,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":31}

TRACE - Received message:
{"jsonrpc":"2.0","id":15,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":32}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/forwardSearch","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"},"position":{"line":11,"character":0}},"id":33}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":16}

TRACE - Received message:
{"jsonrpc":"2.0","id":16,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":17}

TRACE - Received message:
{"jsonrpc":"2.0","id":17,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

ERROR - Unable to execute forward search: No such file or directory (os error 2)
TRACE - Sent message:
Content-Length: 47

{"jsonrpc":"2.0","result":{"status":2},"id":33}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/hover","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"},"position":{"line":11,"character":0}},"id":34}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":18}

TRACE - Received message:
{"jsonrpc":"2.0","id":18,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":19}

TRACE - Received message:
{"jsonrpc":"2.0","id":19,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"}},"id":35}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":20}

TRACE - Received message:
{"jsonrpc":"2.0","method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"file:///home/arif/test/test.tex"},"position":{"line":11,"character":0}},"id":36}

TRACE - Sent message:
Content-Length: 101

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"latex"}]},"id":21}

TRACE - Received message:
{"jsonrpc":"2.0","id":20,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":22}

TRACE - Received message:
{"jsonrpc":"2.0","id":21,"result":[{"lint":{"onSave":false,"onChange":false},"forwardSearch":{"args":["--eval","(lsp-latex-forward-search-with-pdf-tools \"%f\" \"%p\" \"%l\")"],"executable":"emacsclient"},"build":{"forwardSearchAfter":true,"outputDirectory":".","onSave":false,"args":["-pdf","-interaction=nonstopmode","-synctex=1","%f"],"executable":"latexmk"},"rootDirectory":"."}]}

TRACE - Sent message:
Content-Length: 102

{"jsonrpc":"2.0","method":"workspace/configuration","params":{"items":[{"section":"bibtex"}]},"id":23}

TRACE - Received message:
{"jsonrpc":"2.0","id":22,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":35}

TRACE - Received message:
{"jsonrpc":"2.0","id":23,"result":[{"formatting":{"formatter":"texlab","lineLength":120}}]}

TRACE - Sent message:
Content-Length: 37

{"jsonrpc":"2.0","result":[],"id":36}

TRACE - Sent message:
Content-Length: 2216

{"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"![preview](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAd4AAAAiCAYAAADxubgVAAAFuElEQVR4nO3cgTEkTRiH8ZEBQkAECAERIAREgBAQAUJABAgBESAEZPB9+0xVV62untk22zU3u/v8qu7m7I7R03s1/37fmbul/0YqSZLUC4NXkqQeGbySJPXI4JUkqUcGryRJPTJ4JUkL7/v7uzo/P69ubm5GX/3d/f396PeqOjg4GP3ebmGC9/Lysvr6+qp+fn6ql5eX6ujoqDo+Ph69I0laZITuzs5O9fz8XK2srIxe6YbQPTw8rLdt5j54mVBC9vb29teEbm1t1a8bvpK02MiDi4uLand3d/RVGpUwFfHn5+evLIlxrLu7u2p9fX30VdrcBy/ByoTFqICZnNfX19FXkqRFRD5Q6YZW8TgqV7qka2tr9T6ELp3TtuB9enqqA7otWwYVvKw2GHQphCvtA1YgMQKZlnPb5EiS5hshSqimcmIcIfzw8DAxeEG1SwXN96QMJnhpCbOqYFsCx2HVwWomhYnj/bOzs9FXkqRFQz5wGzKnACNEc4N30nHnNng5cY5HFR1jAldXV+t9JEmLiSqXh6FyCjByIzd4Pz4+qo2Njer9/b2ufmNZwUsYUjbT3ybM2DJYBlIKP4Njsy2BVjLBygScnJzUx6a1TL9+f3+/bkMPEePm3jOYY84hxr2IknMvSYuGrKEAe3x8TBZoMa65ucEL9iE3uabHJgYvpTIBwAH4wQEHjVu10wQCk0A4si2BkyW0OB4lP5PF8Vk0vL29Fb2XXALj5H40Y9vc3KwXCIyVJ685j3Hh3CRJ3ZABe3t7dTaQZ5OQbX8JXsJ8eXm5zsVYa/ASutvb29X19XV9sR9HxUjwhkEQBOxL6d4FwUMwsp0WVS4TNL4oGMd4WUjE59QknGsXTDwVLB9CGz5UVl/MY8D8E8bjN/4ZC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AAElFTkSuQmCC)"},"range":{"end":{"character":14,"line":11},"start":{"character":0,"line":8}}},"id":34}
ROCKTAKEY commented 3 years ago

ERROR - Unable to execute forward search: No such file or directory (os error 2) TRACE - Sent message: Content-Length: 47

Executable seems not to be found. Please make sure emacsclient in the PATH, or set full path.

md-arif-shaikh commented 3 years ago

I tried giving the full path for emacsclient. Unfortunately, the message is the same.

ROCKTAKEY commented 3 years ago

Hmm, so I have no idea.... I cannot come up with what file or command is "No such file or directory"...

Can I have your environment information (OS and any others you don't mind providing)? It might be useful for others or what we will be to resolve the issue.

md-arif-shaikh commented 3 years ago
Emacs version: GNU Emacs 27.1 (build 1, x86_64-conda-linux-gnu, X toolkit, Xaw scroll bars) of 2020-12-24
OS: Pop!_OS 20.10