Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Update RichTextFX to fix spam of "Visible paragraphs' last index is [-1]" #24

Closed
Col-E opened this issue Aug 12, 2021 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@Col-E
Copy link
Owner

Col-E commented Aug 12, 2021

The bug is present in 10.6 but was fixed 2 months ago. When a new release is made it should fix the spam: FXMisc/RichTextFX#1021

Full log

java.lang.IllegalArgumentException: Visible paragraphs' last index is [-1] but visibleParIndex was [0]
	at org.fxmisc.richtext.GenericStyledArea.visibleParToAllParIndex(GenericStyledArea.java:982)
	at org.fxmisc.richtext.ViewActions.firstVisibleParToAllParIndex(ViewActions.java:284)
	at org.fxmisc.richtext.LineNumberFactory.insertParagraphCheck(LineNumberFactory.java:172)
	at org.fxmisc.richtext.LineNumberFactory.lambda$new$2(LineNumberFactory.java:92)
@Col-E Col-E added the bug Something isn't working label Aug 12, 2021
@Jugen
Copy link

Jugen commented Oct 26, 2021

Hey Matt, sorry I didn't see this earlier otherwise I would have tried to publish a RichTextFX update sooner. Anyways version 0.10.7 is out now and Maven should reflect it in the next 24 hours.

@Col-E
Copy link
Owner Author

Col-E commented Oct 26, 2021

This repo was actually private until a couple of days ago, no worries 👍

@Col-E Col-E closed this as completed Dec 2, 2021
@Col-E
Copy link
Owner Author

Col-E commented Dec 2, 2021

For SA, 0.10.7 depends on JFX logic introduced in a later version (past the old 8 bundled version) so its effectively incompatible with Java 8 since we use the piece that is dependent.

We planned on moving to Java 11 eventually anyways so this is not a major concern.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants