https://www.dendron.so/ logo
Join Discord
Powered by
# dev
  • s

    Stephen

    12/24/2020, 7:39 PM
    I've had it happen due to my domain configuration, not having a www in the github pages settings, with a directory error during build in windows and another time when I inadvertently opened a second instance of a site so that it was calling for site assets from a separate port.
  • s

    Stephen

    12/24/2020, 7:43 PM
    so pumped to try equations with 11ty!
  • k

    kevins8

    12/24/2020, 8:00 PM
    the issue was in the build-cli. to make the cli exit cleanly, we manually call
    process.exit
    if you run
    buildSiteV2
    without the
    --serve
    option. unfortunately, this prevents 11ty post-build tasks from running (eg. copy the style sheets)
  • k

    kevins8

    12/24/2020, 8:00 PM
    pushing an update to it now. will post here when its live
  • k

    kevins8

    12/24/2020, 8:00 PM
    just a note that equations aren't out yet 😅 will aim to have that for monday's release!
  • k

    kevins8

    12/24/2020, 8:01 PM
    thanks everyone for jumping on this and bringing it to my attention!
  • k

    kevins8

    12/24/2020, 8:14 PM
    and its fixed!
  • l

    lukecarrier

    12/24/2020, 8:38 PM
    Has anyone ever seen this error before? https://github.com/LukeCarrier/dendron/runs/1606454472?check_suite_focus=true#step:9:818
    UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
  • l

    lukecarrier

    12/24/2020, 8:39 PM
    I have failed to repro this for some time now, I guess it's something to do with the different vault path between the runner and my machine
  • l

    lukecarrier

    12/24/2020, 8:41 PM
    There are timeouts everywhere in the Windows tests, I need to sit and debug the promises to understand why they're never completed
  • k

    kevins8

    12/24/2020, 8:58 PM
    hmm, i've seen it happen in
    path.join
    scenarios where we don't pass in a path. haven't seen it fail in that particular place but will also try to dig into it if i can get time today
  • h

    hikchoi

    12/25/2020, 4:16 AM
    https://github.com/dendronhq/dendron/issues/417 this looks like something I could pick up and start working today if anyone else isn't working on it.
  • h

    hikchoi

    12/25/2020, 4:47 AM
    do we have a document laying out any git conventions?
  • k

    kevins8

    12/25/2020, 7:21 AM
    that issue is all yours. as for conventions, we use chore/feature/enhance. will document it tomorrow!
  • h

    hikchoi

    12/25/2020, 7:21 AM
    great.
  • h

    hikchoi

    12/25/2020, 7:22 AM
    quick question. should I look for all instances of the old parser and swap it out or is this issue just for the specified place?
  • k

    kevins8

    12/25/2020, 7:31 AM
    just this place for the first issue
  • k

    kevins8

    12/25/2020, 7:31 AM
    there are other places but we can create separate requests for that
  • h

    hikchoi

    12/25/2020, 7:31 AM
    got it.
  • h

    hikchoi

    12/25/2020, 7:36 AM
    looks like I need to learn what pods do 😄 can't test it without knowing what it does.
  • k

    kevins8

    12/25/2020, 7:42 AM
    https://dendron.so/notes/66727a39-d0a7-449b-a10d-f6c438185d7f.html
  • h

    hikchoi

    12/25/2020, 7:43 AM
    already on it 🙂
  • s

    shellman

    12/25/2020, 11:12 PM
    i am trying to push my changes to an new branch, but it says that I don't have permission?
  • k

    kevins8

    12/25/2020, 11:30 PM
    can you fork and send a pull request?
  • h

    hikchoi

    12/26/2020, 3:35 AM
    replacing the old parser was simple enough (or I'm completely blanking on something), but I'm kinda lost with testing as I'm fairly new to js/ts tooling (especially developing for vscode). I keep digging through the codebase and find new stuff 😄 It's fun though. Python is my bread and butter and I'm stepping out of my comfort zone. Weirdly refreshing.
  • k

    kevins8

    12/27/2020, 12:27 AM
    python was my first programming language and holds a special place in my heart 🙂 for testing, you can navigate to the test file inside vscode: https://github.com/dendronhq/dendron/blob/master/packages/pods-core/src/builtin/__tests__/MarkdownPod.spec.ts#L10:L10 once there, follow [these instructions](https://dendron.so/notes/cb22bd36-d45a-4ffd-a31e-96c4b39cb7fb.html#run-a-specific-test-from-non-dendron-plugin-package) to run all tests from a given file
  • h

    hikchoi

    12/27/2020, 1:06 AM
    yeah I spent a bit of time yesterday looking into the test codes. What I'm still trying to figure out are what cases to test for
    MarkdownPublishPod
  • k

    kevins8

    12/27/2020, 1:10 AM
    got it. the tests cover various functionality of the pods. there's a bit of incantation to setup the scaffoldingb because we run the logic in multiple places (eg. CLI and Plugin) which have different test runners (mocha & jest) and sometimes different engines (the thing that does indexing in engine). the core of the test logic is here but happy to go into more detail if its still confusing https://github.com/dendronhq/dendron/blob/master/packages/common-test-utils/src/presets/pods-core/markdown.ts#L112:L112
  • h

    hikchoi

    12/27/2020, 1:12 AM
    does the three test presets cover how the pods should function?
  • h

    hikchoi

    12/27/2020, 1:15 AM
    I did end up there and was wondering if those were enough or there should be more added for
    MarkdownPublishPod
    (as the .spec.ts didn't have tests for them yet and I wasn't sure if those presets were specific to
    MarkdownImportPod
    or just Markdown in general)
1...394041...108Latest