Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 7 tasks
pjmattingly opened this issue Oct 3, 2023 · 1 comment
Labels
scope.schema Related to Schema Functionality status.triage-needed type.bug Something isn't working

Comments

@pjmattingly
Copy link

pjmattingly commented Oct 3, 2023

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

  • Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • Lookup. Dendron's Lookup Command
  • Views. Dendron Preview, Tree View, Side Panels in the UI
  • Schema. Dendron Schemas
  • Pod. Data import from / export to Dendron
  • Publish. External Site Publish
  • Markdown. Markdown features, such as syntax support and features

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)

  • OS: Windows
  • Browser (if with published websites; include version): NA
  • Versions (all that apply to bug): v0.124.0
    • Dendron Extension: NA
    • VS Code version: 1.82.2
    • Dendron CLI: NA (?)

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

@github-actions github-actions bot added scope.schema Related to Schema Functionality status.triage-needed type.bug Something isn't working labels Oct 3, 2023
@pjmattingly
Copy link
Author

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

Fixed a markdown error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope.schema Related to Schema Functionality status.triage-needed type.bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant