Giter Site home page Giter Site logo

kotlinfx's People

Contributors

bbarker avatar eugenkiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kotlinfx's Issues

on reflections

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.

Cleaning up code for Kotlin Beta Candidate release

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.

kotlinfx.builders.StackPane runtime exeption: NoSuchMethodError

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

Building problems

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.

Type mismatch with Kotlin plugin:0.12.213

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.

New release due?

Seems like a lot of time since last release. Can you please push a new release?

Does not compile with new Kotlin

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.