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

    billowy-waiter-28954

    04/18/2023, 10:02 PM
    A new (minor) release of Ceramic is out! https://github.com/ceramic-engine/ceramic/releases/tag/v1.1.1
  • b

    billowy-waiter-28954

    04/18/2023, 10:02 PM
    It comes along with a new guide about **observables**: https://ceramic-engine.com/guides/observables/
  • b

    billowy-waiter-28954

    04/18/2023, 10:07 PM
    !mention @User
  • a

    ambitious-knife-25690

    04/18/2023, 10:53 PM
    @User
  • a

    ambitious-knife-25690

    04/18/2023, 10:53 PM
    Copy code
    hx
    if (content == null || content.length < 1) {
      trace(message.author.tag);
      return;
    }
  • a

    ambitious-knife-25690

    04/18/2023, 10:53 PM
    I don't think discord would let me send a ping without content
  • v

    victorious-architect-82648

    04/21/2023, 12:08 AM
    quick question: I'm following along with the new project guide on the ceramic website and I'm pleased things build and run out of the box! Is debugging in VSCode supported at the moment? It looks like it automatically configures a "Default web" launch profile but it doesn't seem to launch the electron container. Can't find anything about debugger setup in the docs 🙂
  • a

    ambitious-knife-25690

    04/21/2023, 12:10 AM

    https://cdn.discordapp.com/attachments/853414608747364352/1098762766044626964/image.pngâ–¾

  • a

    ambitious-knife-25690

    04/21/2023, 12:11 AM
    make sure debug is selected at the bottom
  • a

    ambitious-knife-25690

    04/21/2023, 12:12 AM
    ahh, i just got what you mean
  • a

    ambitious-knife-25690

    04/21/2023, 12:12 AM
    it looks like the default state is to "attach" to a process
  • a

    ambitious-knife-25690

    04/21/2023, 12:13 AM
    so run the debug variant build task, which will launch an electron window
  • a

    ambitious-knife-25690

    04/21/2023, 12:13 AM
    and then click the debugger
  • a

    ambitious-knife-25690

    04/21/2023, 12:13 AM
    I wasn't a particular fan of this workflow so i made a separate way to handle electron in ceramic
  • v

    victorious-architect-82648

    04/21/2023, 12:15 AM
    gotcha, yeah the run and then attach process could make it difficult to debug initialization issues. Thanks for the info 😄
  • a

    ambitious-knife-25690

    04/21/2023, 12:16 AM
    with the above, i just have a vscode shortcut to the debugger restart button, which triggers a rebuild and then the window just refreshes
  • a

    ambitious-knife-25690

    04/21/2023, 12:16 AM
    faster
  • b

    billowy-waiter-28954

    04/21/2023, 9:23 AM
    Yeah, I'd like to have the debugger attach at init too, but last time I tried failed to do so. It's probably possible though. If anyone want to try to fix that in Ceramic template project, feel free to do so and make a PR 😄
  • v

    victorious-architect-82648

    04/21/2023, 3:51 PM
    what command or set of commands does ceramic run to invoke the electron shell?
  • b

    billowy-waiter-28954

    04/21/2023, 3:54 PM
    ceramic clay run web --setup --assets
  • b

    billowy-waiter-28954

    04/21/2023, 3:54 PM
    It builds the project and runs it via electron
  • v

    victorious-architect-82648

    04/21/2023, 4:06 PM
    hm I think it should be possible to just change the default launch.json but the process needs to be separated into a build step and then a run step. trying to look through the engine source but it might be faster to just ask what those commands might be
  • v

    victorious-architect-82648

    04/21/2023, 4:07 PM
    the way they specify to launch electron is using the node launch type and it needs a "runtime executable" location which annoyingly can't be just a command line command
  • a

    ambitious-knife-25690

    04/21/2023, 4:12 PM
    it can be
  • a

    ambitious-knife-25690

    04/21/2023, 4:12 PM
    well, you can just put
    electron
    there and it would pick up the global install of electron
  • a

    ambitious-knife-25690

    04/21/2023, 4:13 PM
    look at the launch.json in the quote above, that's what i do
  • a

    ambitious-knife-25690

    04/21/2023, 4:17 PM
    also, you can specify a prelaunchtask and use ceramic to launch electron
  • a

    ambitious-knife-25690

    04/21/2023, 4:18 PM
    not sure if that would let you launch and attach straight away
  • a

    ambitious-knife-25690

    04/21/2023, 4:18 PM
    but you would need to restart the whole electron instance every time you wanted to rebuild
  • b

    billowy-waiter-28954

    04/21/2023, 4:40 PM
    Yes it can be separated, will give you the details when in front of a computer
1...109110111...124Latest