ObsidianPPV icon indicating copy to clipboard operation
ObsidianPPV copied to clipboard

Updated Dataview breaks most queries

Open totallyGreg opened this issue 2 years ago • 4 comments

This appears to be related to newer version of luxon that changes behavior as described here. https://github.com/blacksmithgu/obsidian-dataview/issues/1769#issuecomment-1399647016

totallyGreg avatar Jan 31 '23 01:01 totallyGreg

Oh interesting, I'll take a look tomorrow (hopefully).

tot0 avatar Feb 12 '23 06:02 tot0

I waiting for you to fix it. I also have the same issue

YIRU69 avatar Feb 20 '23 01:02 YIRU69

Ok so I've pushed an update which replaces all luxon usage with dv.luxon, tested with latest plugins/obsidian and seems to all work.

Many files created from templates (like Cycles and Actions) will still reference luxon directly and need to be updated. Steps to migrate existing files are:

  1. Opening your vault in vscode (or any text editor with find+replace)
  2. Find in your whole vault (cmd/ctrl+shift+f), enable regex in the find dialog (.*)
  3. Filter down to only *.md files so as to not mess with any *.js files from plugins.
  4. Find: , luxon,
  5. Replace: , luxon:dv.luxon,
  6. Find: luxon,\n
  7. Replace: luxon:dv.luxon,\n
  8. Find: \{luxon,
  9. Replace: {luxon:dv.luxon,
  10. Find: luxon\}
  11. Replace: luxon:dv.luxon}
  12. Find: ([^.])luxon
  13. Replace: $1dv.luxon
image

tot0 avatar Feb 21 '23 02:02 tot0

I am really appreciate it!

YIRU69 avatar Feb 21 '23 04:02 YIRU69