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

Make Pymacs compatible with remote Python interpreters #32

Open
matthewlmcclure opened this issue Jul 8, 2012 · 5 comments
Open

Make Pymacs compatible with remote Python interpreters #32

matthewlmcclure opened this issue Jul 8, 2012 · 5 comments

Comments

@matthewlmcclure
Copy link

I'd like to be able to set a directory local value of pymacs-python-command, open that directory via TRAMP, and have Pymacs use a Python interpreter executing on a remote machine.

I started changing pymacs.el by trial and error here: https://github.com/matthewlmcclure/Pymacs/commits/master.

If you see low hanging fruit to make this work, I'd love your input.

@leoliu
Copy link
Contributor

leoliu commented Jul 9, 2012

Could you try replacing start-process with start-file-process in pymacs.el and see if it works for you?

@matthewlmcclure
Copy link
Author

I'm able to (pymacs-load "ropemacs" "rope-") after changing start-process to start-file-process.

@leoliu
Copy link
Contributor

leoliu commented Jul 30, 2012

Thanks for the confirmation. I wonder if you can run the unit tests in Pymacs to verify none is broken, which will convince François to merge the change.

@tkf
Copy link
Contributor

tkf commented Jul 30, 2012

FYI, there is another new rope client which works via XMLRPC. I guess it works with rope running in remote host.
https://github.com/abingham/traad

@matthewlmcclure
Copy link
Author

I'm working on slightly different path now. I'm using https://github.com/matthewlmcclure/tramp-virtualenv to change remote virtualenvs and update the remote PATH when I change buffers. That eliminates the need to use a custom python command for most simple use cases.

I made one brief attempt to use Rope over TRAMP that way, and it broke because some participant in the interaction passed a TRAMP file path to the remote Python interpreter. I think I need to provide a file path mapping capability.

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

3 participants