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

    user

    01/24/2020, 5:46 PM
    Ok so I got monaco working-ish; I dont understand why I dont see the text. The weird things is I see the text in the preview its colorized and themed but I dont see the text in the main view:
  • u

    user

    01/24/2020, 5:47 PM
    Its probably related to the font not being loaded or something like that(but I mean isnt that the loaders job ?)
  • u

    user

    01/24/2020, 5:48 PM
    or the css
  • u

    user

    01/24/2020, 5:50 PM
    ok so probably this: https://github.com/microsoft/monaco-editor/issues/1759
  • u

    user

    01/24/2020, 5:57 PM
    nope not it...
  • b

    bright-gpu-74537

    01/24/2020, 6:13 PM
    is the editor off page somehow? Looks like your screenshot starts at line 8
  • u

    user

    01/24/2020, 6:15 PM
    just scrolled down
  • u

    user

    01/24/2020, 6:15 PM
    to show the preview on the side
  • b

    bright-gpu-74537

    01/24/2020, 6:16 PM
    hmmm... weird... it looks like there is something there as you have the indentation lines
  • b

    bright-gpu-74537

    01/24/2020, 6:16 PM
    never seen it before... can you select the text or anything like that?
  • u

    user

    01/24/2020, 6:17 PM
    yes I can select and do all the usual stuff but I just cant see the text;
  • u

    user

    01/24/2020, 6:17 PM
    maybe it could be the component being drawn over it
  • b

    bright-gpu-74537

    01/24/2020, 6:18 PM
    seems weird if it is... i would just use a test .html project, no haxe, no kha, no haxeui-kha and see if can isolate whats going on
  • b

    bright-gpu-74537

    01/24/2020, 6:18 PM
    the component should be underneath... but im not sure how youre doing things
  • u

    user

    01/24/2020, 6:18 PM
    I could share the repo if you want
  • b

    bright-gpu-74537

    01/24/2020, 6:21 PM
    sure
  • u

    user

    01/24/2020, 6:21 PM
    https://github.com/mundusnine/monaco-kha
  • b

    bright-gpu-74537

    01/24/2020, 6:23 PM
    try removing stuff and seeing if it works, stuff like this:
  • b

    bright-gpu-74537

    01/24/2020, 6:23 PM
    Copy code
    Monaco.editor.colorizeElement(element,{});
            Monaco.editor.setTheme('vs-dark');
  • u

    user

    01/24/2020, 6:23 PM
    did that 😛
  • b

    bright-gpu-74537

    01/24/2020, 6:23 PM
    dunno if it will have any effect though
  • b

    bright-gpu-74537

    01/24/2020, 6:23 PM
    ...right
  • u

    user

    01/24/2020, 6:23 PM
    didnt have them before and it still didnt work
  • b

    bright-gpu-74537

    01/24/2020, 6:24 PM
    right
  • u

    user

    01/24/2020, 6:25 PM
    I tried to see if I could set the font from Monaco but didnt see something that made sense; only like applyFontInfo which yeah seems weird maybe its that
  • b

    bright-gpu-74537

    01/24/2020, 6:31 PM
    must be something with your browser:
  • u

    user

    01/24/2020, 6:31 PM
    its node
  • u

    user

    01/24/2020, 6:31 PM
    but probably
  • u

    user

    01/24/2020, 6:31 PM
    I will try in the browser
  • b

    bright-gpu-74537

    01/24/2020, 6:31 PM
    i do get this exception though:
1...165166167...1687Latest