Skip to content

Wront type of custom #106

@victoronascimento

Description

@victoronascimento

I am getting warnings when loading rustic because the type declaration of the custom option rustic-cargo-nextest-exec-command is :string as defined here:

rustic/rustic-cargo.el

Lines 38 to 41 in 194f15c

(defcustom rustic-cargo-nextest-exec-command (list "nextest" "run")
"Execute command to run nextest."
:type 'string
:group 'rustic-cargo)

The issue is that even the default value is a list of strings but I am not sure how to define that =/ Here is the warning:

⛔ Warning (emacs): Value ‘(("nextest" "run" "--no-capture"))’ for ‘rustic-cargo-nextest-exec-command’ does not match type string

To trigger it, use setopt instead of setq. Here is my config:

(use-package
 rustic
 :pin melpa
 :after rust-mode
 :init
 (setopt rustic-lsp-client 'eglot)
 (setopt rustic-cargo-test-runner 'nextest)
 (setopt rustic-cargo-nextest-exec-command '("nextest" "run" "--no-capture")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions