Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs 30 breaks use-package integration for use-package forms which use :straight nil #1080

Open
emacswatcher opened this issue Apr 19, 2023 · 4 comments
Labels

Comments

@emacswatcher
Copy link

What's wrong

Starting after build from git source commit ecdd3a9efac3e56850ce10260747c158865f9378 (i.e. today) produces these errors. None of them occurred in 28.2.

Please note that all of these use :straight nil in their use-package forms because they are either built-in or encapsulate inline symbols.

Also, as seen below, I use the latest bootstrap and switch to the develop branch in an unsuccessful attempt to prevent the native-comp-deferred-compilation-deny-list issue as documented in

https://jeffkreeftmeijer.com/emacs-native-comp-log/

⛔ Warning (initialization): An error occurred while loading ‘/home/emacswatcher/.emacs.d/early-init.el’:

Symbol's value as variable is void: native-comp-deferred-compilation-deny-list

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.
⛔ Error (use-package): Failed to parse package asoc: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package peval: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package crm-prompt: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package dubcaps-mode: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package set-scroll-margin: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package start-per-user-server: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package comment-line-or-region: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package abbrev: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package blamer: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package popon: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Failed to parse package consult-projectile: use-package: Unrecognized keyword: :straight
⛔ Error (use-package): Cannot load ctrlf
⛔ Error (use-package): Cannot load default-text-scale
⛔ Warning (initialization): An error occurred while loading ‘/home/emacswatcher/.emacs.d/init.el’:

early-init.el fragment:

(setq straight-base-dir                "/var/shared-elpa"
      package-enable-at-startup        nil
      file-name-handler-alist          nil
      file-name-handler-alist          nil
      message-log-max                  16384
      gc-cons-threshold                most-positive-fixnum
      gc-cons-percentage               0.6
      auto-window-vscroll              nil
      load-prefer-newer                t
      large-file-warning-threshold     10000000
      native-comp-async-report-warnings-errors nil
      straight-repository-branch       "develop"
      straight-check-for-modifications 'live-with-find
      straight-cache-autoloads         t
      straight-use-package-by-default  t
      install-run                      nil)

(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el"
                         user-emacs-directory))
      (bootstrap-version 6))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(straight-use-package 'use-package)

(setq use-package-verbose t)

(use-package bind-key)
(use-package use-package-ensure-system-package)

Contents of straight-process:

$ cd /var/shared-elpa/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/raxod502/straight.el.git /var/shared-elpa/straight/repos/straight.el/ --no-single-branch --branch develop

Cloning into '/var/shared-elpa/straight/repos/straight.el'...

[Return code: 0]

$ cd /var/shared-elpa/straight/repos/straight.el/
$ git checkout -B develop origin/develop

branch 'develop' set up to track 'origin/develop'.
Your branch is up to date with 'origin/develop'.
Reset branch 'develop'

[Return code: 0]

$ cd /var/shared-elpa/straight/repos/straight.el/
$ git submodule update --init --recursive


[Return code: 0]

Version information

  • Emacs version: 30.0.50
  • Operating system: Linux j2 6.2.9-200.fc37.x86_64
@progfolio
Copy link
Contributor

Also, as seen below, I use the latest bootstrap and switch to the develop branch in an unsuccessful attempt to prevent the native-comp-deferred-compilation-deny-list issue as documented in
https://jeffkreeftmeijer.com/emacs-native-comp-log/

The fix for this has since been merged to the master branch.
So no need to switch to the develop branch.
Please see: #1073

M-x straight-version will help you know if you're running a version of straight which includes the patch mentioned above.

use-package is bundled with Emacs 30.
Please see: #1035

@raxod502 : We've had several duplicate issues for these two, so I've pinned them for now.

@raxod502
Copy link
Member

Sounds good, thank you!

@bestlem
Copy link

bestlem commented May 9, 2023

Ok straight-version tells you what version straight is. Mine is out of date.

How do yopu update straight.el? Is it the same as other packages?

@raxod502
Copy link
Member

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants