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.89k stars 406 forks source link

Bug report: Evaluation error for tags and etags properties while grouping #709

Open DivideRoleEtImpera opened 2 years ago

DivideRoleEtImpera commented 2 years ago

What happened?

I had dataviewjs, which grouped my files first by folder, then by specific tags. Immediately after installation, it worked, the last time I opened it on October 21st. There were a couple of dozen files with tags, now the same number. However, now, instead of outputting data, an error is reproduced. Experiments have shown that the problem is in the etags property. The code works correctly when there is only one file with tags and starts giving an error if there are more than one file. The error is also reproducible if you replace etags with tags

Evaluation Error: RangeError: Maximum call stack size exceeded at Function.keys () at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8917:44) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32) at compareValue (eval at (app://obsidian.md/app.js:1:1287967), :8925:32)

I am attaching a simplified request code

DQL

No response

JS

for (let group of dv.pages('"Tasks/Work"')
.groupBy(p => p.file.folder))
{ 
   dv.header(3, group.key); 
   for (let subgroup of group.rows.groupBy(p => p.file.etags))
   {
     dv.header(3, subgroup.key); 
   }
}

Dataview Version

0.4.21

Obsidian Version

0.12.19

OS

MacOS

DivideRoleEtImpera commented 2 years ago

Tags, which I use, looks like: tags: project/active,area/work, test

s-blu commented 1 year ago

Hello, sorry to come back to you so late. I currently go through older issues to see which are stale or already solved.

I could not reproduce this behaviour anymore. Are you still facing it?