-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Calling org-sql-user-push with a recent org-ml leads to the error: "Tried to query ’:closed’ for non-existent ’:closed’". I tried debugging it a bit but did not get very far. It seems like something in the output of org-ml-headline-get-planning changed such that it does not return a node, but the contents of a node and thus cannot be passed to org-ml-get-property?
My versions are:
org-sql: 4.0.0
org-ml: 6.0.2
org: Org mode version 9.8-pre (release_9.7.29-363-g3f1ea8 @ ...)
Here is the output of the debugger:
Debugger entered--Lisp error: (arg-type-error "Tried to query ’:closed’ for non-existent ’:closed’")
org-ml--arg-error("Tried to query '%s' for non-existent '%s'" :closed :closed)
org-ml--get-property-decoder(:closed :closed)
org-ml-get-property(:closed (:closed nil :scheduled (2025 5 13 nil nil) :deadline nil))
#f(compiled-function (acc type) #<bytecode 0x1064871aff7bbd15>)((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) :closed)
-reduce-from(#f(compiled-function (acc type) #<bytecode 0x1064871aff7bbd15>) (:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) (:closed :deadline :scheduled))
org-sql--insert-alist-add-headline-planning((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) (:outline-hash "9121fd63206b83af2f70f784fa3fc19b" :lb-config ... :log-note-matcher ... :headline ... :parent-ids ...))
org-sql--insert-alist-add-headline((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) 24 (:outline-hash "9121fd63206b83af2f70f784fa3fc19b" :lb-config ... :log-note-matcher ... :headline ... :parent-ids ...))
#f(compiled-function (acc hstate index hl) #<bytecode -0x8b7a095adce2fe1>)((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) (:outline-hash "9121fd63206b83af2f70f784fa3fc19b" :lb-config ... :log-note-matcher ... :headline ... :parent-ids ...) 24 (headline ... ...))
#f(compiled-function (acc hstate index hl) #<bytecode -0x8b7a095adce2fe1>)((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) (:outline-hash "9121fd63206b83af2f70f784fa3fc19b" :lb-config ... :log-note-matcher ... :headline ... :parent-ids ...) 0 (headline ... ... ... ... ... ... ... ... ... ... ... ... ... ...))
#f(compiled-function (acc hstate index hl) #<bytecode -0x8b7a095adce2fe1>)((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) nil 3 (headline ... ... ... ... ... ... ... ... ... ... ... ... ... ...))
org-sql--insert-alist-add-headlines((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) (:outline-hash "9121fd63206b83af2f70f784fa3fc19b" :paths-with-attributes ... :size 627625 :lines 11135 :top-section ... :headlines ... :lb-config ... ...))
org-sql--outline-config-to-insert-alist((:inserts ... :headline-id 1079 :timestamp-id 431 :entry-id 1 :link-id 439 :property-id 9 :clock-id 206) (:outline-hash "9121fd63206b83af2f70f784fa3fc19b" :paths-with-attributes ... :size 627625 :lines 11135 :top-section ... :headlines ... :lb-config ... ...))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels