question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`=[[]].field` returns <empty list>

See original GitHub issue

Hello.

Before, =[[]].field and =this.field were equivalent. Now, =[[]].field seems to be always rendered as <empty list>.

This might be intented since this makes more sense than [[]]…?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Moonbase59commented, Aug 19, 2021

Try

```dataview
list from [[#]]
sort file.name asc
```

I hope this won’t break eventually, since it’s a “legal” link to “this file top”, as in HTML (no heading given).

1reaction
blacksmithgucommented, Aug 11, 2021

I had no idea [[]] ever actually resolved to the current file! The reason it must have done that is through a quirk in Obsidian’s file resolver where trying to link to "" would just return the current file.

The reason it returns an empty list now is that empty brackets resolve to a doubly-nested list (since adding primitive list syntax in 0.4.4), which you then index ‘field’, yielding an empty list (since [].field = []).

I will revert that behavior to restore [[]] functionality to not break people, though this is unintended behavior and I will likely break it in the future. Usage of this is definitely preferred for referencing the current file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

django rest framework serializer - doesn't return empty list field
I have a serializer for a model that contains JsonField. I want to always return specific fields, even when they ...
Read more >
Adding State parameter with lookup to report returns empty list
Hello,I am having trouble getting a parameter with lookup to =Report.GetFieldSchema('ARShippingAddress.State') lookup works but returns an ...
Read more >
Django (REST Framework) Returns Empty List Every Other ...
So, if I have NumProcesses=3 , then the application will return empty set 2/3. Which means that only one of three processes has...
Read more >
SOQL returns empty list for Quote - Salesforce Stack Exchange
When I query for objects like Account, OpportunityLineItem or Lead the data is returned correctly. The problem occurs specifically for Quote and ...
Read more >
Elasticsearch Retriever Returns Empty List #1904 - GitHub
0.0 and I have no pre-built index, created a new index with "content" field. and while retrieving, I am getting the issue that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found