doomemacs / doomemacs

An Emacs framework for the stubborn martian hacker
MIT License
19.12k stars 3.03k forks source link

How do I update stale elc files? Given that 'doom sync' doesn't work. #4257

Closed k96331 closed 3 years ago

k96331 commented 3 years ago

My doom emacs failed to launch some package when I open it in macOS.

Doom loaded 184 packages across 34 modules in 1.011s
Failed to load with-editor package incrementally, because: (error Loading file /Users/sj/.emacs.d/.local/straight/build-26.3/with-editor/with-editor.elc failed to provide feature ‘with-editor’)
Failed to load git-commit package incrementally, because: (error Loading file /Users/sj/.emacs.d/.local/straight/build-26.3/with-editor/with-editor.elc failed to provide feature ‘with-editor’)
Failed to load magit package incrementally, because: (error Loading file /Users/sj/.emacs.d/.local/straight/build-26.3/with-editor/with-editor.elc failed to provide feature ‘with-editor’)
Failed to load org package incrementally, because: (error Loading file /Users/sj/.emacs.d/.local/straight/build-26.3/with-editor/with-editor.elc failed to provide feature ‘with-editor’)
Failed to load org-agenda package incrementally, because: (error Loading file /Users/sj/.emacs.d/.local/straight/build-26.3/with-editor/with-editor.elc failed to provide feature ‘with-editor’)
Failed to load org-capture package incrementally, because: (error Loading file /Users/sj/.emacs.d/.local/straight/build-26.3/with-editor/with-editor.elc failed to provide feature ‘with-editor’)
Failed to load org package incrementally, because: (error Loading file /Users/sj/.emacs.d/.local/straight/build-26.3/with-editor/with-editor.elc failed to provide feature ‘with-editor’)

'doom doctor' told me these packages are out-of-date:

The doctor will see you now...

> Checking your Emacs version...
> Checking for Emacs config conflicts...
> Checking for private config conflicts...
> Checking for stale elc files...
! ~/.emacs.d/.local/straight/build/doom-themes/doom-themes-base.elc is out-of-date
! ~/.emacs.d/.local/straight/build/doom-themes/doom-themes-ext-org.elc is out-of-date
! ~/.emacs.d/.local/straight/build/git-gutter/git-gutter.elc is out-of-date
! ~/.emacs.d/.local/straight/build/goto-chg/goto-chg.elc is out-of-date
! ~/.emacs.d/.local/straight/build/helpful/helpful.elc is out-of-date
! ~/.emacs.d/.local/straight/build/ivy/ivy.elc is out-of-date
! ~/.emacs.d/.local/straight/build/org-mode/org-version.elc is out-of-date
! ~/.emacs.d/.local/straight/build/projectile/projectile.elc is out-of-date
! ~/.emacs.d/.local/straight/build/straight/straight.elc is out-of-date
! ~/.emacs.d/.local/straight/build/swiper/swiper.elc is out-of-date
! ~/.emacs.d/.local/straight/build/transient/transient.elc is out-of-date
! ~/.emacs.d/.local/straight/build/with-editor/with-editor.elc is out-of-date
> Checking Doom Emacs...
Note, built-in variable ‘overflow-newline-into-fringe’ not bound
  ✓ Initialized Doom Emacs 2.0.9
  ✓ Detected 34 modules
  ✓ Detected 148 packages
  > Checking Doom core for irregularities...
    Found font material-design-icons.ttf
    Found font weathericons.ttf
    Found font octicons.ttf
    Found font fontawesome.ttf
    Found font file-icons.ttf
    Found font all-the-icons.ttf
  > Checking for stale elc files in your DOOMDIR...
  > Checking your enabled modules...
    > :lang cc
      ! Couldn't find glslangValidator. GLSL code completion is disabled
      ! Irony server isn't installed. Run M-x irony-install-server
      ! Couldn't find the rtag client and/or server programs (rdm rc). Disabling rtags support
    > :lang markdown
      ! Couldn't find a markdown compiler, `markdown-preview' won't work
    > :lang python
      ! Couldn't find isort. Import sorting will not work.
      ! Couldn't find pipenv. pipenv support will not work.
      ! Couldn't find nosetests. Running tests through nose will not work.

There are 19 warnings!
✓ Finished in 4.6779s
No RTags process running (rdm)...

It seems simple, but I have no idea how to deal with them. What should I do?

hlissner commented 3 years ago

doom build. Possibly doom sync -p if any of those packages are unused/disabled, and need to be purged.

k96331 commented 3 years ago

doom build. Possibly doom sync -p if any of those packages are unused/disabled, and need to be purged.

It doesn't work. I'll try to update my emacs26 to emacs27. Maybe I should reinstall my doom file.

hlissner commented 3 years ago

My bad, this is not a normal stale elc issue. It's a duplicate of https://github.com/hlissner/doom-emacs/issues/4171. You'll find a solution to this problem there.