Skip to content

Symbol's function definition is void: doom-compile-clean on doom upgrade #7769

@SleeplessOne1917

Description

@SleeplessOne1917

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.

  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.

  • The issue can be reproduced on the latest available commit of Doom.

  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

When I run doom up and confirm upgrade, the update finish.

Current behavior

I get this error when I run doom up:

> Preparing to upgrade Doom Emacs and its packages...
- A new version of Doom Emacs is available!

    Old revision: 201051c368 (12 hours ago)
    New revision: 3f966f49d8 (2 hours ago)

Link to diff: https://github.com/doomemacs/doomemacs/compare/201051c368cfdabf3f68c372939297380999e28d...3f966f49d8f97202ef018b51e24f65f629750182
View the comparison diff in your browser? (y or n) n
Proceed with upgrade? (y or n) y
> Upgrading Doom Emacs...
  x There was an unexpected runtime error
    Message: Symbol's function definition is void
    Details: (doom-compile-clean)
    Backtrace:
      (doom-compile-clean)
      (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-incremen...
      (progn (let ((doom-print-level (or nil doom-print-level)) (doom-print-indent (+ (if t (or nil doom-print-indent-i...
      (if (not (or auto-accept-p (y-or-n-p "Proceed with upgrade?"))) (ignore (doom-print (doom-print--format (doom-pri...
      (cond ((and (null this-rev) (null new-rev)) (error "Failed to get revisions for %s" target-remote)) ((equal this-...
      (let ((this-rev (cdr (sh! "git" "rev-parse" "HEAD"))) (new-rev (cdr (sh! "git" "rev-parse" target-remote)))) (con...
      (let (result) (or (= 0 (car (sh! "git" "remote" "add" doom-upgrade-remote doom-upgrade-url))) (error "Failed to a...
      (unwind-protect (let (result) (or (= 0 (car (sh! "git" "remote" "add" doom-upgrade-remote doom-upgrade-url))) (er...
      (let* ((branch (replace-regexp-in-string "^\\(?:[^/]+/[^/]+/\\)?\\(.+\\)\\(?:~[0-9]+\\)?$" "\\1" (cdr (sh! "git" ...
      (let ((default-directory doom-emacs-dir) process-file-side-effects) (doom-print (doom-print--format (doom-print--...
      (doom-cli-upgrade #s(doom-cli-context (26116 19515 429891 303000) 164057 0 (123 . 28) nil nil "doom" nil nil ("do...
      (cond (packages? (let ((recipe (doom-cli-context-get context 'straight-recipe))) (if (and recipe (not (equal reci...
    ! Wrote extended backtrace to ~/.config/emacs/.local/state/logs/cli.doom.240327124131.164057.error

This is the log file mentioned in the output:
cli.doom.240327123956.163898.log

Steps to reproduce

  1. Start with version of doom emacs from the system information.
  2. Run doom up

System Information

https://pastebin.com/U0YuygxC

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:regressionA bug introduced in a recent and unreleased changemodule:core:cliPertains to the `$ doom` script

    Type

    No type

    Projects

    Status

    Resolved

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions