No matter what I attempt to do I get an SyntaxError: missing ) after argument list error. Since all of the brackets are balanced (and it doesn’t matter what I take out of the code) I have to assume that I am using the .pages or .table functions incorrectly.
What have I done incorrectly here? Probably something obvious
Also, how is one meant to debug this types of code?
If I were to write something similar, I don’t think I would use dv.func.date() and dv.func.dur() at all, but rather use something from the moment library. But I see that in the dataview example vault, they’re using some of the dv.luxon stuff. For an example look into, 20 Dataview queries/Calculate cycle lengths and durations.
This is why its better to use Luxon instead of DQL formatting.
In addition, I’m guessing he meant plus instead of minus. If something is starting now, it cannot end 7 days ago.
You did a great job explaining everything though. Keep up the good work!
Then again, it’s late in the night (or getting to be early in the morning), so maybe I should refrain from answering at all at this time of night. Wasn’t trying to be unfair, and apologise if it seemed to be that.
And I’m all in favour for experimenting and trying stuff out, but one do need to have some basic knowledge of the language to be able to get somewhere, and date manipulation in combination with predicate functions might not be the best place to start, in my opinion.
I don’t see why it wouldn’t be. As you can see, the fix was pretty simple.
Date manipulation is pretty straightforward when using Luxon
That’s an easily looked over syntax error…happens all the time…
DataviewJS is an API and DQL is very similar to it. You cannot expect someone barely looking into DataviewJS to understand all of its nuances
Imagine if in my post I said, “How could you not know to use Luxon instead of dv.func?..thats pretty basic knowledge…”
I have Autism. My communication skills are sometimes dog shit and I understand accidentally hurting others all too well. All of my social skills are learned. You likely didn’t mean it in that way and I’m sure you didn’t think about it before writing that.
Obviously you had good intentions, you’re helping out in your free time! You could have been doing anything else. Nonetheless, please think things over before saying them.
I know all too well how vulnerable asking for help is and its not easy. You don’t have to get all buddy-buddy with everyone but, being more gentle is the least you can do
You gotta think, is what I’m saying necessary? Will it be helpful? Saying his mistakes were basic knowledge was belittling and very unnecessary
I’m not the one that you should apologize to, I was simply pointing things out