https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    10/02/2019, 2:12 PM
    <class folder="assets/custom-components" />
  • b

    bright-gpu-74537

    10/02/2019, 2:12 PM
    without the first slash
  • u

    user

    10/02/2019, 2:12 PM
    will have a try
  • u

    user

    10/02/2019, 2:13 PM
    Copy code
    Uncaught exception haxe/ui/extended/fields: No such file or directory
    /home/jsnadeau/foundsdk/haxeui-core/haxe/ui/macros/ModuleMacros.hx:292: characters 24-53 : Called from here
  • b

    bright-gpu-74537

    10/02/2019, 2:14 PM
    found another issue though:
  • b

    bright-gpu-74537

    10/02/2019, 2:14 PM
    "assets.custom-components" is not a valid package name:
  • b

    bright-gpu-74537

    10/02/2019, 2:14 PM
    because my folder is called "custom-components"... so what do we thing is better:
  • u

    user

    10/02/2019, 2:14 PM
    yeah
  • u

    user

    10/02/2019, 2:14 PM
    I got that also
  • b

    bright-gpu-74537

    10/02/2019, 2:14 PM
    assets.custom.components
    , or
    assets.customcomponents
  • u

    user

    10/02/2019, 2:14 PM
    either way it breaks the language server 😛
  • u

    user

    10/02/2019, 2:15 PM
    I tried both already.
  • u

    user

    10/02/2019, 2:18 PM
    heres what happens:
    Copy code
    [Error - 10:08:05 a.m.] Request textDocument/definition failed.
      Message: Type not found : home.jsnadeau.foundsdk.haxeui.kha.extended.haxe.ui.extended.fields.Transform
      Code: -32603
  • u

    user

    10/02/2019, 2:18 PM
    when we try hovering over a variable
  • b

    bright-gpu-74537

    10/02/2019, 2:18 PM
    and the type is wrong, correct?
  • b

    bright-gpu-74537

    10/02/2019, 2:18 PM
    what should it be?
  • u

    user

    10/02/2019, 2:19 PM
    Copy code
    [Error - 10:19:30 a.m.] Request textDocument/hover failed.
      Message: Type not found : home.jsnadeau.foundsdk.haxeuikhaextended.haxe.ui.extended.fields.Transform
      Code: -32603
  • b

    bright-gpu-74537

    10/02/2019, 2:20 PM
    i think also that issue is relating to using absolute paths
  • u

    user

    10/02/2019, 2:20 PM
    I really don't know @bitter-family-72722 ?
  • b

    bright-gpu-74537

    10/02/2019, 2:20 PM
    though i would have still expected it to actually work
  • u

    user

    10/02/2019, 2:21 PM
    Yes it relates to absolute paths with "-"; and yeah but we cant declare a package with "-" so thats the initial issue but language server wants to have a real file path also I think
  • b

    bright-gpu-74537

    10/02/2019, 2:25 PM
    ok, well, the hypen issue is fixed in master now
  • b

    bright-gpu-74537

    10/02/2019, 2:25 PM
    doesnt help with the LS though
  • b

    bright-gpu-74537

    10/02/2019, 2:28 PM
    added a basic xml component + project
  • b

    bright-gpu-74537

    10/02/2019, 2:28 PM
    https://github.com/haxeui/component-examples/tree/master/custom-components
  • b

    bright-gpu-74537

    10/02/2019, 2:29 PM
    pretty simple, but gets the point across
  • b

    bright-gpu-74537

    10/02/2019, 2:29 PM
    (can add to it later ofc)
  • b

    bright-gpu-74537

    10/02/2019, 2:29 PM
    Copy code
    xml
    <hbox>
        <script>
            function inc(n) {
                theValue.text = Std.parseInt(theValue.text) + n;
            }
        </script>
        <textfield id="theValue" text="0" />
        <button text="-" onclick="inc(-1)" width="30" />
        <button text="+" onclick="inc(1)" width="30" />
    </hbox>
  • u

    user

    10/02/2019, 2:30 PM
    yup; it works when working in the same directory but not when it's an extern lib
  • b

    bright-gpu-74537

    10/02/2019, 2:33 PM
    oh, interesting... so the folder with your custom xml classes is an external lib?
1...123124125...1687Latest