-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
When saving: The libary has been modified by another program #4877
Comments
This is most interesting since you work with Linux. Obviously the error is indepent of the operation system. |
Me too. :-( |
Could this be something to do with Dropbox? I guess the Dropbox application (nemo-dropbox in Linux Mint) runs some kind of file-checking background task, and maybe JabRef is sensing that? Is anyone who sees this "library modified" popup behaviour not run Dropbox? |
@wujastyk : I storred it locally on the desktop, therefore it is not reletated to any sync-program. |
I see. So it's not Dropbox. Thanks!
…On Sun, 12 May 2019 at 01:49, Johannes Kalliauer ***@***.***> wrote:
@wujastyk <https://github.com/wujastyk> : I storred it locally on the
desktop, therefore it is not reletated to any sync-program.
Please also read @bernhard-kleine <https://github.com/bernhard-kleine> :
comment: #4810 (comment)
<#4810 (comment)>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4877 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAF2DBWFGGV2SY5NX2KCRB3PU7DZ7ANCNFSM4HES3FEQ>
.
|
I can confirm this issue. It appears for files outside Dropbox, as well as for files within Dropbox and paused synchronization. For me, it is independent from timing. I have the files on SSD. After editing, no matter how long, I save the file and the message appears. JabRef 5.0-dev--snapshot--2019-06-10--master--eb42850f7 |
@sfo: How large is your libary? (filesize/entries) |
Over 4000
Sent from Android phone
…On Wed, 12 Jun 2019, 00:41 Johannes Kalliauer, ***@***.***> wrote:
@sfo <https://github.com/sfo>: How large is your libary?
(filesize/entries)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4877?email_source=notifications&email_token=AAF2DBXIPMGGK4K4XISPDO3P2CLCPA5CNFSM4HES3FE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXPNDGI#issuecomment-501141913>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAF2DBUXPZFAO5457T7VPE3P2CLCPANCNFSM4HES3FEQ>
.
|
@JoKalliauer here is a minimum working example:
|
Same issue here (also using Jabref 5.0-dev). The message appears every time I save my library (even if no changes have been made). I do not have a big library, just about 100 entries. If I save the changes, all my entries are duplicated. My bib file is on a cloud folder (MEGA cloud, although that does not seem to be the issue). I am running Ubuntu Mate 19.04 |
Please check if you any save actions (library properties) or autosave enabled (preferences) |
Both save actions and autosave are disabled. The issue persists |
JabRef 5.0-dev Can confirm this issue using the minimum example provided here (#4877 (comment)) by @sfo "Save actions" are NOT enabled. "Autosave" is also NOT enabled. Since the minimum example contains just one entry and I have stored the database on a fast M.2 SSD, this issue does not seem to be related to the size of the database or slow hardware. |
JabRef 5.0-dev Can confirm that this is still an issue with the current --edge snap version using Java 11 (I am just reporting this in case someone thought the switch to Java 11 had solved the problem). The minimum working example of @sfo (#4877 (comment)) is enough to be able to trigger this problematic behaviour. |
Refs #5085 |
I can also confirm the bug. Happens every time to me though. If I can help by providing more information, just state what you'd need :) |
@Krzmbrzl Thank you for the feedback and offer. I have a long-termin solution in my mind (see #5257 (comment)), but currently did not find the time to do it. |
@Krzmbrzl you have coding experience, right? This bug is a bit hard to fix for us since non of the core developers can reproduce it. So it would be nice if you could try to debug it and find the origin of the problem (and in the best case also provide a solution). |
I do. However I am very busy atm and I'm afraid won't find the time necessary to do so properly... Plus I think I can't even set it up on my machine as I don't have JDK 12 available on my system |
Sure, no problem. In case you find bit of time, you find everything that you need to setup the build locally here: https://github.com/JabRef/jabref/wiki/Guidelines-for-setting-up-a-local-workspace |
I have this issue too:
unfortunately I dont see any log output, as the debian package from the snapshots does not ship with log4j:
I suspected that maybe the |
As a provisional workaround you can just add a button in the preferences to dissable the changes-feature. |
Related:
We should remove the Maybe, if we just remove |
JabRef 5.14--2024-05-20--18c3a55 This message is popping up all the time with the current test JR version (and versions for the last week or two). I've tried switching on and off the backup/autosave/autoreformat settings in different combinations, with no improvement. The message pops up multiple time even while editing a single entry. I have to hit "dismiss" to move on. |
@wujastyk What is the result of "Review changes"? |
JabRef 5.14--2024-05-17--b12f65c I started a new book entry. The message popped up, and I looked at "review changes": As you see, the JabRef version has the citation key and the citationkey field. Here's another: |
This could be some whitespace/line ending stuff e..g \r\n vs \n |
JabRef 5.14--2024-05-27--e1da33d I'm sorry to shout, but this is driving me mad. I get this popup every time I edit an entry. When I choose "merge" to see what's going on, I frequently get something like this: or - very often - no difference at all between the two merge columns. It's not an issue of line-endings. All my files are thoroughly unix (and I've double checked). |
JabRef 5.14--2024-06-03--67f74a3 Every time I save a new entry, I get the "modified by another program" popup. When I look at "merge" I see that it's always (almost always?) the field with the attached file that is causing the error message. I cannot see any difference in the field contents, but perhaps this is a clue to the issue? |
Sorry to hear. It seems, we need a "trial and error" now. We are creating a debug version at #11355. -- The log of JabRef should show "Differences detected" if differences have been detected. Maybe, these can be used to check the cause. Could you please download the binary from there and report the output? |
@reox Could you please click on "Merge entries"? That dialog has a visual indicator what's changed. See screenshot of #4877 (comment). |
I fetched 11355: I didn't get the popup just adding a new entry without an attached file. But when I added the file, I got the popup. And here's the log: |
JabRef 5.14-PullRequest11355.166--2024-06-03--d97c29b Now I have a situation where the popup happens every time I save, even when there are no changes at all, even when I'm not editing the entry that pops up. jabref-2024-06-04_12.48.19.mp4 |
Great catch! I added the file from my disk using the General tab and hitting the little + sign in the "file" field. Your no. 2 above. Not drag and drop. My citation key pattern is [auth4:lower]-[year] (and I remove "-" from the "remove the following characters" group. |
JabRef 5.14--2024-05-29--6a63990 This was an odd case. I deleted a short dummy entry "fo", and then got a popup saying that the library had been modified by another program. There was no attached PDF and the entry was very simple (a glossary entry for bib2gls). So it looked like I deleted the entry and then another program (?) added it again. I pressed "accept" and indeed the "fo" entry was back in the database. I deleted it a second time and then it stayed gone and there was no popup. |
You are using dropbox, right? |
Yes
|
Oh, I already did. The old issue did not appear, but there was a new glitch. Adding a PDF and saving: the link to the PDF stopped working. jabref02-2024-06-15_17.46.42.mp4 |
@wujastyk Thank you for testing! It were the two spaces in the file name. JabRef shrinks them to one; which is OK for text fields, but not for file paths 😅 I fixed it just now. Build should be available in 15 minutes. |
JabRef 5.16--2024-08-13--70495a2 "autosave local libraries" turned off.
The merge screen shows that the "in jabref" data is ahead of the "on disk" data. And JabRef is
I think that step 2 is premature. And JabRef thinks that the data I've typed since the last save is modification "by another program". |
Edit:
JabRef 5.0, 5.1, 5.2, 5.4 till current version (Nov2021) is affected.
If you add a comment please add
Options
>Preferences
>File
-- (a) Newline seperator (try LineForward)
-- (b) Always reformat BIB file on save and export (try disabling)
-- (c) Autosave local libraries (try disabling)
Original post
Ubuntu 18.04
Steps to reproduce the behavior: (same as #4810 )
Log File
Terminal
The text was updated successfully, but these errors were encountered: