eugenkiss / kotlinfx Goto Github PK
View Code? Open in Web Editor NEWUNMAINTAINED: A layer on top of JavaFX to make better use of Kotlin's features.
License: MIT License
UNMAINTAINED: A layer on top of JavaFX to make better use of Kotlin's features.
License: MIT License
KotlinFx is very cool, I like it very mucn.
However, Kotlinfx depends on org.reflections.Reflections, which depends on guava & other libraries again, thus KotlinFX is too weight.
In KotlinM8, reflection will be first-class citizen. Would you use Kotlin-reflection replaces org.reflections.Reflections? Or, just write reflections by Java-self?
We like a light KotilnFx.
By the way, would you provide a version for JavaFx 2.2, not for JavaFX 8? Because we're using Java7 in product enviroments.
Hello and thank you for your work.
As you probably know, Kotlin 1.0.0-beta-1038 came out two days ago. After that, I tried to include your library into my project, but there were many code legacy issues that didn't let it all compile. New Kotlin does not support many of old code styles and techniques.
So, I believe Kotlinfx really needs some code cleanup and refactoring. I downloaded the source and tried to do it all myself, but didn't succeed: automatic code cleanup won't work, and there are many issues to fix manually. I'm planning to get back to it in a couple of days, so I've thought you should know about all this.
https://github.com/eugenkiss/kotlinfx/blob/master/LICENSE.txt is not very clear. Are you using one of the standard open source license or is this something else?
The issue appeared when I was trying to lunch 'Hello World' example.
https://github.com/eugenkiss/kotlinfx/blob/master/kotlinfx-demos/src/main/kotlin/HelloWorld.kt
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at com.sun.javafx.application.LauncherImpl.access$000(Unknown Source)
at com.sun.javafx.application.LauncherImpl$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoSuchMethodError: javafx.scene.layout.StackPane.([Ljavafx/scene/Node;)V
at kotlinfx.builders.StackPaneK.(Layout.kt:204)
at kotlinfx.builders.BuildersPackage-Layout-7f0230ad.StackPane(Layout.kt:194)
at kotlinfx.builders.BuildersPackage-Layout-7f0230ad.StackPane$default(Layout.kt:192)
at kotlinfx.builders.BuildersPackage.StackPane$default(Unknown Source)
at HelloWorld$start$1$1.invoke(main.kt:41)
at HelloWorld$start$1$1.invoke(main.kt)
at kotlinfx.builders.BuildersPackage-Scene-e907cc0b.Scene(Scene.kt:83)
at kotlinfx.builders.BuildersPackage.Scene(Unknown Source)
at HelloWorld$start$1.invoke(main.kt:40)
at HelloWorld$start$1.invoke(main.kt)
at kotlinfx.builders.BuildersPackage-Stage-651bb459.Stage(Stage.kt:48)
at kotlinfx.builders.BuildersPackage.Stage(Unknown Source)
at HelloWorld.start(main.kt:39)
at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$5.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$4$1.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$4$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(Unknown Source)
... 1 more
Hello,
It seems that the latest version of kotlinfx is several ABI versions behind kotlin now. A more recent version might be helpful.
Thanks!
So ./gradlew doesn't work.
Hi,
I was hoping to update kotlinfx to M11, but I may have too many knowledge gaps. For instance, I'm having trouble building even with the current M10:
$ ~/gradle-2.3/bin/gradle build
:compileKotlin
w: Annotations path entry points to a non-existent location:
e: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\GenKalium.kt: (49, 53): Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class<out java.lang.Object>?>?> was expected
e: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\GenKalium.kt: (50, 63): Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class<out java.lang.Object>?>?> was expected
e: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\GenPropAbbrs.kt: (49, 53): Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class<out java.lang.Object>?>?> was expected
e: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\GenPropAbbrs.kt: (50, 63): Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class<out java.lang.Object>?>?> was expected
e: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\GenProperties.kt: (73, 53): Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class<out java.lang.Object>?>?> was expected
e: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\GenProperties.kt: (74, 63): Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class<out java.lang.Object>?>?> was expected
w: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\Util.kt: (28, 88): This class shouldn't be used in Kotlin. Use kotlin.Any instead.
w: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\Util.kt: (32, 78): Unnecessary non-null assertion (!!) on a non-null receiver of type kotlin.String
w: C:\cygwin64\home\brand_000\kotlinfx\src\main\kotlin\Util.kt: (36, 83): This class shouldn't be used in Kotlin. Use kotlin.Any instead.
:compileKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.782 secs
How do you normally build? I also tried fixing the first error in code a bit, but the types was rather complex and I wasn't able to get anywhere easily.
Most of the (important) builders were created. However, some are still left to be finished. A good opportunity for a contributer ๐. The following files are concerned:
Thank you for your great work.
I'm compiling GenProperties and get the following Error:
Error:(74, 63) Kotlin: Type mismatch: inferred type is java.util.ArrayList<java.lang.reflect.TypeVariable<java.lang.Class<out java.lang.Object!>!>!> but kotlin.MutableList<java.lang.reflect.TypeVariable<out java.lang.Class?>?> was expected
The relevant lines is as follows:
val tyParamList = clazz.getTypeParameters().toArrayList()
val tyParams = util.genTypeParamsString(tyParamList)
val tyParamsFirst = util.genFirstTypeParamsString(tyParamList)
How to solve this problem?
Thanks again.
Seems like a lot of time since last release. Can you please push a new release?
e: /Users/mike/Source/kotlinfx/kotlinfx-core/src/main/kotlin/kotlinfx/builders/Layout.kt: (188, 8): Super trait 'K' requires subclasses to extend 'Pane'
The error seems reasonable - this line contains RegionK and Region does not subclass Pane.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.