Re: Remote LSP unable to find texlab server
Riccardo Romoli writes: > Michael, Hi Riccardo, > I've been able to solve the issue...even if I do not > understand why...I removed and re-installed some packages, cleared all > the connections and rebooted both my local machine than the severe a > couple of times... Thanks for helping me to understand the log file of > tramp, and to better understand how it works. Good, so there's nothing left to do for me. > All the best, Riccardo Best regards, Michael.
Re: Remote LSP unable to find texlab server
Michael, I've been able to solve the issue...even if I do not understand why...I removed and re-installed some packages, cleared all the connections and rebooted both my local machine than the severe a couple of times... Thanks for helping me to understand the log file of tramp, and to better understand how it works. All the best, Riccardo On Mon, Feb 12, 2024 at 9:47 AM Riccardo Romoli wrote: > Good morning Michael, > I visit the remote tex file via 'C-x C-f /ssh:erre:..tex'. Comparing > your debug log with mine seems my emacs/tamp do not search in ~/.cargo: > > --- > 10:29:32.724178 tramp-send-command (6) # while read d; do if test -x $d/hg > && test -f $d/hg; then echo tramp_executable $d/hg; break; fi; done > <<'709535ceb003c9341d5842e0518f92dd' > /bin > /usr/bin > /sbin > /usr/sbin > /usr/local/bin > /usr/local/sbin > 709535ceb003c9341d5842e0518f92dd > --- > > Seems emacs/tramp do not include the ~/.cargo to the exec path. I can not > understand why... > > Best Regards, Riccardo > > > On Fri, Feb 9, 2024 at 12:19 PM Michael Albinus > wrote: > >> Riccardo Romoli writes: >> >> > Good morning Michael, >> >> Hi Riccardo, >> >> > Did you really start with emacs -Q, and have sent >> > the *whole* log? >> > >> > I'm not an expert emacs user so it has been quite difficult to be able >> > to run the command you suggested without errors. Due to the spacemacs >> > layers config, to loar lsp-mode I wrote a specific init.el file and >> > ran emacs -Q -l my-specific-init-el. >> >> I've adapted your my-specific-init-el to my needs, It is almost >> identical to your version except some load paths: >> >> --8<---cut here---start->8--- >> (add-to-list 'load-path >> "/home/albinus/.emacs.d/elpa/lsp-mode-20240204.835") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/dash-20240103.1301") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/f-20231219.750") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/s-20220902.1511") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/ht-20230703.558") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/lv-0.15.0") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/markdown-mode-2.6") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/spinner-1.7.4") >> (add-to-list 'load-path >> "/home/albinus/.emacs.d/elpa/lsp-latex-20231104.313") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/consult-1.2") >> (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/compat-29.1.4.4") >> --8<---cut here---end--->8--- >> >> This shouldn't matter. Then I've opened Emacs as specified by you, >> 'emacs -Q -l my-specific-init-el'. >> >> > First of all I try to open a local latex file to check if lsp works >> > using this configuration file. >> >> I haven't done so, because I don't know whether lsp-mode caches >> something. Please do the same, and test directly with the remote file. >> >> > Then I open the remote latex file and manually load lsp (M-x >> > lsp-mode). >> >> I've done also via 'C-x C-f /ssh:ubuntu-2204:Downloads/paper.tex'. I >> didn't need to activate lsp-mode, it started automatically. From the >> *Messages* buffer: >> >> --8<---cut here---start->8--- >> Tramp: Inserting ‘/ssh:ubuntu-2204:/home/admin/Downloads/paper.tex’...done >> LSP :: The following servers support current file but do not have >> automatic installation: texlab-tramp digestif-tramp >> You may find the installation instructions at >> https://emacs-lsp.github.io/lsp-mode/page/languages. >> (If you have already installed the server check *lsp-log*). >> --8<---cut here---end--->8--- >> >> And the *lsp-log* buffer contains >> >> --8<---cut here---start->8--- >> Command "texlab" is not present on the path. >> Command "digestif" is not present on the path. >> Command "texlab" is not present on the path. >> Command "digestif" is not present on the path. >> --8<---cut here---end--->8--- >> >> No surprise, because I haven't installed them on the remote side. >> >> However, the *debug tramp/ssh ubuntu-2204* buffer contains the whole >> Tramp history, starting with establishing the connection and visiting my >> LaTeX example file /ssh:ubuntu-2204:/home/admin/Downloads/paper.tex. It >> also tries to set the remote environment properly, including the >> directory ~/.cargo/bin (which doesn't exist, of course). >> >> --8<---cut here---start->8--- >> 12:53:23.996234 tramp-send-command (6) # tramp_bundle_read_file_names >> <<'c63857ea2e20ce04703cfe09646c9fbe' >> ~/.cargo/bin >> /bin >> /usr/bin >> /sbin >> /usr/sbin >> /usr/local/bin >> /usr/local/sbin >> /local/bin >> /local/freeware/bin >> /local/gnu/bin >> /usr/freeware/bin >> /usr/pkg/bin >> /usr/contrib/bin >> /opt/bin >> /opt/sbin >>
Re: Remote LSP unable to find texlab server
Good morning Michael, I visit the remote tex file via 'C-x C-f /ssh:erre:..tex'. Comparing your debug log with mine seems my emacs/tamp do not search in ~/.cargo: --- 10:29:32.724178 tramp-send-command (6) # while read d; do if test -x $d/hg && test -f $d/hg; then echo tramp_executable $d/hg; break; fi; done <<'709535ceb003c9341d5842e0518f92dd' /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin 709535ceb003c9341d5842e0518f92dd --- Seems emacs/tramp do not include the ~/.cargo to the exec path. I can not understand why... Best Regards, Riccardo On Fri, Feb 9, 2024 at 12:19 PM Michael Albinus wrote: > Riccardo Romoli writes: > > > Good morning Michael, > > Hi Riccardo, > > > Did you really start with emacs -Q, and have sent > > the *whole* log? > > > > I'm not an expert emacs user so it has been quite difficult to be able > > to run the command you suggested without errors. Due to the spacemacs > > layers config, to loar lsp-mode I wrote a specific init.el file and > > ran emacs -Q -l my-specific-init-el. > > I've adapted your my-specific-init-el to my needs, It is almost > identical to your version except some load paths: > > --8<---cut here---start->8--- > (add-to-list 'load-path > "/home/albinus/.emacs.d/elpa/lsp-mode-20240204.835") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/dash-20240103.1301") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/f-20231219.750") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/s-20220902.1511") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/ht-20230703.558") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/lv-0.15.0") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/markdown-mode-2.6") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/spinner-1.7.4") > (add-to-list 'load-path > "/home/albinus/.emacs.d/elpa/lsp-latex-20231104.313") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/consult-1.2") > (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/compat-29.1.4.4") > --8<---cut here---end--->8--- > > This shouldn't matter. Then I've opened Emacs as specified by you, > 'emacs -Q -l my-specific-init-el'. > > > First of all I try to open a local latex file to check if lsp works > > using this configuration file. > > I haven't done so, because I don't know whether lsp-mode caches > something. Please do the same, and test directly with the remote file. > > > Then I open the remote latex file and manually load lsp (M-x > > lsp-mode). > > I've done also via 'C-x C-f /ssh:ubuntu-2204:Downloads/paper.tex'. I > didn't need to activate lsp-mode, it started automatically. From the > *Messages* buffer: > > --8<---cut here---start->8--- > Tramp: Inserting ‘/ssh:ubuntu-2204:/home/admin/Downloads/paper.tex’...done > LSP :: The following servers support current file but do not have > automatic installation: texlab-tramp digestif-tramp > You may find the installation instructions at > https://emacs-lsp.github.io/lsp-mode/page/languages. > (If you have already installed the server check *lsp-log*). > --8<---cut here---end--->8--- > > And the *lsp-log* buffer contains > > --8<---cut here---start->8--- > Command "texlab" is not present on the path. > Command "digestif" is not present on the path. > Command "texlab" is not present on the path. > Command "digestif" is not present on the path. > --8<---cut here---end--->8--- > > No surprise, because I haven't installed them on the remote side. > > However, the *debug tramp/ssh ubuntu-2204* buffer contains the whole > Tramp history, starting with establishing the connection and visiting my > LaTeX example file /ssh:ubuntu-2204:/home/admin/Downloads/paper.tex. It > also tries to set the remote environment properly, including the > directory ~/.cargo/bin (which doesn't exist, of course). > > --8<---cut here---start->8--- > 12:53:23.996234 tramp-send-command (6) # tramp_bundle_read_file_names > <<'c63857ea2e20ce04703cfe09646c9fbe' > ~/.cargo/bin > /bin > /usr/bin > /sbin > /usr/sbin > /usr/local/bin > /usr/local/sbin > /local/bin > /local/freeware/bin > /local/gnu/bin > /usr/freeware/bin > /usr/pkg/bin > /usr/contrib/bin > /opt/bin > /opt/sbin > /opt/local/bin > c63857ea2e20ce04703cfe09646c9fbe > --8<---cut here---end--->8--- > > And it tries to find the texlab program, which doesn't exist also: > > --8<---cut here---start->8--- > 12:53:27.189448 tramp-send-command (6) # test -x /bin/texlab 2>/dev/null; > echo tramp_exit_status $? > 12:53:27.194125 tramp-wait-for-regexp (6) # > tramp_exit_status 1 > ///fb9a9b64230e6c3eb974787de9dfacf6#$ > 12:53:27.194641 tramp-send-command (6) # test -x /usr/bin/texlab >
Re: Remote LSP unable to find texlab server
Riccardo Romoli writes: > Good morning Michael, Hi Riccardo, > Did you really start with emacs -Q, and have sent > the *whole* log? > > I'm not an expert emacs user so it has been quite difficult to be able > to run the command you suggested without errors. Due to the spacemacs > layers config, to loar lsp-mode I wrote a specific init.el file and > ran emacs -Q -l my-specific-init-el. I've adapted your my-specific-init-el to my needs, It is almost identical to your version except some load paths: --8<---cut here---start->8--- (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/lsp-mode-20240204.835") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/dash-20240103.1301") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/f-20231219.750") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/s-20220902.1511") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/ht-20230703.558") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/lv-0.15.0") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/markdown-mode-2.6") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/spinner-1.7.4") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/lsp-latex-20231104.313") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/consult-1.2") (add-to-list 'load-path "/home/albinus/.emacs.d/elpa/compat-29.1.4.4") --8<---cut here---end--->8--- This shouldn't matter. Then I've opened Emacs as specified by you, 'emacs -Q -l my-specific-init-el'. > First of all I try to open a local latex file to check if lsp works > using this configuration file. I haven't done so, because I don't know whether lsp-mode caches something. Please do the same, and test directly with the remote file. > Then I open the remote latex file and manually load lsp (M-x > lsp-mode). I've done also via 'C-x C-f /ssh:ubuntu-2204:Downloads/paper.tex'. I didn't need to activate lsp-mode, it started automatically. From the *Messages* buffer: --8<---cut here---start->8--- Tramp: Inserting ‘/ssh:ubuntu-2204:/home/admin/Downloads/paper.tex’...done LSP :: The following servers support current file but do not have automatic installation: texlab-tramp digestif-tramp You may find the installation instructions at https://emacs-lsp.github.io/lsp-mode/page/languages. (If you have already installed the server check *lsp-log*). --8<---cut here---end--->8--- And the *lsp-log* buffer contains --8<---cut here---start->8--- Command "texlab" is not present on the path. Command "digestif" is not present on the path. Command "texlab" is not present on the path. Command "digestif" is not present on the path. --8<---cut here---end--->8--- No surprise, because I haven't installed them on the remote side. However, the *debug tramp/ssh ubuntu-2204* buffer contains the whole Tramp history, starting with establishing the connection and visiting my LaTeX example file /ssh:ubuntu-2204:/home/admin/Downloads/paper.tex. It also tries to set the remote environment properly, including the directory ~/.cargo/bin (which doesn't exist, of course). --8<---cut here---start->8--- 12:53:23.996234 tramp-send-command (6) # tramp_bundle_read_file_names <<'c63857ea2e20ce04703cfe09646c9fbe' ~/.cargo/bin /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin /local/bin /local/freeware/bin /local/gnu/bin /usr/freeware/bin /usr/pkg/bin /usr/contrib/bin /opt/bin /opt/sbin /opt/local/bin c63857ea2e20ce04703cfe09646c9fbe --8<---cut here---end--->8--- And it tries to find the texlab program, which doesn't exist also: --8<---cut here---start->8--- 12:53:27.189448 tramp-send-command (6) # test -x /bin/texlab 2>/dev/null; echo tramp_exit_status $? 12:53:27.194125 tramp-wait-for-regexp (6) # tramp_exit_status 1 ///fb9a9b64230e6c3eb974787de9dfacf6#$ 12:53:27.194641 tramp-send-command (6) # test -x /usr/bin/texlab 2>/dev/null; echo tramp_exit_status $? 12:53:27.199189 tramp-wait-for-regexp (6) # tramp_exit_status 1 ///fb9a9b64230e6c3eb974787de9dfacf6#$ 12:53:27.199697 tramp-send-command (6) # test -x /sbin/texlab 2>/dev/null; echo tramp_exit_status $? 12:53:27.202264 tramp-wait-for-regexp (6) # tramp_exit_status 1 ///fb9a9b64230e6c3eb974787de9dfacf6#$ 12:53:27.202781 tramp-send-command (6) # test -x /usr/sbin/texlab 2>/dev/null; echo tramp_exit_status $? 12:53:27.204749 tramp-wait-for-regexp (6) # tramp_exit_status 1 ///fb9a9b64230e6c3eb974787de9dfacf6#$ 12:53:27.205256 tramp-send-command (6) # test -x /usr/local/bin/texlab 2>/dev/null; echo tramp_exit_status $? 12:53:27.207197 tramp-wait-for-regexp (6) # tramp_exit_status 1 ///fb9a9b64230e6c3eb974787de9dfacf6#$ 12:53:27.207725 tramp-send-command (6) # test -x /usr/local/sbin/texlab 2>/dev/null;
Re: Remote LSP unable to find texlab server
Riccardo Romoli writes: > Hi Michael, Hi Riccardo, > I tried your suggestion but nothing changed. I started a new emacs, > cleared the tramp cache but again the same issue. I attached the log > as you requested, hoping this could help. Let me know. The log looks strange. - It is incomplete. Did you really start with emacs -Q, and have sent the *whole* log? - It contains helm backtraces. This makes it harder to analyze, so pls don't use helm for the test. - It contains file notification activities. Pls don't activate them while testing. - It doesn't show any remote process invocation. Did you start the remote lsp server? - You didn't send me the steps how to produce the log. I've asked for this, in order to reproduce locally. > Best regards, Riccardo Best regards, Michael.