Comments (14)
@josephgarnier , that is indeed very wrong. Something strange has happened in one of the last updates. Neither response is correct when in live preview did that query.
This surely needs more attention and investigation.
from obsidian-dataview.
I can confirm a similar bug that occurred recently. For my test, I disabled all community plugins, except Obsidian DataView.
When I write $= dv.list(dv.pages())
, the Live Preview mode displays <Promise>
, while a Reading mode works well.
from obsidian-dataview.
tomorrow I'm back in my usual debug environment and will try to fix this.
from obsidian-dataview.
In other words, the code is going to be unstable for a version of two while working out those kinks? This should then possibly have not been a minor version raise , aka from 0.5.65 to 0.5.66, but rather have gone to something like 0.6.0. This change has caused breakage in many vaults, without been given a proper warning.
This change, alongside with that strange(?) live preview changes/bug in #2216, have broken two of the main use cases in my personal vault so I'm having issues on how to proceed.
And I guess the tests should possibly be extended to catch either of these
from obsidian-dataview.
can confirm. inline seems to be broken somewhat.
from obsidian-dataview.
For me, the issue was coming from the latest iconize version, I had to disable the plugin to make them work again.
from obsidian-dataview.
true but still. I'm not using iconize and have noticed a hard to reproduce related bug with inline queries.
from obsidian-dataview.
In my case it triggers immediately when I add await ...
in front of the dv.view()
called. So I guess it's related to some asynchronous issue. And no I don't have Iconize plugin installed, so that is not part of my use case. (In either case, I triggered this bug in the Sandbox vault with no other plugins except Dataview.
from obsidian-dataview.
@josephgarnier , neither dv.list()
nor dv.pages()
by themselves should produce a promise. What else do you do in that query?
In general whenever you get a <promise>
return you'll need to add await
in front of that call. In your case you might need to use Promise.all()
.
In any case a promise is not a bug, but when/if the result disappear after adding the await
then that's a bug.
from obsidian-dataview.
@holroy Just to check, I've just tested a new vault with all default settings and only the "dataview" community plugin. As you can see on the screen below, the instruction $= dv.list(dv.pages())
is displayed <promise>
in Live Preview mode only, whereas in Reading mode the instruction works. Furthermore, there are no errors in the console.
Now, with the $= await dv.list(dv.pages())
instruction, the display changes, but the result is not as expected: there is no list of files, only one item :
edit : actually, the problem persists even with all core plugins deactivated.
from obsidian-dataview.
Do you have any idea what causes this, @GottZ ?
from obsidian-dataview.
Increasing the compile target to es2022 might have broken code with bad structure. it also broke that server version check earlier.
I got confirmation from an obsidian employee, that es2022 is the correct target these days tho.
I suspect I'll have to do a little housekeeping and re-implenent a few pieces here and there to make sure the code is up to current standards.
from obsidian-dataview.
@GottZ should we roll back to previous stable version while we explore fix in beta release?
from obsidian-dataview.
@GottZ should we roll back to previous stable version while we explore fix in beta release?
If we go down that route, which I'm in favor of, should we then also include all the stuff related to #2216 since there isn't any easy fix to that issue, and since it's not very clear which issue was resolved introducing that code at all?
from obsidian-dataview.
Related Issues (20)
- It would be better if the setting interface could be switched between multiple languages. I hope this plugin settings page can be selected in Chinese.
- Counter for all pages for query
- Parenthesized metadata parser is a bit trigger-happy
- TASK DQL works on desktop but errors out on iOS HOT 1
- Fix the hidden fields' background in callouts
- Task Query: Basic Sub List Items not aligned since 1.6.3 HOT 1
- Line break resetting field values HOT 1
- Issue with the First Task Item in Callout Losing Data HOT 3
- Bug report: Dataview list within a table has additional empty lines between each item HOT 1
- generating table from a list within quote-block is always missing first list-item HOT 1
- TABLE file.folder returns a folder title that starts with "+" with a bullet in front of it
- DQL queries on date properties: empty != ""
- Bug report HOT 2
- DQL Task Query: Titled callouts cause a shift of results by one HOT 2
- Inline Queries all returning null HOT 1
- Use callout blockid in task section
- dv.view rendering inconsistantly but appears to be executing
- Titles are shorten in query "list" HOT 3
- Inline rendering only shows the first line of properties in reading view HOT 10
- Backslash escape ends inline Queries in edit mode.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-dataview.