MVCoconut / coconut.ui

Wow, such reactive view! Much awesome!
The Unlicense
90 stars 9 forks source link

VSHaxe code completion issue #36

Closed Grabli66 closed 5 years ago

Grabli66 commented 5 years ago

I found a bug, but i don't know it's bug of VSHaxe or bug of coconut.ui (tink_*, etc). It appears only when i use latest coconut.ui from git and latest tink libs from git.

Source code:

import js.Browser.*;

class Main {
    public static function main() {
        coconut.ui.Renderer.mount(document.body, new App({}));
    }
}

class App extends coconut.ui.View {
    var name:String;

    function render() {
        return hxx('<div>GOOD</div>');
    }
}

When i hover on any item in class that extends coconut.ui.View, it shows "@:optional ..." screen2

build.hxml -cp src -main Main -lib coconut.ui -lib coconut.vdom -js out/main.js

Haxe Compiler 4.0.0-preview.5+da718a30e Windows 7 x64

back2dos commented 5 years ago

Latest head should improve this.

Grabli66 commented 5 years ago

Latest version works. Thanks.