-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
The "Remove subgroups" command leaves entries with non-existing groups #7556
Comments
It has been a while. Can you still reproduce this @sauliusg? I tried with JabRef 5.6--2022-04-25--5c9d898 and was not able to reproduce. Should we close? |
I'm getting errors when trying to compile the new JabRef trung (commit e3094ac, master branch):
Did the project switch the the new compiler? Mine is 17.0 ...:
|
Yes, we upgraded to jdk18 recently. Your commit looks odd, the branch has also changed a while ago. It's main |
I'm confused if my Gradle is too old, or something with UPDATE: Found the way to compile:
The missing piece of the puzzle was exporting the correct JAVA_HOME env. variable value; for some reason installing Now checking if I can reproduce the issue with the new code...
Yes, that was my typo – sorry – indeed it is now |
An attempt to reproduce the situation triggered an "Uncaught exception occurred ..." -- "Index out of bounds ..." situation; see the attached screen shot: After trying to see the list of all publications I get an empty list; trying to save the database triggers another "Index out of bounds" exception: The database was partially saved (only BibTeX entry was in the file; the encoding header and the group list was gone). My setup was:
|
On the second attempt, Jabref worked as expected, removing the subgroup from both the group list and the BibTeX entry. |
@sauliusg Thanks for the feedback. Which version of JabRef was your bib file previously created? The encoding header is no longer written (JabRef by default uses utf-8 now) PS: If you don't want to compile from source, you can get the prebuilt binaries always here for the latest commit https://builds.jabref.org/main/ |
I am pretty sure that I created it on the original version for which I reported the bug:
Thanks, I could try it as well, but now the compilation worked, so I just run it (it is always good when you have a version built from source ... :). |
Thanks for letting me know. We also use utf-8 throughout. The problem of course will be when people will try to open that database with older JabRef versions... As I have mentioned, on the second (and 4 more) Jabref restart attempts the "Index out of bound ..." errors do not happen, and the database is saved correctly (without the encoding, which is intended as I understand now). Thus the bugs were transient... So far can not reproduce them. Possibly they were related to the old JabRef configuration, or behaps because of some thread synchronisation issues... Seems very difficult to reproduce. |
OK, I can confirm that the bug is gone, both the the compiled version and in the ore-compiled version from I am a bit worried of course about the initial thread glitch and "Out of Index" exceptions. But I can not reproduce them now; it could have also been related to the fact that I have just changed the Java version, so there were mixed libraries loaded into RAM ir something like this. Unpacking my old JabRef (~/.java) configurations does not cause the bug to reappear, so it's not just my old configuration from JabRef 5.2. that caused it, |
Closing this then :-)
|
JabRef version master commit d31ef4d on Linuxmint-20.1
JabRef 100.0.0
Linux 5.8.0-45-generic amd64
Java 14.0.2
JavaFX 16+8
Steps to reproduce the behavior:
Load library 'groups.bib' from the attached 'groups.zip' file;
groups.zip
Open the groups interface; Left click on "Programming" group to seelct it; right-click on the "Programming" group;
Pick "Remove subgroups", confirm the action;
Hit "Ctrl-S" to save the file.
The the saved file, the "Techniques" group is gone, but the entry that belonged to it still mentions the (now non-existent) group "Techniques":
In contrast, if I select the "Techniques" group itself and click "Remove group and subgroups", the "Techniques" label is removed from the entries "groups = {...}" field (as expected).
Log File
The text was updated successfully, but these errors were encountered: