Error when trying to add custom template to codegpt-action-alist
Artawower opened this issue · 2 comments
Artawower commented
I am trying to add new template for quick action:
(add-to-list 'codegpt-action-alist '("JSDoc" . "Write JSDoc for this method"))
But when i try execute it i face with next error:
Debugger entered--Lisp error: (void-function nil)
nil(9146 9243)
codegpt(9146 9243)
funcall-interactively(codegpt 9146 9243)
command-execute(codegpt record)
execute-extended-command(nil "codegpt" nil)
funcall-interactively(execute-extended-command nil "codegpt" nil)
command-execute(execute-extended-command)
Am I missing something?
jcs090218 commented
Oh, variable codegpt-action-alist is a constant (defconst), and should not be configured.
I think it's a good feature to dynamic generates the custom functions, etc.