I've installed opencode.el on Doom emacs using:
(package! plz)
(package! plz-media-type)
(package! plz-event-source)
(package! opencode
:recipe (:host codeberg :repo "sczi/opencode.el"))
I'm now trying to run it on a project where I already used opencode from time to time. When I try to select project/session or when I start manually M-x opencode with the project selected I get:
Debugger entered--Lisp error: (error "Format specifier doesn’t match argument type")
format("%d +%d-%d" 9 :null :null)
#f(compiled-function (object column vtable) #<bytecode 0xfd5108610d9745d>)(((id . "ses_4ca3a874effeibOIe3iEXJF9yM") (version . "1.0.152") (projectID . "4bbb44c8c5ed34f62acb5ba33b5a62180072b101") (directory . "/home/luogni/Progetti/aylook/aylook") (title . "Analyzing aylook testing backend aymaster setup") (time (created . 1766133692593) (updated . 1766137731226)) (summary (additions . :null) (deletions . :null) (files . 9))) 3 #<vtable vtable-103ad0977210>)
vtable--get-value(((id . "ses_4ca3a874effeibOIe3iEXJF9yM") (version . "1.0.152") (projectID . "4bbb44c8c5ed34f62acb5ba33b5a62180072b101") (directory . "/home/luogni/Progetti/aylook/aylook") (title . "Analyzing aylook testing backend aymaster setup") (time (created . 1766133692593) (updated . 1766137731226)) (summary (additions . :null) (deletions . :null) (files . 9))) 3 #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #<vtable vtable-103ad0977210>)
#f(compiled-function (elem index) #<bytecode -0x6c257e610566bf1>)(#s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) 3)
#f(compiled-function (elt) #<bytecode 0x68eb17c40e88570>)(#s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil))
mapc(#f(compiled-function (elt) #<bytecode 0x68eb17c40e88570>) (#s(vtable-column :name "Title" :width nil :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Branch" :width nil :min-width 6 :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Last Updated" :width 12 :min-width nil :max-width nil :primary ascend :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil) #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Created at" :width 10 :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil)))
seq-do(#f(compiled-function (elt) #<bytecode 0x68eb17c40e88570>) (#s(vtable-column :name "Title" :width nil :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Branch" :width nil :min-width 6 :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Last Updated" :width 12 :min-width nil :max-width nil :primary ascend :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil) #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Created at" :width 10 :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil)))
seq-do-indexed(#f(compiled-function (elem index) #<bytecode -0x6c257e610566bf1>) (#s(vtable-column :name "Title" :width nil :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Branch" :width nil :min-width 6 :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Last Updated" :width 12 :min-width nil :max-width nil :primary ascend :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil) #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Created at" :width 10 :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil)))
vtable--compute-columns(#<vtable vtable-103ad0977210>)
make-vtable(:columns ("Title" (:name "Branch" :min-width 6) (:name "Last Updated" :width 12 :formatter seconds-to-string :primary ascend) (:name "Files changed" :width 13 :align right) (:name "Created at" :width 10 :formatter seconds-to-string)) :objects ((... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) ...) :actions ("x" opencode-kill-session "R" opencode-rename-session "s" opencode-share-session "u" opencode-unshare-session "RET" opencode-open-session "o" opencode-open-session) :getter #f(compiled-function (object column vtable) #<bytecode 0xfd5108610d9745d>) :separator-width 3 :keymap (keymap (118 . opencode-session-control-toggle-verbose) (85 . opencode-unshare-all-sessions) (77 . opencode-toggle-mcp) (110 . opencode-new-session) (32) (103) (114 . opencode-sessions-redisplay) keymap (103 . revert-buffer) (60 . beginning-of-buffer) (62 . end-of-buffer) (104 . describe-mode) (63 . describe-mode) (127 . scroll-down-command) (33554464 . scroll-down-command) (32 . scroll-up-command) (113 . quit-window) (57 . digit-argument) (56 . digit-argument) ...))
#f(compiled-function (result61) #<bytecode 0x16b6ce1364a6d083>)(((... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) ...))
#f(compiled-function () #<bytecode -0x14d3429f3f5371c1>)()
plz--respond(#<process plz-request-curl<2>> #<buffer *plz-request-curl*-421020> "finished\n")
apply(plz--respond (#<process plz-request-curl<2>> #<buffer *plz-request-curl*-421020> "finished\n"))
timer-event-handler([t 26984 37046 346790 nil plz--respond (#<process plz-request-curl<2>> #<buffer *plz-request-curl*-421020> "finished\n") nil 720000 nil])
Opencode version:
❯ opencode --version
1.1.3
I've installed opencode.el on Doom emacs using:
```
(package! plz)
(package! plz-media-type)
(package! plz-event-source)
(package! opencode
:recipe (:host codeberg :repo "sczi/opencode.el"))
```
I'm now trying to run it on a project where I already used opencode from time to time. When I try to select project/session or when I start manually `M-x opencode` with the project selected I get:
```
Debugger entered--Lisp error: (error "Format specifier doesn’t match argument type")
format("%d +%d-%d" 9 :null :null)
#f(compiled-function (object column vtable) #<bytecode 0xfd5108610d9745d>)(((id . "ses_4ca3a874effeibOIe3iEXJF9yM") (version . "1.0.152") (projectID . "4bbb44c8c5ed34f62acb5ba33b5a62180072b101") (directory . "/home/luogni/Progetti/aylook/aylook") (title . "Analyzing aylook testing backend aymaster setup") (time (created . 1766133692593) (updated . 1766137731226)) (summary (additions . :null) (deletions . :null) (files . 9))) 3 #<vtable vtable-103ad0977210>)
vtable--get-value(((id . "ses_4ca3a874effeibOIe3iEXJF9yM") (version . "1.0.152") (projectID . "4bbb44c8c5ed34f62acb5ba33b5a62180072b101") (directory . "/home/luogni/Progetti/aylook/aylook") (title . "Analyzing aylook testing backend aymaster setup") (time (created . 1766133692593) (updated . 1766137731226)) (summary (additions . :null) (deletions . :null) (files . 9))) 3 #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #<vtable vtable-103ad0977210>)
#f(compiled-function (elem index) #<bytecode -0x6c257e610566bf1>)(#s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) 3)
#f(compiled-function (elt) #<bytecode 0x68eb17c40e88570>)(#s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil))
mapc(#f(compiled-function (elt) #<bytecode 0x68eb17c40e88570>) (#s(vtable-column :name "Title" :width nil :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Branch" :width nil :min-width 6 :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Last Updated" :width 12 :min-width nil :max-width nil :primary ascend :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil) #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Created at" :width 10 :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil)))
seq-do(#f(compiled-function (elt) #<bytecode 0x68eb17c40e88570>) (#s(vtable-column :name "Title" :width nil :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Branch" :width nil :min-width 6 :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Last Updated" :width 12 :min-width nil :max-width nil :primary ascend :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil) #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Created at" :width 10 :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil)))
seq-do-indexed(#f(compiled-function (elem index) #<bytecode -0x6c257e610566bf1>) (#s(vtable-column :name "Title" :width nil :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Branch" :width nil :min-width 6 :max-width nil :primary nil :align nil :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Last Updated" :width 12 :min-width nil :max-width nil :primary ascend :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil) #s(vtable-column :name "Files changed" :width 13 :min-width nil :max-width nil :primary nil :align right :getter nil :formatter nil :displayer nil :-numerical nil) #s(vtable-column :name "Created at" :width 10 :min-width nil :max-width nil :primary nil :align nil :getter nil :formatter seconds-to-string :displayer nil :-numerical nil)))
vtable--compute-columns(#<vtable vtable-103ad0977210>)
make-vtable(:columns ("Title" (:name "Branch" :min-width 6) (:name "Last Updated" :width 12 :formatter seconds-to-string :primary ascend) (:name "Files changed" :width 13 :align right) (:name "Created at" :width 10 :formatter seconds-to-string)) :objects ((... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) ...) :actions ("x" opencode-kill-session "R" opencode-rename-session "s" opencode-share-session "u" opencode-unshare-session "RET" opencode-open-session "o" opencode-open-session) :getter #f(compiled-function (object column vtable) #<bytecode 0xfd5108610d9745d>) :separator-width 3 :keymap (keymap (118 . opencode-session-control-toggle-verbose) (85 . opencode-unshare-all-sessions) (77 . opencode-toggle-mcp) (110 . opencode-new-session) (32) (103) (114 . opencode-sessions-redisplay) keymap (103 . revert-buffer) (60 . beginning-of-buffer) (62 . end-of-buffer) (104 . describe-mode) (63 . describe-mode) (127 . scroll-down-command) (33554464 . scroll-down-command) (32 . scroll-up-command) (113 . quit-window) (57 . digit-argument) (56 . digit-argument) ...))
#f(compiled-function (result61) #<bytecode 0x16b6ce1364a6d083>)(((... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) (... ... ... ... ... ... ...) ...))
#f(compiled-function () #<bytecode -0x14d3429f3f5371c1>)()
plz--respond(#<process plz-request-curl<2>> #<buffer *plz-request-curl*-421020> "finished\n")
apply(plz--respond (#<process plz-request-curl<2>> #<buffer *plz-request-curl*-421020> "finished\n"))
timer-event-handler([t 26984 37046 346790 nil plz--respond (#<process plz-request-curl<2>> #<buffer *plz-request-curl*-421020> "finished\n") nil 720000 nil])
```
Opencode version:
```
❯ opencode --version
1.1.3
```