dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.52k stars 247 forks source link

Error when attempting to create a schema: "Details: Cannot destructure property 'imports' of 'e' as it is undefined." #3951

Open pjmattingly opened 9 months ago

pjmattingly commented 9 months ago

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Describe the bug

Trying to create a new schema. When saving {root}/notes/daily.schema.yml the error "dendron.log" appears, rather than saving normally as expected.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new file {root}/notes/daily.schema.yml
  2. Attempt to save the file
  3. See error

Expected behavior

Expecting the file to save normally without error.

This issue implies that there should be different behaviour when encountering a malformed schema? If this error is due to a malformed schema, I would hope for a warning or error that indicated the problem.

Screenshots

image

Desktop (please complete the following information)

Additional context

I was hoping to create a template for my daily journal. I believe the tutorial mentioned how to do this, but I can't find a mention of it now.

Looking at the documentation it's not clear how to begin. It's mentioned here to make schema files with the following format: {name}.schema.yml. But it's unclear how to make a schema for the daily log file. This issue indicated that the default naming scheme for the daily journal schema is daily.schema.yml; There is also a set of example schemas here, but it's not clear from the README which one would be used to provide a template for the daily journal. Also, it's not clear where to save the schema file; Should it be saved in the root? I'm guessing it should be in the notes directory, but given this error I'm unsure.

Also, it would be helpful if the documentation were to cover this workflow; That is, how to create a template (schema) for the daily journal.

Finally pressing the "Go to Schema" button (see screenshot), does not appear to have an effect.

Dendron Log file

Please attach the output of > Dendron:Dev: Open Logs here dendron.log

pjmattingly commented 9 months ago

Re: https://github.com/dendronhq/dendron/actions/runs/6398520425

Fixed a markdown error.