-
-
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
DOI link: opens in preview and causes an exception #7706
Comments
Hi do you use one of the CSL styles or the custom jabref style? If the latter one, can you paste it? By default it's not displayed for me in the preview |
Indeed, I have a customize preview style. Here it is:
Note: in Options -> Preferences, tab Entry preview, a left-click on the selected style raises an exception (see below). Details about another uncaught exception detailsjava.lang.IllegalArgumentException: Visible paragraphs' last index is [-1] but visibleParIndex was [0] at org.jabref.merged.module@5.3.307/org.fxmisc.richtext.GenericStyledArea.visibleParToAllParIndex(Unknown Source) at org.jabref.merged.module@5.3.307/org.fxmisc.richtext.ViewActions.firstVisibleParToAllParIndex(Unknown Source) at org.jabref.merged.module@5.3.307/org.fxmisc.richtext.LineNumberFactory.insertParagraphCheck(Unknown Source) at org.jabref.merged.module@5.3.307/org.fxmisc.richtext.LineNumberFactory.lambda$new$2(Unknown Source) at org.jabref.merged.module@5.3.307/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at org.jabref.merged.module@5.3.307/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source) at org.jabref.merged.module@5.3.307/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source) at org.jabref.merged.module@5.3.307/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at org.jabref.merged.module@5.3.307/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) |
Did it open in an external browser before?
I haven't verified it but the |
Seems like it's requires some listener to intercept links and then call the "normal" opening methods. |
A long time ago, indeed, it opened in an external browser. Digging in the development releases:
|
JabRef 5.3--2021-05-05--a3f093d
Linux 4.19.0-16-amd64 amd64
Java 16.0.1
JavaFX 16+8
When clicking on the DOI link displayed in the preview panel, the webpage is displayed in the preview (which is unexpected), and barely unusable (because it is very small), and then an exception is raised.
Steps to reproduce the behavior:
Note: the exception is surely a bug. But is the display of the website in the preview panel a new feature? If so, how to get the previous behaviour back? (i.e. opening links in the regular web browser)
Uncaught exception details
The text was updated successfully, but these errors were encountered: