Improvement on check for missing commas when importing or opening a .bib file#8840
Merged
Siedlerchr merged 8 commits intoJabRef:mainfrom Jul 9, 2022
Merged
Improvement on check for missing commas when importing or opening a .bib file#8840Siedlerchr merged 8 commits intoJabRef:mainfrom
Siedlerchr merged 8 commits intoJabRef:mainfrom
Conversation
…rmat. Also add more meaningful message when warning occurred.
koppor
reviewed
May 31, 2022
| return new UnknownFormatImport(ImportFormatReader.BIBTEX_FORMAT, parserResult); | ||
| } else { | ||
| throw new ImportException(Localization.lang("Could not find a suitable import format.")); | ||
| throw new ImportException(parserResult.getErrorMessage()); |
Comment on lines
+80
to
+81
| } else if (importError instanceof ImportException) { | ||
| DefaultTaskExecutor.runAndWaitInJavaFXThread(() -> dialogService.showWarningDialogAndWait(Localization.lang("Import error"), importError.getLocalizedMessage())); |
Member
There was a problem hiding this comment.
This is "only" to show a warning instead of an error?
What happens if you remove that code? Is JabRef showing an error? Then I would vote to remove this check
Member
|
@LIM0000 What's the status here? |
Contributor
Author
|
Hi @Siedlerchr , this PR is still pending for #8011 (comment) and #8011 (comment). |
Member
Member
|
Additionally, as I was arguing in #8011 (comment), having different error messages depending on what the user was doing would be nice. Those are the error messages I came up with
The blank lines in between sentences is intentional to prevent "wall of text". |
* upstream/main: Disable ResearchGateTest on CI (JabRef#8955) Bump checkstyle from 10.1 to 10.3.1 (JabRef#8950) Bump checkstyle from 10.1 to 10.3.1 (JabRef#8950) Bump mariadb-java-client from 2.7.5 to 2.7.6 (JabRef#8953) Add notification when adding previous entries to new group configuration (JabRef#8919) Remember Sidepane width after restart (JabRef#8936) move "Warn about duplicates on import" preferences option (JabRef#8937) Fix theme switching exception (JabRef#8939) fix merge conflict Squashed 'buildres/csl/csl-locales/' changes from 969d9567ac..55459cd79f Squashed 'buildres/csl/csl-styles/' changes from e740261..3d3573c Show pdf icon for mime type in maintable (JabRef#8935) Fix for Dark theme not readable (JabRef#8929) Find Unlinked files should ignore Thumbs.db, etc (JabRef#8800) Try to make reproducible builds (JabRef#8925) Link to new board (and refine text)
Siedlerchr
added a commit
that referenced
this pull request
Jul 10, 2022
* upstream/main: Keep UTF-8 encoding header if present (#8964) Cleanup index when opening a library (#8962) Refactor context menu entry types changing (#8957) Improvement on check for missing commas when importing or opening a .bib file (#8840) # Conflicts: # src/test/java/org/jabref/logic/importer/fileformat/BibtexImporterTest.java
Siedlerchr
added a commit
that referenced
this pull request
Jul 14, 2022
…failure-dialog * upstream/main: (76 commits) New Crowdin updates (#8972) New Crowdin updates (#8969) Fix .bat errorlevel handling with pwsh.exe check (#8965) revert jsoup version upgrade Fix charset detection with utf16 and others (#8947) Bump classgraph from 4.8.147 to 4.8.149 (#8968) Bump jsoup from 1.15.1 to 1.15.2 (#8967) Keep UTF-8 encoding header if present (#8964) Cleanup index when opening a library (#8962) Refactor context menu entry types changing (#8957) Improvement on check for missing commas when importing or opening a .bib file (#8840) Disable ResearchGateTest on CI (#8955) Bump checkstyle from 10.1 to 10.3.1 (#8950) Bump checkstyle from 10.1 to 10.3.1 (#8950) Bump mariadb-java-client from 2.7.5 to 2.7.6 (#8953) Add notification when adding previous entries to new group configuration (#8919) Remember Sidepane width after restart (#8936) move "Warn about duplicates on import" preferences option (#8937) Fix theme switching exception (#8939) fix merge conflict ... # Conflicts: # src/main/resources/l10n/JabRef_en.properties
Siedlerchr
added a commit
to LIM0000/jabref
that referenced
this pull request
Jul 15, 2022
* upstream/main: (28 commits) [Bot] Update CSL styles (JabRef#8978) New Crowdin updates (JabRef#8972) New Crowdin updates (JabRef#8969) Fix .bat errorlevel handling with pwsh.exe check (JabRef#8965) revert jsoup version upgrade Fix charset detection with utf16 and others (JabRef#8947) Bump classgraph from 4.8.147 to 4.8.149 (JabRef#8968) Bump jsoup from 1.15.1 to 1.15.2 (JabRef#8967) Keep UTF-8 encoding header if present (JabRef#8964) Cleanup index when opening a library (JabRef#8962) Refactor context menu entry types changing (JabRef#8957) Improvement on check for missing commas when importing or opening a .bib file (JabRef#8840) Disable ResearchGateTest on CI (JabRef#8955) Bump checkstyle from 10.1 to 10.3.1 (JabRef#8950) Bump checkstyle from 10.1 to 10.3.1 (JabRef#8950) Bump mariadb-java-client from 2.7.5 to 2.7.6 (JabRef#8953) Add notification when adding previous entries to new group configuration (JabRef#8919) Remember Sidepane width after restart (JabRef#8936) move "Warn about duplicates on import" preferences option (JabRef#8937) Fix theme switching exception (JabRef#8939) ... # Conflicts: # src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Previous discussion about check for missing commas when importing or opening a .bib file #8011
Proposal solution: Display warning dialog with meaningful message instead of error dialog to user
Fixes: #8011
ImportExpection, display warning dialog instead of error dialogFurther discussion:
Add this implementation to opening of file.
PR checklist:
CHANGELOG.mddescribed in a way that is understandable for the average user (if applicable)