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

Support vagrant box #31

Closed
RenWenshan opened this issue Jun 2, 2014 · 1 comment
Closed

Support vagrant box #31

RenWenshan opened this issue Jun 2, 2014 · 1 comment

Comments

@RenWenshan
Copy link

Hi,

I have a few vagrant boxes running on Debian, each of these vagrant boxes contains a Rails project. I edit source code files in the shared folders from the host (aka Debian).

It seems to me that robe sever runs locally and therefore can't provide completion and doc lookup in my case. Any workaround?

Regards,
Wenshan

@dgutov
Copy link
Owner

dgutov commented Jun 2, 2014

The two options that should work now:

  • Run Emacs in a terminal within the Vagrant box.
  • Run it within the Vagrant box graphically, exporting the X display to use the host machine. Should be straightforward if the host is also GNU/Linux, otherwise you could use something like Xming.

Aside from these, the main alternative would be to work over Tramp (#30), but we're not there yet.

If you're fine with setting the infrastructure manually, you could copy the Ruby part of Robe to the box you're developing in, and then in there load the project in a REPL, add Robe to LOAD_PATH, require it and start the server (basically what robe-start does). Also redefine robe-request to use the remote IP instead of 127.0.0.1, and try robe-start. After some tinkering, this will probably work, but the "jump to definition" feature will definitely be broken.

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

No branches or pull requests

2 participants