-
Notifications
You must be signed in to change notification settings - Fork 38
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 it work under Windows #30
Comments
Thank you for offering, @p3r7. What can you tell me about how vagrant-tramp works under Windows? If you're in a shell:
I'm looking forward to getting this working on Windows. It would be nice to try it with the new Bash for Windows as soon as possible, too. |
I just tried installing from melpa using windows and it fails creating the autoloads. It looks like the problem is
Simply removing the executable-find seems to work fine, is it necessary since there is only the one file in /bin anyhow? |
No, that |
Removing that makes the melpa install work fine, but I still couldn't get the script to work correctly using mingw port of bash -- not sure why exactly I was going to try to isolate the problem tomorrow and maybe implement in elisp so there would be no portability issues. All the command line vagrant stuff you mention above works the same on windows as far as I can tell. |
Tramp is rather inflexible in how it invokes the connection program. If we use There are three ways I could think of to get around that:
I went with the first option since it's the one I could implement for myself without needing to get agreement from the Vagrant or Emacs upstream communities. In the long term I think that either 2 or 3 are ultimately better options for portability and simplicity of What do you think? |
Yea, having a solution without an additional wrapper script sounds best, but I can't offer a solution. I will try to look closely at the code and learn me some elisp when I can. I had to spend a while to understand your awk script, so I am not likely to be useful in improving your bash script. Perhaps, if you want the wrapper to work on windows as well there could be a parallel batch script? I don't know, if I come up with something I will post it. |
Note that there's a new version of the wrapper script that I introduced in #31. The previous script gave problems on many platforms, not just Windows. |
I've just tested the script |
@p3r7 thanks for testing that out. A couple more questions for you: Is anything printed to the Are you able to use Alt-x |
I'm very pleased to discover that M-x Please note that I have a setup where cygwin's bin folders get added to emacs' PATH at startup, so that might be why I can launch a term window (see https://github.com/p3r7/emacs.d/blob/master/init/components/init-cygwin-integration.el for full implementation). I don't have completion when I M-x When I explicitely do a M-x Indeed, MS Windows searches for files with extensions sur as .exe, .bat ... I guess we'd need a windows equivalent to script vagrant-tramp-ssh, or a wrapper around it that would call it via cygwin's bash. |
Hi: |
This mode works great, except it doesn't play nice under Microsoft Windows, even when a cygwin installation as been performed.
It would be great to make it work, as both Emacs and Vagrant are pretty much OS-agnostic solutions.
I'd be ready to give a hand, with my limited knowledge.
The text was updated successfully, but these errors were encountered: