jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Skip unknown groups when parsing

Open koppor opened this issue 10 months ago β€’ 23 comments

I have Chocolate-defunct.bib

@Comment{jabref-meta: grouping:
0 AllEntriesGroup:;
1 SearchGroup:Entries without a group\;0\;groups !=~ .+\;0\;1\;1\;\;\;\;;
1 SearchGroup:Entries without a linked file\;0\;file !=~ .+\;0\;1\;1\;\;\;\;;
1 StaticGroup:Paywalled\;0\;1\;\;\;\;;
1 SearchGroup:To read\;0\;groups !=~ .+ and readstatus !=~ .+\;0\;1\;1\;0x008080ff\;\;\;;
1 KeywordGroup:Skimmed\;0\;readstatus\;skimmed\;0\;0\;1\;0xffff00ff\;\;\;;
1 KeywordGroup:Read\;0\;readstatus\;read\;0\;0\;0\;0x00ff00ff\;\;\;;
1 StaticGroup:Used\;0\;1\;0x0000ffff\;\;\;;
1 DirectoryGroup:fs-mirror\;0\;C:/TEMP/jabref/fs-mirror\;1\;\;\;\;;
2 DirectoryGroup:a\;0\;C:/TEMP/jabref/fs-mirror/a\;1\;\;\;\;;
2 DirectoryGroup:pdfs\;0\;C:/TEMP/jabref/fs-mirror/pdfs\;1\;\;\;\;;
1 StaticGroup:uiuiui\;0\;1\;\;\;\;;
}

When opening with main, JabRef tells me

Image

This should not happen. JabRef should just skip that group

Background: That group was introduced by https://github.com/JabRef/jabref/pull/14668

Task

  • Change parsing to skip unknown groups
  • Unknown groups should still be reported
  • Add test case(s)

koppor avatar Jan 25 '26 19:01 koppor

Hello, I’d like to work on this issue if it’s still available. Could you assign it to me?

jeyhoun avatar Jan 25 '26 19:01 jeyhoun

πŸ‘‹ Hey @jeyhoun, looks like you’re eager to work on this issue β€” great! πŸŽ‰ It also looks like you don't know how to assign issues to yourself. Please read our CONTRIBUTING.md to find out how. It will also guide you in other aspects of contributing to JabRef.

jabref-machine avatar Jan 25 '26 19:01 jabref-machine

/assign-me

Ved178 avatar Jan 25 '26 19:01 Ved178

πŸ‘‹ Hey @Ved178, thank you for your interest in this issue! πŸŽ‰

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! πŸš€

jabref-machine avatar Jan 25 '26 19:01 jabref-machine

Hi @Ved178, as you can see, @jeyhoun was interested in the issue just minutes before you. Since you knew the assign command but did not help him, I am un-assigning you and assigning it to him. Please pick another issue.

subhramit avatar Jan 25 '26 20:01 subhramit

/unassign @Ved178

subhramit avatar Jan 25 '26 20:01 subhramit

/assign @jeyhoun

subhramit avatar Jan 25 '26 20:01 subhramit

πŸ‘‹ Hey @jeyhoun, thank you for your interest in this issue! πŸŽ‰

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! πŸš€

jabref-machine avatar Jan 25 '26 20:01 jabref-machine

I'm literally just making a PR for this issue right now

Ved178 avatar Jan 25 '26 20:01 Ved178

I'm literally just making a PR for this issue right now

Please respect the community before running for contributions. OSS is not supposed to be a race.

subhramit avatar Jan 25 '26 20:01 subhramit

Hello @subhramit, I fixed this problem, please review all my changes.

This is my PR link: https://github.com/JabRef/jabref/pull/14933

Thanks!

jeyhoun avatar Jan 26 '26 14:01 jeyhoun

/assign-me

Priyanshug254 avatar Jan 26 '26 17:01 Priyanshug254

⚠️ Issue Already Assigned

Hi @Priyanshug254, this issue is currently assigned to @jeyhoun.

[!NOTE] This issue is pinned and will not be automatically unassigned.

Options for contributors
  • Collaborate: You can ask the assignee if they want help
  • Maintainer assistance: A maintainer can add you as co-assignee if appropriate
  • Wait for completion: The issue will remain assigned until the work is complete

jabref-machine avatar Jan 26 '26 17:01 jabref-machine

/assign-me

StardustEnigma avatar Feb 28 '26 06:02 StardustEnigma

πŸ‘‹ Hey @StardustEnigma, thank you for your interest in this issue! πŸŽ‰

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! πŸš€

jabref-machine avatar Feb 28 '26 06:02 jabref-machine

Hello,

My name is Kartikey Tripathi, and I am a 3rd-year Computer Science student at Dr. Bhim Rao Ambedkar University, Agra, India. I am a Java backend developer, and I am very interested in contributing to open-source projects.

I came across the issue β€œSkip unknown groups when parsing (#14927)” and would like to contribute to it. I am currently exploring the JabRef codebase to understand how the group parsing logic works and how unknown groups are currently handled.

I would love to start contributing to this issue and learn from the community. Any guidance on where in the codebase the group parsing is implemented would be greatly appreciated.

Thank you!

KartikeyTripathi469 avatar Mar 10 '26 14:03 KartikeyTripathi469

πŸ‘‹ Hey @KartikeyTripathi469, looks like you’re eager to work on this issue β€” great! πŸŽ‰ It also looks like you don't know how to assign issues to yourself. Please read our CONTRIBUTING.md to find out how. It will also guide you in other aspects of contributing to JabRef.

jabref-machine avatar Mar 10 '26 14:03 jabref-machine

/assign-me

Syimyk43 avatar Mar 10 '26 21:03 Syimyk43

πŸ‘‹ Hey @Syimyk43, thank you for your interest in this issue! πŸŽ‰

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! πŸš€

jabref-machine avatar Mar 10 '26 21:03 jabref-machine

Hello @koppor! I would like to get a review on my idea before start to work on it. I am planning to add missing test cases for GroupsParser including unknown group handling, SmartGroup migration and AutomaticDateGroup parsing. Any feedback before I start implementing?

Thank you so much!

Syimyk43 avatar Mar 11 '26 05:03 Syimyk43