-
Notifications
You must be signed in to change notification settings - Fork 1.3k
OpenEditorAction discards line additions #316
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
Comments
Hi, the first thing is a known bug, please use |
Editing with vim should work indeed, I'll investigate this further - thanks for the report! |
So, I used With On Sun, Feb 22, 2015 at 3:52 PM, Lasse Schuirmann notifications@github.com
|
Yeah, that's #278 then. |
I can confirm that the second thing is an issue, sadly. |
Minimal testcase in DiffTest.py:
|
seems to occur when the first line gets changed and a second one gets added. |
Bug is in Diff.py, from_string_arrays. We do |
or deletion of several lines. |
We do matcher.get_grouped_opcodes(1) and assume that each change group affects only one line in the origin and target file. However despit it may affect only one origin line it may affect several target lines thus we need to remove that assumption. Part. fixes: #316
We do matcher.get_grouped_opcodes(1) and assume that each change group affects only one line in the origin and target file. However despit it may affect only one origin line it may affect several target lines thus we need to remove that assumption. Part. fixes: #316
Previously we assumed that if a line gets changed and the following lines get deleted, the difflib generates two results for us. This is wrong and this patch is the correction. See #316
Previously we assumed that if a line gets changed and the following lines get deleted, the difflib generates two results for us. This is wrong and this patch is the correction. See #316
I think I've covered all cases now, @AbdealiJK could you do some testing on this branch? |
I was trying the coala-tutorial, and had some problems when i came across the makefile part :
coala -S Makefiles.bears=LineLengthBear Makefiles.files=Makefile --save
So, coala asked me to edit the file (as expected) and then asked for my editor:
subl
for the sublime text editor, it opened a temporary file and it was blank. I had no clue what to do.vim
it opened a temporary file with the content of the Makefile in it. I edited the file by splitting the comment (which was >80 char) into 2 different lines. Saved it, and quit. On checking my Makefile, it seems coala had deleted my second comment and left only the first comment.The text was updated successfully, but these errors were encountered: