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.83k stars 405 forks source link

Bug report Stuck on "Loading..." #1871

Open yannlk opened 1 year ago

yannlk commented 1 year ago

What happened?

I don't know what caused this but overnight every single query in my vault outputs: Loading... (if DQL)

Evaluation Error: TypeError: i.push is not a function
    at l$1.diffed (plugin:dataview:14592:1539)
    at j$2 (plugin:dataview:14590:6418)
    at w$2 (plugin:dataview:14590:2236)
    at j$2 (plugin:dataview:14590:6192)
    at w$2 (plugin:dataview:14590:2236)
    at L$1 (plugin:dataview:14590:7442)
    at j$2 (plugin:dataview:14590:6377)
    at w$2 (plugin:dataview:14590:2236)
    at L$1 (plugin:dataview:14590:7442)
    at j$2 (plugin:dataview:14590:6377)

(if js)

I've tested this with all kind of very simple queries and always get the same output.

Dataview Version

0.5.55

Obsidian Version

1.1.16

OS

MacOS

yannlk commented 1 year ago

I have found the error, I had one query which was causing an error and made all the others fail to load. Weird that one query affects all others...

AB1908 commented 1 year ago

Can you share that original query for reference? This is a weird issue.

yannlk commented 1 year ago

I'm so sorry I can't find it, I will do if the issue pops up again

begend commented 1 year ago

i have same error

the log as follows: Uncaught (in promise) TypeError: i.push is not a function at l$1.diffed (plugin:dataview:15978:1539) at j$2 (plugin:dataview:15976:6418) at w$2 (plugin:dataview:15976:2236) at j$2 (plugin:dataview:15976:6192) at w$2 (plugin:dataview:15976:2236) at j$2 (plugin:dataview:15976:6192) at S$1 (plugin:dataview:15976:8401) at ReactRenderer.onload (plugin:dataview:16220:9) at e.load (app.js:1:869278) at e.addChild (app.js:1:869679)

obsidian SYSTEM INFO: Obsidian version: v1.1.16 Installer version: v1.1.9 Operating system: Windows 10 Enterprise 10.0.19045 Login status: not logged in Insider build toggle: off Live preview: on Legacy editor: off Base theme: dark Community theme: none Snippets enabled: 0 Restricted mode: off Plugins installed: 27 Plugins enabled: 24 1: Admonition v9.0.5 2: Advanced Tables v0.18.1 3: BookNote v0.2.4 4: Calendar v1.5.10 5: cMenu v1.1.2 6: Custom Frames v2.4.4 7: Dataview v0.5.52 8: Day Planner v0.5.8 9: Excalidraw v1.8.8 10: Kanban v1.5.1 11: Media Extended v2.11.1 12: Media Extended BiliBili Plugin v0.3.1 13: Mind Map v1.1.0 14: Obsidian42 - BRAT v0.6.36 15: Outliner v4.2.1 16: Remotely Save v0.3.25 17: Templater v1.16.0 18: Web Browser v0.0.3-beta 19: Tasks v1.25.0 20: Reminder v1.1.15 21: QuickAdd v0.10.0 22: Weread Plugin v0.4.8 23: Projects v1.14.0 24: DB Folder v3.3.3

RECOMMENDATIONS: Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

the query as forllow TASK WHERE due >= date(today)  and (start <= date(today) and start != "") and contains(path,"daily-manager") and !completed

AB1908 commented 1 year ago

Y'all are on the latest version right?

begend commented 1 year ago

Y'all are on the latest version right?

yes. i update to the latest vesion. still have the same issue. Does this issue have anything to do with my extensive notes? i have about 700 notes

AB1908 commented 1 year ago

Can you reliably reproduce this in the sandbox vault?

begend commented 1 year ago

Can you reliably reproduce this in the sandbox vault?

it seams the following note has some problem. i can reliably reproduce this issue with only this note in a new vault when you open this note at the second time

Details

## 今日待办 ### 项目跟进 ``` dataview TASK WHERE contains(path,"timeManage") ``` ### 学习任务 ### 杂事 ## 日常习惯 - [ ] 早上7点起床 #daily/habit - [ ] 早上7点半锻炼身体 #daily/habit - [ ] 晚上11点复盘 #daily/habit - [ ] 早上8点读书 #daily/habit - [ ] 晚上12点睡觉 #daily/habit ## 日常分析 ### 习惯分析 ### 习惯分析 ```dataviewjs var tasks = dv.current().file.tasks .where(t => t.text.includes("#daily/habit")) var finishCnt = 0 for (i=0;i