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

Files with spaces in their name are not parsed correctly #145

Closed
benmccormick opened this issue May 30, 2015 · 9 comments
Closed

Files with spaces in their name are not parsed correctly #145

benmccormick opened this issue May 30, 2015 · 9 comments

Comments

@benmccormick
Copy link

When seeing file paths that have a space in them (yes clearly not ideal), fpp cuts off early or starts partway through

1__scratchworkspace___users_ben_code_windsor_wcui_dev_src_wcui__tmux__and_new_issue_ _facebook_pathpicker

This is with fpp version 0.5.7.

This image also shows the hyphenated extensions issue from #144

@pcottle
Copy link
Contributor

pcottle commented May 31, 2015

Can you try using 0.6.0 by any chance? We added filesystem validation:
https://github.com/facebook/PathPicker/releases/tag/0.6.0

So we can actually parse files with spaces in them now :) You should be able to upgrade via brew since thats the latest version:
https://github.com/Homebrew/homebrew/blob/master/Library/Formula/fpp.rb

Or just clone the repo and do brew install ./fpp.rb

@pcottle
Copy link
Contributor

pcottle commented May 31, 2015

The hyphens stuff will be easy to add, thats just a regex change.

closing this out since im pretty sure we have files with spaces working, but reopen if you can repro on 0.6

@pcottle pcottle closed this as completed May 31, 2015
@benmccormick
Copy link
Author

Ah, I checked to see if there was a newer version but forgot to call brew update first.

Unfortunately the file system validation seems to remove the false positives but not actually correctly identify that the file with a space in it exists.

2__dotfiles__find__pwd___ack_package___fpp__bash_

@pcottle
Copy link
Contributor

pcottle commented Jun 1, 2015

Are you talking about the Package Control.user-ca-bundle files? In order for those to parse, we need both spaces //and// hyphen support, and I just landed the hyphen support in that other task. so try installing from master! should work then. probably will update homebrew by EOW

@benmccormick
Copy link
Author

None of the files above were selectable except the bottom one. Does the hyphen issue effect hyphens in folders as well as extensions? If not I'd expect sublime/user-packages/Package Control.cache to work.

Update: Confirmed that this issue persists on master.

Sorry for the pain. Sublime configuration files are admittedly an awful hodge-podge of edge cases for this type of thing.

@pcottle
Copy link
Contributor

pcottle commented Jun 1, 2015

Ah dang ok I'll take another look at this then

@pcottle pcottle reopened this Jun 1, 2015
@pcottle
Copy link
Contributor

pcottle commented Jun 1, 2015

Ah this was easy to fix -- just needed to allow extensions to have hyphens in the regex that allows spaces :O woof. #149 should go in clean and then we are good!

@pcottle pcottle closed this as completed in 896bec1 Jun 1, 2015
pcottle added a commit that referenced this issue Jun 1, 2015
Resolves #145 Allow combining hyphes and spaces and everything
@benmccormick
Copy link
Author

Confirmed that this all looks good now on master. Thanks! I'm excited about this project and have been enjoying using it.

@pcottle
Copy link
Contributor

pcottle commented Jun 4, 2015

Great to hear @benmccormick ! 😍 feel free to drop by and open issues in the future for other bugs / improvements

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