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

rubocop-check-... and rubcop-autocorrect-... commands don't work if the path contains spaces #41

Open
stormwatch opened this issue Jul 19, 2022 · 1 comment

Comments

@stormwatch
Copy link

stormwatch commented Jul 19, 2022

The first argument passed to compilation-start ends up being somthing like:

bundle exec rubocop --format emacs /a/path/with spaces/something.rb

One solution would be to write quotation marks around the path:

bundle exec rubocop --format emacs "/a/path/with spaces/something.rb"

I am not sure about where to fix it, but probably involves wrapping some expresion inside shell-quote-argument.

Maybe here?

@stormwatch
Copy link
Author

Probably related to #32

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

1 participant