dendronhq / dendron

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

Lookup doesn't show completions for a hierarchy with schema #736

Open vicrdguez opened 3 years ago

vicrdguez commented 3 years ago

Please select the area your Bug applys to. (Multiple selections are Possible)

Describe the bug

Having a hierarchy decorated with a schema, there is no completions showing expected children. I find this issue when I'm more than 2 level deep in a hierarchy, but the schema defines potential childrens:

# --- dev
- id: dev
  desc: "dev stuff"
  children:
    - dev.lib
    - migration
    - mode

To Reproduce

Steps to reproduce the behavior:

  1. Create a schema for a hierarchy where you define children more than 2 levels deep
  2. Launch the Lookup for and search for that hierarchy
  3. Beyond the second level there is no completions

Expected behavior

The lookup shows completions for a hierarchy with schema, no matter how deep you are in the hierarchy

Screenshots

For 2 level deep. Lookup shows completions of expected children even when they don't exists as a note yet image

In the former picture most of the notes don't exist.

Beyond that point, I loose completions: image

Desktop (please complete the following information)

ghost commented 3 years ago

Question do you have entries for migration and mode

schemas: 
# --- dev
- id: dev
  desc: "dev stuff"
  children:
    - dev.lib
    - migration
    - mode
- id: migration
- id: mode

Secondly, is dev.lib a schema that gets imported?

kevins8 commented 3 years ago

No, that's just a naming thing because we already had a schema named lib elsewhere

On Tue, May 18, 2021 at 4:51 AM flammehawk @.***> wrote:

Question do you have entries for migration and mode

schemas: # --- dev

  • id: dev desc: "dev stuff" children:
    • dev.lib
    • migration
    • mode
  • id: migration
  • id: mode

Secondly, is dev.lib a schema that gets imported?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dendronhq/dendron/issues/736#issuecomment-843103269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABPIPSCBU2RTIRSHO7XGWTTOJIEFANCNFSM45A6VRHA .

vicrdguez commented 3 years ago

I was just trying Kevin's lang schema and found this. I didn't modify the schema itself. This is the full schema: https://gist.github.com/kevinslin/753b38649500b7d987b73724d8a1a7e5

kpathakota commented 3 years ago

Yes, that does seem surprising. Should display - migration, runtime and mode if I'm reading the schema properly.