Open wakatara opened 2 years ago
Can you try a few other queries to narrow down the behavior?
I've also had a lot of problems with this. It's not consistent and a PITA to debug. Especially when away from my desktop. From what I've seen it seems that querying frontmatter properties using the "dataview methods" does not always work. I've rewritten my code to instead use the metadata cache, and things seems to be working much better.
The strange thing is that most of the time it actually works perfectly reading the frontmatter via dataview methods, so it's really strange. I'm using and 'id' field that is added by my javascript code to notes to connect them together to some "sub notes", and this is where I'm seeing most of my problems. Notes created on desktop and synced over to mobile shows up in my queries, but when I create the notes on my iPhone they sometimes refuses to show up when I query them. When I run the exact same query on my desktop it works just fine, even showing the notes created on my iPhone.
I have can send a vault that have both queries that fail on mobile and my rewritten ones that work fine. Tell me if it would help...
We'll look at your vault later but can you give me steps to repro this? I'm gathering that I should try creating a note on mobile and then query it and it won't be picked up. Is that correct?
My problems seems to be related to reading the front matter properties. But I don't know exactly what and when it happens, so I can't give an easy example unfortunately. I did save a copy of my vault before I rewrote my code though. It's a small vault with two pages of interest, my old one that gave me problems and a new that seems to be working fine.
I see. Pass it along when you find the time and I'll try to repro.
https://www.icloud.com/iclouddrive/0b9tV7AYPPhIpjAqK8cjN2GdQ#16WOH_-_1_1_query_problems
Sorry for being late to this but are you seeing the issue on the latest beta? If so, I'll try giving this a shot over the weekend.
Unfortunately I can't test this as I'm traveling and only have my phone with me. Managing vaults on iOS is a pain... I tested this a few weeks back and still had problems, so I'm avoiding dataview queries that involves frontmatter properties. I hope that the sample vault I linked above does work to show the problem.
What happened?
DQL
JS
Dataview Version
Installed 2022-07-13 but not sure how to determine this on mobile
Obsidian Version
1.3.0 (63) API v0.15.6
Device
iPhone 13 Model MLQ63ZP/A
OS
iOS 15.5