From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KMTJHNS3oWQaOQAASxT56A (envelope-from ) for ; Sun, 02 Jul 2023 19:45:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IPTjG9S3oWRiUQAAG6o9tA (envelope-from ) for ; Sun, 02 Jul 2023 19:45:56 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 29DBD6164 for ; Sun, 2 Jul 2023 19:45:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qG18F-0005DH-SR; Sun, 02 Jul 2023 13:45:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qG189-0005CK-Fd for emacs-orgmode@gnu.org; Sun, 02 Jul 2023 13:45:02 -0400 Received: from forward502c.mail.yandex.net ([178.154.239.210]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qG180-0001wB-Ho for emacs-orgmode@gnu.org; Sun, 02 Jul 2023 13:44:56 -0400 Received: from mail-nwsmtp-smtp-production-main-33.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-33.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:1f21:0:640:9366:0]) by forward502c.mail.yandex.net (Yandex) with ESMTP id 0909E5E8C8; Sun, 2 Jul 2023 20:44:47 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-33.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id jiUZtdYDa0U0-snts05tl; Sun, 02 Jul 2023 20:44:46 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1688319886; bh=uIocwmX7QezS7RW/UL96U1LPLxQ4qxfjjvcUfuY/5lc=; h=Message-ID:References:Date:Reply-To:Cc:In-Reply-To:Subject:To: From; b=IaWEz5aorkOxMfrqGJ3JrXJ9xbY6hJpgg6ByEbNrylYlKgNY3VTj6lHuOw1DY8aIg Z/rRpD4WcGdwqSAWmpmj470DMjmy+K9/XEwL5lJjaAOpqPQh9ntoSrhki5AGqO8ZPf JR+A9m3yDNCjYYgHl/AsmPwByTJ6fmBLhAcd/BVs= From: Colin Baxter To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Cache must be active error In-Reply-To: <87ilb28bn1.fsf@localhost> (Ihor Radchenko's message of "Sun, 02 Jul 2023 17:29:54 +0000") References: <875y72p9z2.fsf@yandex.com> <87o7ku8em9.fsf@localhost> <871qhqp6tw.fsf@yandex.com> <87ilb28bn1.fsf@localhost> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Sun, 02 Jul 2023 18:44:45 +0100 Message-ID: <87wmzinr76.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.154.239.210; envelope-from=m43cap@yandex.com; helo=forward502c.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: m43cap@yandex.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688319956; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uIocwmX7QezS7RW/UL96U1LPLxQ4qxfjjvcUfuY/5lc=; b=dE+rNNJh/CPqkTwQ5TjHli8TRg0j7LhD6zSAf+7R50MWqvmhn6wOSfbB+LfoboWeKr/Mbm Y5nvvmYcSoTieZAeZNSNUxiXPqzqZgI0JotIy1uzFBknfv1NHrS+oIcD1b1BUmlEtssX9g 1Yrx3md+7H8QFO60CFmLZqpKMU+GnfOtmn9SERFfb0imD2T1C0LzUFDhhDBXo8fzxFdWcT qw63UibjKsC3QoHkhYoRKRaF1MK9t3VO4LIAdQXU6d3RtpPw63Lr2tXNz8+54gT4ybOq7g nfP/4Yo6bxgRVJ8//vFFt/zIfzB3JV0ugLEd1stCkhrlktr+Zy9BZW9Pic0LPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yandex.com header.s=mail header.b=IaWEz5ao; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688319956; a=rsa-sha256; cv=none; b=sygJ1f/v1Xhd0wj/Xr9kn7NOZifuZPMaOzEKEKtehmBWEjKnbZrAVp+ylNOM+PVnQ/xywc 995nE230WNtrsrbD6CO9rSM/FC0/DUu5QsdN926a0AethioGx8zWz4eiEi7KqaE2zsfmu5 UqNlM94nMtkyv0Acbl/sVh2xqIrBoHIfgJzSCwF7rnZjBGUgmWWzDXlzsNYdtD41F8hwWW 4Y6IT8XXuag+47YuAbvh8GPExOaMwmhglub30xa9yNxnyCEr9y3vs9QzcqG1r0TXvmVmm+ 12CwfznSIPV8xaGvn/ZWNfxNOZWge89BbJQMpkgfKyZAl9EQS9Jvo+Ojm78yHg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yandex.com header.s=mail header.b=IaWEz5ao; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 29DBD6164 X-Spam-Score: -6.40 X-TUID: bL+yKDAdMRwr >>>>> Ihor Radchenko writes: > Colin Baxter writes: >> > This should not matter and should not cause the error. Please >> > provide more details. >> >> The debugger output on the error is: >> >> --8<---------------cut here---------------start------------->8--- >> Debugger entered--Lisp error: (error "Cache must be active.") >> (signal error ("Cache must be active.")) (error "Cache must be >> active.") (org-element-cache-map #f(compiled-function (el) >> #)) > Just for context, the new version `org-element-cache-map' uses a > new macro `org-element-with-enabled-cache' that temporarily > enabled cache for the duration of `org-element-cache-map'. >> There is an odd feature. If I reload org-mode on a org buffer, >> using "C- C-x !" then the error vanishes on using "C-c C-a m". If >> I launch a new emacs (28.2 or 30.50.0) then the error returns and >> only vanishes if I reload org-mode again. > This sounds like you got mixed Org installation or org-element.el > from built-in Org. If it is the case, you may need to check your > config. > You can also try WIP branch feature/shadowcheck that tries more to > fight mixed version issue: > https://git.sr.ht/~yantar92/org-mode/tree/feature/shadowcheck > -- Ihor Radchenko // yantar92, Org mode contributor, Learn more > about Org mode at . Support Org development > at , or support my work at > I add org-mode (from git) early to the load-path in order to compile new org-mode versions on the fly without closes emacs. I'll first experiment by moving --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path (expand-file-name "/path/to/git/org-mode/lisp")) --8<---------------cut here---------------end--------------->8--- to different points in my ~/.emacs to see if that solves the issue. Colin Baxter.