Close file handle before passing edit's tempfile to editor.#416
Close file handle before passing edit's tempfile to editor.#416minchinweb wants to merge 1 commit intojrnl-org:masterfrom
Conversation
|
Will this ever get merged or is there some conflict for doing it this way? |
Pull request jrnl-org#416 from MinchinWeb
|
Also looking to see if this is going to get merged... |
|
bump |
|
This looks like a great fix, and we'd love to merge it. Would you mind resolving the merge conflict? |
|
@wren Will do! |
# Conflicts: # jrnl/util.py
4f5fc3f to
64d9b1b
Compare
|
@wren: the pull request has been recreated and passes the test suite. I'm don't think there was a test in place for this particular issue. |
|
@minchinweb It looks like this was maybe already fixed by another pr? Sorry for the back and forth, but I hadn't seen the other one when I commented here. Is there some reason the |
|
@wren: yes, this is almost identical to #564, except that that one got applied to the 1.9.x branch, but has never been merged into the 2.0 branch; this one applies directly to the 2.0 branch. So this should be applied to the 2.0 branch, or #564 should be cherry-picked to the 2.0 branch. As for the location of closing the filehandle, first here is the code: Personally, I like it lower, as it maintains the file lock if we decide to write the template file to our temp file. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Hi, it seems this continues in version 1.9.8. Can this be merged? |
|
@sergiorgiraldo v2.0 is out now, and I believe has a fix for this already. Can you please upgrade from v1.9.8 and confirm the fix? |
|
Already fixed. |
|
@sergiorgiraldo Sorry, this wasn't actually fixed, apparently! It looks like @micahellison has submitted the actual fix here. |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fix for #415 on Windows.