https://linen.dev logo
Join Discord
Powered by
# lime
  • b

    bulky-insurance-39338

    09/24/2022, 3:44 PM
    For 2d-only i find it bestcross into using limes default OpenGL ES2/3 - context (+gl-extensions on need). Can you use the same Kha-rendercode into one of the "graphics" there for Web/OpenGL, Vulkan, Metal and DierctX11/12 together @refined-laptop-39041 ? ( or using multiple "graphics2-5" parallele into one application without much of trunks? )
  • v

    victorious-beard-37722

    09/24/2022, 8:58 PM
    does anyone knows how to solve this line of error?
    C:/HaxeToolkit/haxe/lib/nodejs/2,2,7/js/Node.hx:725: characters 11-16 : Unexpected final
  • q

    quiet-garden-70

    09/24/2022, 8:58 PM
    might be using
    final var
    or something
  • v

    victorious-beard-37722

    09/24/2022, 8:59 PM
    so should i change this?
  • q

    quiet-garden-70

    09/24/2022, 9:40 PM
    you should probably see if there's an update, perhaps the git repo
  • q

    quiet-garden-70

    09/24/2022, 9:42 PM
    Hold on. That library is 7 years old. At the very least use hxnodejs https://lib.haxe.org/p/hxnodejs/
  • e

    elegant-twilight-61392

    09/25/2022, 1:06 AM
    i dont think you should be using hxnodejs with lime
  • b

    best-agent-85158

    09/25/2022, 10:07 AM
    If youre using electron, it's highly recommended
  • b

    best-agent-85158

    09/25/2022, 10:07 AM
    It gives you sys stuff
  • e

    elegant-twilight-61392

    09/25/2022, 3:07 PM
    i bet in a way thats deprecated
  • b

    best-agent-85158

    09/25/2022, 10:24 PM
    Nah
  • e

    elegant-twilight-61392

    09/25/2022, 10:24 PM
    how then?
  • e

    elegant-twilight-61392

    09/25/2022, 10:25 PM
    you cant use node stuff from the browser side without setting a flag that not recommended to set
  • e

    elegant-twilight-61392

    09/25/2022, 10:26 PM
    the way you are supposed to do it is have the browser process send a message to the node process in string form that asks the node process to do something
  • b

    best-agent-85158

    09/25/2022, 10:27 PM
    I've literally done that with electron like a month ago
  • b

    best-agent-85158

    09/25/2022, 10:27 PM
    Ou depend on electron and hxnodejs, and just use sys functions
  • e

    elegant-twilight-61392

    09/25/2022, 10:28 PM
    the flag im talking about is in electron, not lime. lime probably does that without you knowing
  • e

    elegant-twilight-61392

    09/25/2022, 10:29 PM
    look at the output and see if it sets
    nodeIntegration
    or whatever to true on the node side
  • b

    best-agent-85158

    09/25/2022, 10:39 PM
    Ohhhh that thing!
  • b

    best-agent-85158

    09/25/2022, 10:39 PM
    It's not deprecated, it's a warning
  • r

    rhythmic-wolf-50922

    09/26/2022, 3:20 PM
    yeah, Lime definitely doesn't handle Electron properly. eventually, we'll probably need to write a whole layer to do it correctly, where we expose the functions from the main process to the renderer process, the way that they recommend. I think that Electron wants to remove the
    nodeIntegration
    in the future. it's a warning for a reason.
  • s

    salmon-solstice-30057

    09/28/2022, 10:51 PM
    I'm having to rebuild my build environment again after having to reinstall Windows for the Xth time. However, I'm having trouble setting up the Lime alias.
    haxelib run lime setup -alias
    worked before, but it's not this time.
  • a

    able-action-74275

    09/28/2022, 10:52 PM
    as far as I know you don't need the
    -alias
  • s

    salmon-solstice-30057

    09/28/2022, 10:52 PM
    With or without it, it will not set up the alias.
  • a

    able-action-74275

    09/28/2022, 10:52 PM
    no errors?
  • s

    salmon-solstice-30057

    09/28/2022, 10:53 PM
    None that are being shown to me, at least.
  • a

    able-action-74275

    09/28/2022, 10:54 PM
    does it appear to finish setup?
  • s

    salmon-solstice-30057

    09/28/2022, 10:54 PM
    As far as I can tell. If I run it without
    -alias
    , it makes sure the required packages are installed.
  • a

    able-action-74275

    09/28/2022, 10:55 PM
    you may just need to reload terminal
  • s

    salmon-solstice-30057

    09/28/2022, 10:56 PM
    I've done that. I also rebooted.
1...313233...138Latest