Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Spaces in path names cause makefile to fail #236

Open
drgrib opened this issue Feb 5, 2017 · 3 comments
Open

Spaces in path names cause makefile to fail #236

drgrib opened this issue Feb 5, 2017 · 3 comments

Comments

@drgrib
Copy link

drgrib commented Feb 5, 2017

If there is a space in the path to grumpy, there will be a long chain of errors of the type found here on make:

IOError: [Errno 2] No such file or directory: 'grumpyTest/grumpy/third_party/stdlib:/Users/credford/Dropbox/Years/__2017/__Scripts/Professional/8'
build/src/grumpy/lib/itertools/module.go:4: can't find import: "grumpy/lib/_collections"
make: *** [build/pkg/darwin_amd64/grumpy/lib/itertools.a] Error 1

Specifically, the makefile is transforming the path from

/Users/credford/Dropbox/Years/__2017/__Scripts/Professional/8 grumpyTest/grumpy/third_party/stdlib

(notice the space after the 8) to

grumpyTest/grumpy/third_party/stdlib:/Users/credford/Dropbox/Years/__2017/__Scripts/Professional/8

Changing the name of the offending folder from 8 grumpyTest to 8-grumpyTest relieved the error. You may want to make your makefile more robust for spaces in paths, though.

@vbmade2000
Copy link

@drgrib Can you share the steps to reproduce same issue ?

@drgrib
Copy link
Author

drgrib commented Mar 25, 2017

@vbmade2000 I wish I could. It has been a long time since I used Grumpy and I have switched the language of my project to Go.

I can tell you that the only step required to reproduce that I think is important is that Grumpy is unzipped to a directory that has spaces in the name of one of the parent folders and then to call make on the primary Grumpy directory.

@vbmade2000
Copy link

I see. I'll try to reproduce same.

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

No branches or pull requests

2 participants