unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs@HEAD 30.1 Org breakage makes Emacs Unusable
@ 2023-09-17 15:00 T.V Raman
  2023-09-17 15:06 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: T.V Raman @ 2023-09-17 15:00 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: backtrace --]
[-- Type: application/octet-stream, Size: 3465 bytes --]

Debugger entered--Lisp error: (error "Org version mismatch.  Make sure that correct ‘loa...")
  (signal error ("Org version mismatch.  Make sure that correct ‘loa..."))
  (error "Org version mismatch.  Make sure that correct `loa...")
  (byte-code "\301\302!\210\10\204\30\0\303 \304\232\204\30\0\305\306\307\"\210\310\311!\210\301\312!\210\301\313!\207" [org--inhibit-version-check require org-macs org-release "9.6.7" warn "Org version mismatch.  Org loading aborted.\nThis w..." "(straight-use-package 'org)" error "Org version mismatch.  Make sure that correct `loa..." cl-lib oc] 3)
  (require org-keys)
  (byte-code "\302\303!\210\10\204\30\0\304 \305\232\204\30\0\306\307\310\"\210\311\312!\210\302\313!\210\302\314!\210\302\315!\210\302\316!\210\3171<\0\320\321\11!\322P..." [org--inhibit-version-check load-file-name require org-compat org-release "9.6.8" warn "Org version mismatch.  Org loading aborted.\nThis w..." "(straight-use-package 'org)" error "Org version mismatch.  Make sure that correct `loa..." cl-lib calendar find-func format-spec (error) load file-name-directory "org-loaddefs" nil t message "WARNING: No org-loaddefs.el file could be found fr..." sit-for 3 "You need to run \"make\" or \"make autoloads\" from Or..." org-macs org-keys ol oc org-table org-fold org-cycle defvaralias org-hide-block-startup org-cycle-hide-block-startup org-hide-drawer-startup org-cycle-hide-drawer-startup org-pre-cycle-hook org-cycle-pre-hook org-tab-first-hook org-cycle-tab-first-hook defalias org-global-cycle org-cycle-global org-overview org-cycle-overview org-content org-cycle-content org-reveal ...] 6)
  (load "org")
  (load-library "org")
  (#<subr funcall-interactively> load-library "org")
  (apply #<subr funcall-interactively> load-library "org")
  (ad-Advice-funcall-interactively #<subr funcall-interactively> load-library "org")
  (apply ad-Advice-funcall-interactively #<subr funcall-interactively> (load-library "org"))
  (funcall-interactively load-library "org")
  (#<subr call-interactively> load-library record nil)
  (apply #<subr call-interactively> load-library (record nil))
  (call-interactively@ido-cr+-record-current-command #<subr call-interactively> load-library record nil)
  (apply call-interactively@ido-cr+-record-current-command #<subr call-interactively> (load-library record nil))
  (call-interactively load-library record nil)
  (command-execute load-library record)
  (execute-extended-command nil "load-library" "load-li")
  (#<subr funcall-interactively> execute-extended-command nil "load-library" "load-li")
  (apply #<subr funcall-interactively> execute-extended-command (nil "load-library" "load-li"))
  (ad-Advice-funcall-interactively #<subr funcall-interactively> execute-extended-command nil "load-library" "load-li")
  (apply ad-Advice-funcall-interactively #<subr funcall-interactively> (execute-extended-command nil "load-library" "load-li"))
  (funcall-interactively execute-extended-command nil "load-library" "load-li")
  (#<subr call-interactively> execute-extended-command nil nil)
  (apply #<subr call-interactively> execute-extended-command (nil nil))
  (call-interactively@ido-cr+-record-current-command #<subr call-interactively> execute-extended-command nil nil)
  (apply call-interactively@ido-cr+-record-current-command #<subr call-interactively> (execute-extended-command nil nil))
  (call-interactively execute-extended-command nil nil)
  (command-execute execute-extended-command)

[-- Attachment #3: .signature --]
[-- Type: text/plain, Size: 5 bytes --]


-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs@HEAD 30.1 Org breakage makes Emacs Unusable
  2023-09-17 15:00 Emacs@HEAD 30.1 Org breakage makes Emacs Unusable T.V Raman
@ 2023-09-17 15:06 ` Eli Zaretskii
  2023-09-17 15:16   ` T.V Raman
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-09-17 15:06 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

> From: "T.V Raman" <raman@google.com>
> Date: Sun, 17 Sep 2023 08:00:18 -0700
> 
> Debugger entered--Lisp error: (error "Org version mismatch.  Make sure that correct ‘loa...")
>   (signal error ("Org version mismatch.  Make sure that correct ‘loa..."))
>   (error "Org version mismatch.  Make sure that correct `loa...")

Remove all *.elc files in lisp/org/, and then rebuild Emacs.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs@HEAD 30.1 Org breakage makes Emacs Unusable
  2023-09-17 15:06 ` Eli Zaretskii
@ 2023-09-17 15:16   ` T.V Raman
  2023-09-17 15:50     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: T.V Raman @ 2023-09-17 15:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Thanks for the prompt response, that fixed it.

Request: The error message that that error displayed was unhelpful and
misleading and talked about irrelevancies (from a stock emacs
perspective) of things like straight.el and other package managers,
use-package and I dont remember what else; I saved it, and attaching
below:

Warning (emacs): Org version mismatch.  Org loading aborted.
This warning usually appears when a built-in Org version is loaded
prior to the more recent Org version.

Version mismatch is commonly encountered in the following situations:

1. Emacs is loaded using literate Org config and more recent Org
   version is loaded inside the file loaded by ‘org-babel-load-file’.
   ‘org-babel-load-file’ triggers the built-in Org version clashing
   the newer Org version attempt to be loaded later.

   It is recommended to move the Org loading code before the
   ‘org-babel-load-file’ call.

2. New Org version is loaded manually by setting ‘load-path’, but some
   other package depending on Org is loaded before the ‘load-path’ is
   configured.
   This "other package" is triggering built-in Org version, again
   causing the version mismatch.

   It is recommended to set ‘load-path’ as early in the config as
   possible.

3. New Org version is loaded using straight.el package manager and
   other package depending on Org is loaded before straight triggers
   loading of the newer Org version.

   It is recommended to put

    (straight-use-package 'org)

   early in the config.  Ideally, right after the straight.el
   bootstrap.  Moving ‘use-package’ :straight declaration may not be
   sufficient if the corresponding ‘use-package’ statement is
   deferring the loading.

-- 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs@HEAD 30.1 Org breakage makes Emacs Unusable
  2023-09-17 15:16   ` T.V Raman
@ 2023-09-17 15:50     ` Eli Zaretskii
  2023-09-17 16:42       ` T.V Raman
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-09-17 15:50 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

> From: "T.V Raman" <raman@google.com>
> Cc: emacs-devel@gnu.org
> Date: Sun, 17 Sep 2023 08:16:54 -0700
> 
> Thanks for the prompt response, that fixed it.
> 
> Request: The error message that that error displayed was unhelpful and
> misleading and talked about irrelevancies (from a stock emacs
> perspective) of things like straight.el and other package managers,
> use-package and I dont remember what else; I saved it, and attaching
> below:

This isn't supposed to happen on the master branch: Ihor installed
there changes which should prevent this from happening.  I don't know
why this happened to you (you didn't tell how you caused the error);
perhaps the Org folks would want to investigate.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Emacs@HEAD 30.1 Org breakage makes Emacs Unusable
  2023-09-17 15:50     ` Eli Zaretskii
@ 2023-09-17 16:42       ` T.V Raman
  0 siblings, 0 replies; 5+ messages in thread
From: T.V Raman @ 2023-09-17 16:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

1. this indeed happened on the master branch.
   2. I built, and started the resulting build, and after a few mins of
      working, something tried to load org and I got stuck in the error
      loop.

      1+ to protecting Master branch from this -- it was beyond my
      abilities to figure out the fix -- will remember in the future to
      clean up org's elc files, but as I pointed out, the message
      displayed would never have led you to discover the fix.
      
-- 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-17 16:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-17 15:00 Emacs@HEAD 30.1 Org breakage makes Emacs Unusable T.V Raman
2023-09-17 15:06 ` Eli Zaretskii
2023-09-17 15:16   ` T.V Raman
2023-09-17 15:50     ` Eli Zaretskii
2023-09-17 16:42       ` T.V Raman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).