blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.94k stars 411 forks source link

Query shows different results on mobile and desktop, syncing issue with iPhone and ICloud Sync #960

Open wealthychef1 opened 2 years ago

wealthychef1 commented 2 years ago

What happened?

My query on desktop shows a different result than on my iPhone. Waiting for indexing etc is not the issue. The file updates in the phone when I type into it on the desktop, so I know sync is working.
The file I'm looking for exists on the phone and has the tag I'm looking for. It should show up.
The query is simple. I'm stumped.
Desktop result: 2022-03-19 15 32 09 CleanShot Obsidian

Mobile result: IMG_0304

The item on the phone that does not appear: IMG_0303

DQL

LIST FROM #shopping and #places/the_Mall  

JS

No response

Dataview Version

0.4.26

Obsidian Version

1.1.0 (38)

Device

iphone 13 pro max

OS

ios 15.4

wealthychef1 commented 2 years ago

Followup: I disabled all other community plugins and now dataview is showing the correct data. I'll find the culprit by binary search. oops, no I'm wrong. It worked for a second and now it doesn't again. How to debug?

AB1908 commented 2 years ago

Can you paste the YAML of the note that doesn't show up here? This would help us try and reproduce this behavior and figure out if/where there is a bug.

wealthychef1 commented 2 years ago

I think this has something to do with the awful iCloud synchronization I endure as an Apple user. Disappearing files, duplicates name "file 2", delays for no reason, etc. These are all norma Apple horrible behaviors. I switched to the paid Obsidian sync hoping it works better. Probably I'm getting duplicates and things disappearing. The app frequently hangs for long periods on startup indexing, and I believe this is because files it is examining are changing underneath it. Thanks Apple.
So let's see if using a better sync improves things. I'll let you know after the sync finishes and I have a chance to test things a bit more. The YAML was very simple:


Aliases: [[{{"Buy magnets"}}]]

I don't know why all the extra braces get added. Maybe a Templater bug? Obsidian is awesome so far but a bit buggy and crashy on iOS. Apple's policies make debugging harder than eating dirt.

wealthychef1 commented 2 years ago

OK I changed to a new vault and am using Obsidian Sync.
The "buy magnets" item is not showing up in the list on my iPhone.
I think maybe it's a plugin interaction thing. I'm in productivity jail.

wealthychef1 commented 2 years ago

OK, I waited and I guess maybe Obsidian Sync just needed to catch up.
I now see "buy magnets" in all my lists. I believe it's working properly and we are just looking at sync issues here. Apologies for wasting bandwidth but perhaps another user with the same kind of issues will benefit from my report.
I also was sharing my vault on iCloud between iPad and iPhone and I think that was a bad idea too. I'm an aggressive user and I like to jump between devices.
I think it would be good to advise users not to use iCloud sync. If one must avoid Obsidian Sync I think iSH and git would be a good approach. But I'm OK paying for a reliable sync with such a great piece of software.
Thanks for writing this plugin. It's really awesome.