Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom frontmeta field named "From" #2448

Open
warm-july opened this issue Sep 29, 2024 · 2 comments
Open

custom frontmeta field named "From" #2448

warm-july opened this issue Sep 29, 2024 · 2 comments
Labels
bug Something isn't working.

Comments

@warm-july
Copy link

What happened?

---
cday: 2024-08-31
tags: 
From: "[[Documentation]]"
Related:
  - "[[2024 CIS 5530]]"
aliases:
  - cpp
---

this is what my frontmatter looks like, which contains a field named From, so when I try to use From as a field in functions like contains(), it gives me a syntax error:


Dataview: Error: 
-- PARSING FAILED --------------------------------------------------

  2 | 	file.folder AS "Folder"
  3 | FROM "Documentation"
> 4 | WHERE contains(join(Related), "cpp") OR contains(From, "C++")
    |                                                      ^

Expected:

variable

DQL

TABLE
	file.folder AS "Folder"
FROM "Documentation"
WHERE contains(join(Related), "cpp") OR contains(From, "C++")

JS

No response

Dataview Version

0.5.67

Obsidian Version

1.6.7

OS

Windows

@warm-july warm-july added the bug Something isn't working. label Sep 29, 2024
@github-staff github-staff deleted a comment Sep 29, 2024
@AB1908
Copy link
Collaborator

AB1908 commented Oct 6, 2024

Seems like a parser bug. I can tell you where the bug probably is but no time to fix it on my own at the moment. Would you like to attempt a fix?

@warm-july
Copy link
Author

Seems like a parser bug. I can tell you where the bug probably is but no time to fix it on my own at the moment. Would you like to attempt a fix?

Oh cool, sure I'm not very good but would love to try.
Thnx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants