https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • l

    L3n

    04/16/2022, 5:06 PM
    gotcha, thanks πŸ‘
  • f

    foureyedsoul

    04/16/2022, 8:17 PM
    I haven't changed anything in my setup, but I've just started to get repeated "Extension host terminated unexpectedly 3 times within the last 5 minutes" errors. Any idea of what's causing this or suggestions of how to fix it?
  • s

    SeriousBug

    04/16/2022, 8:39 PM
    Are you able to run
    Dendron:Dev: Open Logs
    ? You can also revert to an older version temporarily by right clicking the extension and picking "Install Version" or something like that (sorry not on my PC)
  • f

    foureyedsoul

    04/16/2022, 8:55 PM
    Thanks for these suggestions! It's semi-stable at the moment. It'll sometimes crash three times, other times crash just once and then work. What should I do with the output of
    Open Logs
    ?
  • s

    SeriousBug

    04/16/2022, 9:23 PM
    Send it to me πŸ˜… I can't look at it right now but I'll look tonight
  • f

    foureyedsoul

    04/16/2022, 9:24 PM
    Thank you β€” and no rush! Is a private message okay?
  • s

    SeriousBug

    04/16/2022, 9:24 PM
    Yup that's good
  • s

    SeriousBug

    04/17/2022, 2:39 AM
    Unfortunately I don't see any errors logged. @User anyone else has any thoughts on how to diagnose this?
  • k

    kevins8

    04/17/2022, 3:35 AM
    hmm, so besides for logs, did this start happening after some event? (eg. new version of vscode, new version of dendron, etc)
  • k

    kevins8

    04/17/2022, 3:36 AM
    would try either a different version of dendron, a different version of vscode, or disabling all extensions and enabling dendron to see if this is an issue with dendron or another extension
  • m

    mihaiconstantin

    04/17/2022, 7:24 AM
    Ha! It worked, thanks!
  • m

    mihaiconstantin

    04/17/2022, 7:34 AM
    I am building a small extension to automate common repetitive actions in my notes. I am wondering what is the recommended way to create a file via Dendron. When I create it via VS Code's API, then the file is not a valid Dendron note (i.e., no front matter and no schema templates applied). I only need to be able to create a note and ensure the schema template or the note traits are applied. I'd appreciate it if you can point me in the right direction!
  • s

    SeriousBug

    04/17/2022, 7:42 AM
    I think the way to go is creating the file with VSCode API (or by directly accessing the file system) anyway, and adding your own frontmatter. The requirements are light, you need to generate some random string for the
    id
    and add the
    title
    ,
    created
    and
    updated
    fields. The other option is calling the "Note Lookup" command programatically to create a note, but it looks like it's not possible to fully automate that. You could prefill the initial value in the lookup and change lookup settings, but that's about it: https://github.com/dendronhq/dendron/blob/master/packages/plugin-core/src/commands/NoteLookupCommand.ts#L73 (For the second option, docs on executing a command from the API are here: https://code.visualstudio.com/api/references/vscode-api#commands)
  • s

    SeriousBug

    04/17/2022, 7:45 AM
    You could also send a request to the Dendron engine, but it doesn't have a documented stable API right now so it might be flaky in the future.
  • m

    mihaiconstantin

    04/17/2022, 7:48 AM
    I think I like the second option better, i.e., calling the "Note Lookup" command. I was wondering if I could just use the localhost server Dendron creates. Is that the engine you mentioned?
  • m

    mihaiconstantin

    04/17/2022, 7:49 AM
    Thanks for the link, I think the
    CommandRunOpts
    fields are more than enough for what I need to do.
  • s

    SeriousBug

    04/17/2022, 7:50 AM
    Oh great, I'll also drop a link for where the engine (the localhost server) creates notes too just in case.
  • m

    mihaiconstantin

    04/17/2022, 7:51 AM
    That's great! Thanks a lot! πŸ™‚
  • s

    SeriousBug

    04/17/2022, 7:54 AM
    Here's the note write endpoint (https://github.com/dendronhq/dendron/blob/d2f460b36d836ed187e9da9a67d9ca2d48102b87/packages/common-all/src/api.ts#L481) (it's at
    /note/write
    ) which requires you to add all the note properties πŸ˜… And here's those properties (https://github.com/dendronhq/dendron/blob/b59da747fe8a0dce747438855d0f3170b783db0d/packages/common-all/src/types/foundation.ts#L143) Yeah the API is about as useful as just creating the file πŸ˜… glad the lookup is good enough though
  • m

    mihaiconstantin

    04/17/2022, 8:02 AM
    Indeed! Sticking to the lookup command for now, but I can think of some interesting cases for being able to send requests to the server. Thank you for clarifying all these options and providing specific links. I appreciate it!
  • n

    NZ-John

    04/17/2022, 9:02 AM
    has anyone had any luck using Dendron with Auth0? am wanting to implement some kind of user login for my Dendron space.. any ideas?
  • f

    foureyedsoul

    04/17/2022, 6:30 PM
    Just following up: reading Kevin's suggestions reminded me that I'd added this ArgDown extension yesterday ( https://marketplace.visualstudio.com/items?itemName=christianvoigt.argdown-vscode ). I don't think it started causing any trouble until I reloaded the window, so I'd already forgotten about adding it when I messaged. VS Code is behaving so far today, now that I've disabled the ArgDown extension. Maybe it's another one to add to the list of incompatible / troublemaker extensions?
  • k

    kevins8

    04/17/2022, 9:20 PM
    @User could you confirm and add if needed? πŸ‘†
  • s

    shaughnpuppy

    04/18/2022, 7:04 PM
    Has anyone made something like daily notes but for 2 week periods? Id like to make auto β€œsprint notes” for my biweekly agile sprints?
  • f

    foureyedsoul

    04/18/2022, 8:05 PM
    Instead of daily notes, I have weekly notes (with each day as a markdown heading). Is that the sort of thing you have in mind?
  • s

    shaughnpuppy

    04/18/2022, 8:13 PM
    Almost exactly yes BUT instead of weekly I want every other week since my team does 2 week sprints
  • s

    shaughnpuppy

    04/18/2022, 8:13 PM
    The best solution is to just not use agile but thats not happening hahaha
  • s

    shaughnpuppy

    04/18/2022, 8:25 PM
    Im thinking of just making an external script to create it since it would be nice to automatically fill in other stuff like links to jira
  • f

    foureyedsoul

    04/18/2022, 8:31 PM
    I've never tried coordinating Dendron with another tool like that, but a script might work! If it's somehow helpful, what I do is have a template for my weekly notes. Here's a link to an older post that has my schema, too: https://discord.com/channels/717965437182410783/735365126227493004/928725421879619607
  • a

    alexis<3

    04/18/2022, 8:44 PM
    does the dendron cli expose note creation?
1...610611612...757Latest