jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.42k stars 261 forks source link

Packages load on Windows only on first run #1076

Open torusJKL opened 7 months ago

torusJKL commented 7 months ago

I'm trying to use Emacs 29.3 on Windows 11.

Some packages are installed and loaded without any issue on first run. But when opening Emacs a second time the packages fail to load until I delete all files from the elpa folder and restart Emacs. At which point they will work for one time.

The same configuration works without issues on Linux.

Error message:

 ■  Error (use-package): vertico/:init: Symbol’s function definition is void: vertico-mode
 ■  Error (use-package): flycheck/:init: Symbol’s function definition is void: global-flycheck-mode
 ■  Error (use-package): lorem-ipsum/:init: Symbol’s function definition is void: lorem-ipsum-use-default-bindings
 ■  Error (use-package): detached/:init: Symbol’s function definition is void: detached-init

There is nothing special in the configuration of these packages. e.g. Vertico:

  (use-package vertico
    :ensure t
    :init
    (vertico-mode))

A have many more packages but it's always the above group that fails while the other packages load fine.