https://www.dendron.so/ logo
Join DiscordCommunities
Powered by
# dev
  • k

    kevins8

    05/24/2022, 4:58 PM
    also [[Note Preview|dendron://dendron.docs/pkg.dendron-plugin-views.ref.note-preview]]
  • g

    glucinater21

    05/25/2022, 3:11 AM
    Hey I'm trying to contribute to dendron but am having trouble with the setup
  • g

    glucinater21

    05/25/2022, 3:12 AM
    Got this error when trying to do npx yarn setup
  • s

    SeriousBug

    05/25/2022, 3:14 AM
    This should help I think: https://docs.dendron.so/notes/d0f34b08-0725-4ec5-a600-a4d6309bb2ae#openssl-issues
    g
    • 2
    • 25
  • g

    glucinater21

    05/25/2022, 4:53 AM
    Any recs for a good first issue?
  • s

    SeriousBug

    05/25/2022, 4:53 AM
    There are these issues: https://github.com/dendronhq/dendron/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22
  • n

    Nidoling

    05/25/2022, 11:04 PM
    I'm trying to modify
    visitParents
    to be able to accept an async visitor here: https://github.com/dendronhq/dendron/blob/5996538d598f7ad747cb293ef35f58729f8005c3/packages/engine-server/src/markdown/remark/dendronPub.ts#L180 Any tips on how to build a general purpose method that does that?
  • s

    SeriousBug

    05/25/2022, 11:06 PM
    I think I implemented something like that already, can you check the
    decorators.ts
    in engine? I'm away from my desk so I'm not sure exactly where right now, but I can look it up in a couple hours
  • n

    Nidoling

    05/25/2022, 11:17 PM
    @SeriousBug Are you referring to
    visitAsync
    ? https://github.com/dendronhq/dendron/blob/5996538d598f7ad747cb293ef35f58729f8005c3/packages/engine-server/src/markdown/utils.ts#L565 If so, yeup it looks similar to what i want; i'm trying to combine that with
    visitParentsIndices
    although the current usage at
    dendronPub.ts
    works with number return types to work with siblings so I was wondering if there was another way
  • s

    SeriousBug

    05/25/2022, 11:24 PM
    Sorry, I don't have a lot of suggestions. I will suggest keeping the transformations in-order and not parallelizing them (
    visitAsync
    does this too) because some of the code might rely on the transformations being done in a specific order
  • n

    Nidoling

    05/25/2022, 11:28 PM
    no worries, i might just try to avoid making this async if it gets too tedious
  • a

    AshSimmonds

    05/28/2022, 9:53 AM
    There's a
    severity: high
    vulnerability reported due to use of
    isomorphic-fetch
    package which hasn't been updated in several years, and as far as I can tell it's only used in Dendron for
    Dropbox.authenticateWithCordova()
    which is such an razor's edge case, and can probably be replaced with
    lquixada/cross-fetch
    if it's still necessary.
  • k

    kevins8

    05/29/2022, 1:31 AM
    thanks for the heads up. have a PR to remove it here as we no longer use it > https://github.com/dendronhq/dendron/pull/3002
  • k

    kevins8

    06/04/2022, 1:22 AM
    @SeriousBug for https://github.com/dendronhq/dendron/blob/master/packages/engine-server/src/workspace/service.ts#L1098 - do you remember why we don't add self contained vaults to config? I'm looking at the setup workspace code and it doesn't look like it adds vaults to the config
  • s

    SeriousBug

    06/04/2022, 1:25 AM
    I'm pretty sure setup workspace does add it to the config. Having it at both places was causing it to be duplicated. I can take a look tonight to find the code if you want
  • k

    kevins8

    06/04/2022, 1:28 AM
    hmm, all good, not urgent. i'll do some digging
  • k

    kevins8

    06/04/2022, 3:39 AM
    no rush to review - just a fyi that i found the issue > https://github.com/dendronhq/dendron/pull/3042
  • a

    alexis<3

    06/06/2022, 8:25 PM
    is the paste file tool part of the main repo for dendron or is it a 3rd party thing
  • r

    rlh1994

    06/06/2022, 8:26 PM
    Paste image? https://github.com/dendronhq/dendron-paste-image Or something else?
  • a

    alexis<3

    06/06/2022, 8:26 PM
    there is a function called
    paste file
  • a

    alexis<3

    06/06/2022, 8:26 PM
    i know the paste-image was a 3rd party fork so i was curious if the file was as well
  • s

    SeriousBug

    06/06/2022, 8:27 PM
    It's in the main repo: https://github.com/dendronhq/dendron/blob/master/packages/plugin-core/src/commands/PasteFile.ts
  • a

    alexis<3

    06/06/2022, 8:28 PM
    thanks! im thinking theres a small (probably easy for a TS newb like me) change that would make it more useful. If it could detect common image extensions and drop a
    !
    before the linke to render the image
  • s

    SeriousBug

    06/06/2022, 8:31 PM
    Sure! Let us know if you have any questions, otherwise looking forward to a PR 🙂
  • s

    SeriousBug

    06/07/2022, 4:55 AM
    The plugin tests in my PR are failing, but the test they fail on doesn't exist in the codebase: https://github.com/dendronhq/dendron/pull/3049 failure: https://github.com/dendronhq/dendron/runs/6764154718?check_suite_focus=true#step:16:3161 There is literally no test named
    decorators are updated
  • k

    kevins8

    06/07/2022, 4:03 PM
    have you updated the ci.yml cache key? this happens sometimes when old tests are deleted but are still in the cache
  • n

    Nidoling

    06/08/2022, 12:22 AM
    Since NoteProps is unique on id and (fname+vault+wsroot), does it make sense to overload
    engine.getNote
    to support both types?
  • s

    SeriousBug

    06/08/2022, 7:55 PM
    I tried doing so (twice), but it still looks like the tests are failing.
  • k

    kevins8

    06/08/2022, 7:57 PM
    is this the test in question? https://github.com/dendronhq/dendron/blob/master/packages/plugin-core/src/test/suite-integ/WindowWatcher.test.ts#L45:L45
  • s

    SeriousBug

    06/08/2022, 7:58 PM
    Hmm, let me try merging master again. I tried it, but maybe that test wasn't included.
1...102103104...108Latest