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

Error when vim files are in a path with spaces #89

Closed
wezm opened this issue Jul 10, 2016 · 10 comments
Closed

Error when vim files are in a path with spaces #89

wezm opened this issue Jul 10, 2016 · 10 comments

Comments

@wezm
Copy link

wezm commented Jul 10, 2016

I store my vim files in Dropbox. The path has spaces and brackets in it (Note that the Dropbox (Personal) bit wasn't my choice. When you add a Dropbox for business account they rename the Dropbox folder to this and add a Dropbox (Business) one). Whilst everything else works with this arrangement, vimagit does not:

Error detected while processing /Users/wmoore/Dropbox (Personal)/Dot Files/vim/plugged/vimagit/plugin/magit.vim:
line   18:
E172: Only one file name allowed: source /Users/wmoore/Dropbox (Personal)/Dot Files/vim/plugged/vimagit/plugin/../common/magit_common.vim
@jreybert
Copy link
Owner

Gasp, I think the test suite tests that staged file with space are well handled, but I don't think I test repository path with white spaces...

I'll give it a look, thanks.

@jreybert jreybert added the bug label Jul 11, 2016
@wezm
Copy link
Author

wezm commented Jul 11, 2016

Note this isn't about the repository path having spaces it's vim's configuration files being in a location with spaces in it. In this case Vimagit errors out when opening vim.

On 11 Jul 2016, at 6:45 PM, Jérôme Reybert notifications@github.com wrote:

Gasp, I think the test suite tests that staged file with space are well handled, but I don't think I test repository path with white spaces...

I'll give it a look, thanks.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@jreybert
Copy link
Owner

I misread it. Thanks for the tip.

@jreybert
Copy link
Owner

Arh, it's been such a pain to reproduce your setup! Spaces should be forbidden, everywhere! :)

Could you try the branch next, and let me know if it fixes your problem?

Thanks for the issue.

@wezm
Copy link
Author

wezm commented Oct 12, 2016

Yeah it was a terrible choice by Dropbox to not only include spaces but brackets as well. I'll give it a try when I have a moment. Might not be until the weekend.

@jreybert
Copy link
Owner

No problem, you waited 3 months, I can wait too :)

@jreybert
Copy link
Owner

Could you confirm it has fixed your problem before I merge it into master.

@wezm
Copy link
Author

wezm commented Oct 20, 2016

It gets further (vim loads without error) but doesn't look like it's entirely fixed:

Error detected while processing function magit#show_magit[11]..magit#git#is_work_tree[11]..magit#utils#lcd:
line    1:
E172: Only one file name allowed: cd /Users/wmoore/Dropbox (Personal)/Dot Files
Error detected while processing function magit#show_magit:
line   11:
E170: Missing :endfor
Press ENTER or type command to continue

This happened when running :Magit when :pwd is /Users/wmoore/Dropbox (Personal)/Dot Files, which is a git repo.

@jreybert
Copy link
Owner

jreybert commented Oct 20, 2016

I believe this is now fixed in banch next.

All tests in integration are done with the tested repository path containing spaces.

Last flow in integration is that vimagit path does not contain space.

Thanks for your feedback!

@wezm
Copy link
Author

wezm commented Oct 25, 2016

Yep working now 👍 Thanks.

On 20 Oct 2016, at 7:38 PM, Jérôme Reybert notifications@github.com wrote:

I believe this is now fixed.

All tests in integration are done with the tested repository path containing spaces.

Last flow in integration is that vimagit path does not contain space.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #89 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AABVG05613_WfRRNrdR6MrLh9mStM6qiks5q1yiKgaJpZM4JI7Vx.

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

No branches or pull requests

2 participants