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

    bright-gpu-74537

    09/08/2022, 6:50 AM
    when you say "writing a macro" what do you mean?
  • b

    bright-gpu-74537

    09/08/2022, 6:50 AM
    you mean a vscode task? Or a haxe macro?
  • h

    happy-agent-4114

    09/08/2022, 6:50 AM
    vscode task
  • b

    bright-gpu-74537

    09/08/2022, 6:50 AM
    gotcha
  • h

    happy-agent-4114

    09/08/2022, 6:50 AM
    ok yeah lmao vscode just doesn't know how to build
  • b

    bright-gpu-74537

    09/08/2022, 6:50 AM
    yeah, i dont think language server comes into it at that point
  • h

    happy-agent-4114

    09/08/2022, 6:51 AM
    Copy code
    json
    {
        "type":"shell",
        "command":[
            "haxe",
            "hxwidgets.hxml"
        ],
        "label": "Build [default]"
    }
    this one works
  • h

    happy-agent-4114

    09/08/2022, 6:51 AM
    even though it does literally the exact same thing
  • h

    happy-agent-4114

    09/08/2022, 6:51 AM
    I'm just gonna blame microsoft and keep working
  • b

    bright-gpu-74537

    09/08/2022, 6:52 AM
    or the vshaxe plugin? Maybe type:hxml is doing something cooky
  • h

    happy-agent-4114

    09/08/2022, 6:52 AM
    lemme look
  • h

    happy-agent-4114

    09/08/2022, 6:54 AM
    yeah I have no idea
  • h

    happy-agent-4114

    09/08/2022, 6:55 AM
    for all intents and purposes I'm 99.99% sure these do the same thing
  • b

    bright-gpu-74537

    09/08/2022, 6:58 AM
    well... ... ... ... they cant be 😉
  • b

    bright-gpu-74537

    09/08/2022, 6:58 AM
    if input is the same, and the output is different the process must be different 🙂
  • h

    happy-agent-4114

    09/08/2022, 6:59 AM
    it could be that one runs as a process and the other runs as a shell, and hxcpp doesn't like process runners
  • h

    happy-agent-4114

    09/08/2022, 6:59 AM
    that's what my first thought is at least
  • b

    bright-gpu-74537

    09/08/2022, 7:00 AM
    well, this is the build though... so i think its more about module resolution (ie, paths)
  • b

    bright-gpu-74537

    09/08/2022, 7:01 AM
    did you try: https://discord.com/channels/162395145352904705/565569107701923852/1017323084665081856
  • h

    happy-agent-4114

    09/08/2022, 7:02 AM
    yeah, they both reference the same libraries
  • b

    bright-gpu-74537

    09/08/2022, 7:02 AM
    ¯\_(ツ)_/¯
  • h

    happy-agent-4114

    09/08/2022, 7:02 AM
    problem is solved enough for me so like
  • h

    happy-agent-4114

    09/08/2022, 7:02 AM
    brb, I'm "at work" so I have to "do my job"
  • h

    happy-agent-4114

    09/08/2022, 11:35 AM
    what event should I bind to if I want something to run when an item is selected from a menu bar?
  • h

    happy-agent-4114

    09/08/2022, 11:35 AM
    I have it set to MouseEvent.CLICK on the menu option itself, is there something better?
  • h

    happy-agent-4114

    09/08/2022, 11:37 AM
    or, like, something that works at all
  • b

    bright-gpu-74537

    09/08/2022, 11:37 AM
    MenuEvent.MENU_SELECTED
    on the menu bar
  • h

    happy-agent-4114

    09/08/2022, 11:38 AM
    but how can I tell what option was selected through that?
  • h

    happy-agent-4114

    09/08/2022, 11:38 AM
    does MenuEvent have an option I can feed into a switch?
  • b

    bright-gpu-74537

    09/08/2022, 11:39 AM
    event.menuItem.id
1...125212531254...1687Latest