-
Notifications
You must be signed in to change notification settings - Fork 236
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
Cannot construct a Paragraph with an empty list of segments #592
Comments
Which version are you using? This is an issue that has come up in previous versions (#345) but shouldn't be the case in the current master branch |
I am using the latest release: lib/richtextfx-0.7-M5.jar Also these: lib/reactfx-2.0-M5.jar |
How can I build the master (i cloned it) so that I get all 3 jar files (jar, doc and sources)? A client reported an error I cannot reproduce: java.lang.NoSuchMethodError: org.fxmisc.richtext.TextExt.impl_selectionFillProperty()Ljavafx/beans/property/ObjectProperty; |
Tomas recently gave me access to the Sonatype repo he uses to make snapshot and stable releases. So, we've made a new snapshot release as of yesterday that you could use. There is at least one breaking change at the source level in the type signature (Segment no longer includes its style as part of the segment object anymore), but I think that's it besides a few name changes. Everything else has either refactored the code or deprecated some things. I plan on making another milestone release soon. However, I'm currently figuring out how to use the Next Staging plugin to do that and automate the process (otherwise, it's rather tedious). Other than that, you could use Jitpack to compile any commit of this repo. See this project's ReadMe's section on that for more instructions. (This is more of a temporary solution because I've been using it in my own code and my IDE [IntelliJ] sometimes can't figure out where the dependencies are. Now that I can make releases, it changes the situation.) |
Did you try the default task? |
Thanks, gradle build works. Just two tests fail:
|
With the new master jar files, my application now throws a java.lang.NoSuchMethodError: org.fxmisc.undo.UndoManagerFactory.create(Lorg/reactfx/EventStream;Ljava/util/function/Function;Ljava/util/function/Consumer;Ljava/util/function/BiFunction;Ljava/util/function/Predicate;)Lorg/fxmisc/undo/UndoManager; Do I need a new version of reactfx as well? I'm using M5. |
Ah.... That's probably a bug that occurs because of #590. I probably didn't update the type signature. I'll look into it. |
Nope, that doesn't seem to be the issue... Could you post a reproducible demo and list your OS and Java version? |
This shows up in the Windows CI Build, too (I'm adding it in #596). Seems like the JavaFX thread isn't started before the tests run, but it may be due to something else. |
Yes i'm using this on Windows with Java 8. |
This now works as of #601 |
I get this exception on some of the texts that i want to color:
java.lang.IllegalArgumentException:
Cannot construct a Paragraph with an empty list of segments
Is there anything I can do to stop the error?
My code is like:
The text was updated successfully, but these errors were encountered: