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

Using RTags with Tramp #1240

Closed
chughtapan opened this issue Oct 23, 2018 · 6 comments
Closed

Using RTags with Tramp #1240

chughtapan opened this issue Oct 23, 2018 · 6 comments
Projects

Comments

@chughtapan
Copy link

chughtapan commented Oct 23, 2018

Is your feature request related to a problem? Please describe.
My code is on a remote VM and all the development happens on that machine. I currently ssh into the machine and open up emacs and use RTags. RTags does not work if I open the project using TRAMP.

Describe the solution you'd like
I would like to use RTags in the above-mentioned scenario. I tried setting rtags-tramp-enabled and adding the path to my tramp-remote-path. However, I get an error saying that the server cannot be started.

Additional context
I looked into the code a bit. rtags-executable-find returns just the executable name if tramp is enabled here . However, when starting the server - in rtags-start-server-unless-running the check fails here

Unfortunately, I don't have significant knowledge of elisp. If someone can guide me a bit around this, I can write the fixes for this.

Thanks,
Tapan

@vibrys
Copy link
Contributor

vibrys commented Nov 8, 2018

is the directory where rdm resides on remote machine added to tramp-remote-path variable?
Did You install binary part of rtags (rdm, rc) onto remote machine at all?

Please see #546 for background.

@chughtapan
Copy link
Author

Yes, as I mentioned above, I installed rtags on the remote machine and added the path to tramp-remote-path variable

@vibrys
Copy link
Contributor

vibrys commented Nov 15, 2018

  1. does rc --help produce any meaningfull output when run from any remote buffer?ma
  2. what if You open up a shell (not necessarilly from emacs) and run rdm there manually?

I've reincarnated the environment, run rdm successfully. also compilation indexed the project (I'm using wrapper shell script to index it), but when trying to browse the remote code I'm experiencing problem around rtags-trampify function. I'll be woring with that issue. I'm using emacs 25.x.

please let me know how far You did go

@chughtapan
Copy link
Author

chughtapan commented Dec 6, 2018

Hi,
Sorry for the late reply.
Here's what I can reproduce -
0. Installed the latest version of rtags on my local machine

  1. Started rdm on the remote machine and indexed the project there
  2. Opened a remote file using tramp. Tried running rc --help and verified it works. I also ran rc --dump-compile-commands as a shell command from the remote buffer and it works too

However, I still cannot browse through my code. I tried using rtags-find-symbol or rtags-find-references, I just get "RTags: No results"
I checked the rdm output but it did not seem to receive the query

@vibrys
Copy link
Contributor

vibrys commented Jan 20, 2019

did You pass any arguments to rdm binary during startup (socket-file or so)?

If rc produces meaningfull output when run from remote buffer and You run rdm on the remote machine, the problem seems to be with communication between remote rc and remote rdm and it probably has nothing common with rtags elisp part.

please try to issue any rc command that will query rdm, when logged in to remote machine.

looking at *RTags Log* after adding the following command to ~/.emacs + emacs restart should help to build any meaningful rc command:

(setq rtags-rc-log-enabled t)

@casch-at casch-at added this to TODO in Lisp Mar 7, 2019
@chughtapan
Copy link
Author

Tried this again and it works without any issues.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Lisp
  
TODO
Development

No branches or pull requests

2 participants