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

    bulky-exabyte-6537

    05/26/2023, 9:31 AM
    no matter the speed
  • b

    bright-gpu-74537

    05/26/2023, 9:39 AM
    oh yeah, wonder if thats a builder bug, or an option box bug... feels like an optionbox bug looking at the stack
  • b

    bulky-exabyte-6537

    05/26/2023, 9:48 AM
    hmm doesn't happen on mine, but i'm using
    dispose:false
    when i remove the components from the page and add the new ones (i'm doing a similar layout to the component explorer)
  • b

    bright-gpu-74537

    05/26/2023, 10:00 AM
    ill test it out... it could be the builder is doing "something" between pages, or some edge case
  • b

    bright-gpu-74537

    05/26/2023, 10:00 AM
    it could also be that the builder is just out of date
  • b

    bright-gpu-74537

    05/26/2023, 10:05 AM
    (happens locally too with latest haxeui, so its not the builder being out of date)
  • e

    early-butcher-76809

    05/26/2023, 11:08 AM
    To complete what Ian said, I use a font I found in HaxeUI_Base (). I had to add this bit to make it work :
    Copy code
    // HaxeUI fonts registration
    var files = hxd.res.Loader.currentInstance.dir("ui/theme/fonts");
    for ( file in files )
    {
        if ( file.entry.path.indexOf(".fnt", file.entry.path.length-4) != -1 )
        {
            SDFFonts.register(file.entry.path, h2d.Font.SDFChannel.Alpha);
        }
    }
  • b

    bright-gpu-74537

    05/26/2023, 11:35 AM
    this is fixed now, actually quite a nice little bug: when you change the groupName for optionbox (and button) it wouldnt remove itself from the old group, just add itself to the new group, meaning there were references hanging about for it in the old group. This is actually a memory leak (granted not a huge one, but certainly still there). The only reason it errored (and its lucky that it did otherwise i wouldnt have found this) is because later it was going through the members in that group, but some that shouldnt have been there in the first place were destroyed... it was then trying to set properties on those destroyed components
  • b

    bright-gpu-74537

    05/26/2023, 11:36 AM
    anyway, fixed now... good find 🙂
  • a

    adorable-spring-93492

    05/26/2023, 1:35 PM
    Worked perfectly, thank you
  • r

    refined-laptop-39041

    05/26/2023, 2:08 PM
    I have done it before, so it is possible
  • b

    bulky-exabyte-6537

    05/26/2023, 10:59 PM
    Ah nice
  • f

    full-journalist-82607

    05/27/2023, 4:49 PM
    Hum, found a bug when updating an old project when you have something like ``( or class file= ) I have this error
    haxelib/haxeui-core/git/haxe/ui/macros/ModuleMacros.hx:588: lines 588-597 : Type name assets.layout.Client is redefined from module assets.layout.Client (2d0fdb5fad395198fc5a8ab4b55dc45b)
    and it stops compiling
  • f

    full-journalist-82607

    05/27/2023, 4:54 PM
    In fact it's seems it's the "assume blank string in classpath means cwd" commit that is responsible
  • b

    bright-gpu-74537

    05/27/2023, 5:53 PM
    so without that commit its fine? Also, does it compile (with the commit) via command line (ie, not vscode)
  • f

    full-journalist-82607

    05/27/2023, 6:17 PM
    yes it works without the commit, and doesn't work without it. All by command line.
  • b

    bright-gpu-74537

    05/27/2023, 6:18 PM
    cool - so totally valid bug... will check it out... dont suppose you have a minimal repro do you?
  • f

    full-journalist-82607

    05/27/2023, 6:18 PM
    humm no minimal repro but maybe can do it now.
  • b

    bright-gpu-74537

    05/27/2023, 6:19 PM
    if you have one great, if not, no worries, seems fairly simple to repro: create a class based from only xml
  • f

    full-journalist-82607

    05/27/2023, 6:23 PM
    Oh I just added " " in the module. and a client.xml in assets
    Copy code
    <box width="100%">
        <label id="info_client" text="Info Client : " verticalAlign="center" horizontalAlign="right" styleNames="client-name"/>
    </box>
    in the builder and it does the same bug . Now for some reasone there isn't an adress to the the project anymore in the builder ( in chromium and firefox) so I can't give you the link
  • b

    bright-gpu-74537

    05/27/2023, 6:23 PM
    i think you'll only get a link to the project if it compiles (i could be wrong about that - ill have to check)
  • f

    full-journalist-82607

    05/27/2023, 6:25 PM
    oh you're right, as it doesn't compile I didn't have a link
  • b

    bright-gpu-74537

    05/27/2023, 6:26 PM
    i might think about that, but iirc it was intentional as when something doesnt compile i nuke it from the server as to not have 100s (1000s) of "tests"
  • f

    full-journalist-82607

    05/27/2023, 6:28 PM
    Yeah it's kind of useless ( except in this case 😉 you'll be overwhelmed with all the typos ( "Missing ;" )
  • b

    bright-gpu-74537

    05/27/2023, 6:29 PM
    well, it was never supposed to be a "report bugs via the builder"... but upon reflection, it doesnt make alot of sense to not be able to share a link to something thats broken
  • f

    full-journalist-82607

    05/27/2023, 6:35 PM
    Yeah it kind of useful with "why doesn't it work " kind of questions . But then with all the typos. Maybe, just have a share link feature, so you can share the link only when it's useful.
  • b

    bright-gpu-74537

    05/27/2023, 7:23 PM
    agreed - i might just rollback that whole type of thinking, then clean up when things get out of hand
  • b

    bright-gpu-74537

    05/27/2023, 7:24 PM
    Usage of /:   12.0% of 154.90GB
  • b

    bright-gpu-74537

    05/27/2023, 7:24 PM
    certainly no problem currently
  • b

    bright-gpu-74537

    05/27/2023, 7:26 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1112099604968771715/image.pngâ–¾

1...16831684168516861687Latest