-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
Fix editor config when an argument with a space is used #953
Conversation
I forgot that our editor mock hangs on Windows. Trying to decide if we should fix or skip. @micahellison can you look to see if it's a quick fix on Windows? |
I'm checking it out but I'm stumped. Travis hangs on When I run
OK, it fails for some reason I don't understand. But when I run
It sure looks like
I know that seems tangential, but maybe it's a clue? Not sure what to try from here but I'm open to any ideas. If there aren't any, maybe we should skip this on Windows and spin off a new issue to get this fixed down the road. |
Oh, wow, that looks like a whole big can of worms. 🐛 Maybe it's an issue with behave? Maybe it's our setup? Either way, I'll just skip this on Windows for now. Thanks for looking into it! |
fb9fe89
to
551d751
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sad we can't get these two tests running in Windows Travis but I removed @skip_win locally and confirmed that they are successfully running on Windows 10. Otherwise, everything looks great.
* Fix editor config when an argument with a space is used * skip broken test on windows * fix jrnl not behaving nicely with testing suite * fix argument parsing for test suite * fix one windows test, disable one windows test
Fixes #581
When the 'editor' key in the config contains an argument with a space, it used
to be parsed incorrectly. The example given in the linked issue is
vim -f -c 'setf markdown'
, which would have'setf
andmarkdown'
parsed as twoseparate arguments. There was a partial fix implemented, but it left out mac
users due to a faulty platform check.
This fixes those problems and adds a test to confirm.
Checklist
poetry run behave
black (consistent code styling). --
poetry run black --check . --verbose --diff
(logically errors and unused imports). --
poetry run pyflakes jrnl features
Pull Requests for the same update/change?
us to include them?