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

external changes to bib file make JabRef go mad #3498

Closed
1 task
j0hannes opened this issue Dec 8, 2017 · 9 comments · Fixed by #3503
Closed
1 task

external changes to bib file make JabRef go mad #3498

j0hannes opened this issue Dec 8, 2017 · 9 comments · Fixed by #3503
Labels
bug Confirmed bugs or reports that are very likely to be bugs

Comments

@j0hannes
Copy link

j0hannes commented Dec 8, 2017

“JabRef_macos_4_1-dev--snapshot--2017-12-08--master--6f39151a7.dmg” is damaged and can’t be opened. You should move it to the Trash.

JabRef version 4.1-dev

Steps to reproduce:

  1. make changes to bib file with another editor
  2. JabRef will ask you to review the changes, you acknowledge them
  3. you try to save the bib file; JabRef will tell you that the file has had been modified externally
  4. you go for "save" and JabRef will tell you that the library is protected and that it won't save until "changes have been reviewed"
  5. you try again with "Review changes" in the save dialog but nothing happens
  6. you now want to close and reopen JabRef, but it will tell you that your library has changed
  7. again, "save changes" won't work so you for "discard"
  8. it will hang with the message "waiting for save operation to finish"
  9. you kill JabRef
@wbmacleod
Copy link

I have the same problem.

@lenhard
Copy link
Member

lenhard commented Dec 8, 2017

I can reproduce this as far as step 7. When I go for "discard", JabRef just closes as desired.

Chances are this is related to the last big changes to the diff functionality in #3353

Another observation: If I hit save twice subsequently in step 4, then the library will be saved and everything will work as expected.

@lenhard lenhard added the bug Confirmed bugs or reports that are very likely to be bugs label Dec 8, 2017
@tobiasdiez
Copy link
Member

Yes, this bug was probably introduced by my refactoring. Sorry for that!

@wbmacleod
Copy link

wbmacleod commented Dec 9, 2017 via email

@j0hannes
Copy link
Author

j0hannes commented Dec 9, 2017

@lenhard I tried clicking save twice, thrice, many times. It will still give me an error message and I have to kill the application.

@j0hannes
Copy link
Author

@lenhard The bug is still there in the current version.

@Siedlerchr
Copy link
Member

@j0hannes Unfortunately as the master builds are not up to date, did you try to run the latest master from source? (git fetch && git pull )
With having the master branch on commit c2d0070 it works as expected. I can save the changes, review/and or deny them. If I just hit save without reviewing the change will be overwritten.

@j0hannes
Copy link
Author

I am using source version but apparently that fix wasn't included in the version I compiled while the other fix targeting the missing search box was. Now it's working as expected, thanks 👍

@genodeftest
Copy link

This bug is still present in the latest stable version of JabRef, 4.3.
Sometimes it sporadically happens without even having an external editor open the library file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants