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

Overwrites spec files white space if using Whitespace package #102

Open
lacostenycoder opened this issue Mar 15, 2017 · 1 comment
Open

Comments

@lacostenycoder
Copy link

When I run the spec with the keyboard shortcuts, it runs the spec but it's modifying the actual spec file. Here's a screen shot from the git diff of what changed, it appears to add and delete a blank line:

screen shot 2017-03-15 at 11 10 18 am

Apparently running spec on a file triggers a save on the current file. I tested with disable whitespace package and didn't get this behavior. Not sure if this is by design but it would be nice if there were a setting to disable auto-saving a file, thought I guess that's useful too. Can that be an option? It's a habit for me to save a file's changes before trying to run it 😁 . However, I don't need to save a file I have not changed. Maybe git diff the file before deciding it needs a save?

@moxley
Copy link
Owner

moxley commented Mar 28, 2017

@lacostenycoder I think the best solution is to not auto-save the file if there are no changes. No need for a new setting, and everybody should be happy.

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