From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eK1IAGXNNmWJGQAAauVa8A:P1 (envelope-from ) for ; Mon, 23 Oct 2023 21:45:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eK1IAGXNNmWJGQAAauVa8A (envelope-from ) for ; Mon, 23 Oct 2023 21:45:41 +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 6001668D32 for ; Mon, 23 Oct 2023 21:45:40 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dfk5T538; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698090340; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ObTLABuSCUpNTPpdPMh0vsnpNbb3+qqaY2E6x4gjXd8=; b=mKtTrFHxFNH4hco+Vud7HfzHdWjzSONuMT8+qZAgHJDzwPpGZek9WWcjKiDfezb62O335s eJJrYw27/2NKF6qTJD8iSy9XIe4O4oomRvt+8/YmiHzoiJ0AyDpAr07T2H0Gbp8nNRu45Y 3Fci0jpuwkhyeeUqdpSCb1btOQUqPSWbKf9i39MFJFWgRs7qxAnU03SMkuMDjVkzKqeYI8 K9BmOP9fFUs+qh2FGoz0xqdnZ5UknkuhWARunBp/g1SemAwTKtpghZEw4LjMncPdWg/5gq V5NYpkuOTpC2Dw0TV81OeBPZl2xBc21PnlW7aZXG5aJQm8zpkrcW+5sakoVxHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698090340; a=rsa-sha256; cv=none; b=qUfrKCPOT48Qm1rUSwzC2NpBo9+zJf/LqMGsg88DjTSJDUOyYzFW+0tOzl0p8smP8ZXxvm VOa33Lm2PgMLZZEl/eD/SP9WZhB7hft/gPierHbXBnz6dCh8Uw8RjvpS44wCCZ5qf+INr9 h2Oefj5YKjUQL3M/v+SVIO40elw1SqqiSBYk4hWRDfGYHw81HC7hMSWeO3mk02hbu2t26m z7Sl1Gm8MzNQxUQX5bIKlBgcF/sQP4L8EZIJCdjjOTvNUKeFd+XwwVoY8wdEFcWwjFjtbD hdPTvv3Rz26uA24uPJVQGq0TQfO51EOteGip8D/notQv/8GH8ZNylfvOKbFjIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dfk5T538; 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"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qv0r5-0007ee-V0; Mon, 23 Oct 2023 15:44:51 -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 1qv0r4-0007eC-6h for emacs-orgmode@gnu.org; Mon, 23 Oct 2023 15:44:50 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qv0r0-0000Ah-Qk for emacs-orgmode@gnu.org; Mon, 23 Oct 2023 15:44:49 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9c53e8b7cf4so523779466b.1 for ; Mon, 23 Oct 2023 12:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698090283; x=1698695083; darn=gnu.org; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=ObTLABuSCUpNTPpdPMh0vsnpNbb3+qqaY2E6x4gjXd8=; b=dfk5T538TgEPC/FzhyQyXsFpd3JYsl3SENB4DHHAVch1DvsMeL5ZTGA2BcAwQZKqkz cNuzvHtp6R/tffNXw4eJ900LT3VqYl3Ms0pPe6zH3rmiBCTDSZjvMtv6Vt6baYi+vZmm yOv3KOUGmIw5Uhvf7iCZ/kQ6/MbL2zqgppYdMRPRhcIlftTzid4ROZtNDozJF74EdZLM 7vXJah4+Hf7D/d65Je3Ek3iw7gAvh7NS3itle9ZsxhVJ/OGE941uTUtkh9Lqn052PlRD YYAouNky9929paVpAzGqqjZms6ATJV55Jdvt/8rEFiHuhUyeDrrcaYvj8bIG/5b1wWGZ bt9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698090283; x=1698695083; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ObTLABuSCUpNTPpdPMh0vsnpNbb3+qqaY2E6x4gjXd8=; b=QsbMXIOIgmy/OyTp8AYEVv/oFa2FiUXPbnFHh7PjHh9chc412wGMqNSFr11vsCsvyO EdU3p4LOJFMvrLzldgd1UIg2abYNgaoKjD1Lft7R4fvePwZ6RJy2YyZ44MlSe1Npysfr UZm1PXNrzn2PSZL6boCUDOKzktHZ/JblNOdRdMOEOdiCUbz7RxJuZwSvR/g/PSRbad6c teNnIDmLzbYCQh8Z1XaS5/57WVSP8hF46Gb0q+WGAPqhK5mIdYDoK4/xAYtJ0XjUajVG OwhT43vI++ZpZpoliHEpe9Uf+pdp70BIA/EQYvKdyaqYAFNbecUMUNc+gF188wIcEX+K LMHA== X-Gm-Message-State: AOJu0YzphgOdKFYe5tCWilXbMBgW2fKVEpKBZpJ6UWNnG84tehCoeNP0 RAOsWDkzvCjJbLh6/68811RXvq7uUUs= X-Google-Smtp-Source: AGHT+IHcmL7M4plVLKb0DFRKIptqfGeU1238dcAi+2f4qcByFwA2CMstGs88edzLQNgN3tmLwy1g4g== X-Received: by 2002:a17:907:a0a:b0:9a6:4f54:1da6 with SMTP id bb10-20020a1709070a0a00b009a64f541da6mr8679516ejc.57.1698090282827; Mon, 23 Oct 2023 12:44:42 -0700 (PDT) Received: from [10.17.1.100] ([90.247.126.13]) by smtp.gmail.com with ESMTPSA id h25-20020a170906261900b0099293cdbc98sm7250504ejc.145.2023.10.23.12.44.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 12:44:42 -0700 (PDT) Message-ID: <41acf96e-8f62-4ed5-9853-b4ff4e0e2fa9@gmail.com> Date: Mon, 23 Oct 2023 20:44:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: emacs-orgmode@gnu.org Subject: [BUG] org-element--cache Cached element is incorrect (ox-hugo) [9.6.10 (release_9.6.10 @ /home/gk/.emacs.d/lib/org/lisp/)] Content-Language: en-US From: George Kettleborough Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=kettleg@gmail.com; helo=mail-ej1-x634.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -9.41 X-Migadu-Queue-Id: 6001668D32 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -9.41 X-TUID: B4dbRXqfzxc2 Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I've been having a problem where some of my exports get truncated randomly at the end. I haven't been able to figure out the exact problem, but by bisecting org-mode I found the problem appears in 072ddbc9 which sets `org-element--cache-self-verify' to t. By setting this back to nil manually the truncation goes away, but the warning then appears. Interestingly I can only reproduce this when running emacs in batch mode, not in regular mode. I know ox-hugo and caching has come up before, but I don't think this was the same problem as before. Warning (org-element-cache): org-element--cache: (nil) Cached element is incorrect in *Ox-hugo Pre-processed programming.org *. (Cache tic up to date: "yes") Resetting. If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report). The element is: "(headline (:raw-value \"Working on Multiple Web Projects with Docker Compose and Traefik\" :begin 85 :end 10406 :pre-blank 0 :contents-begin 201 :contents-end 10405 :robust-begin 344 :robust-end 10403 :level 1 :priority nil :tags (\"networking\" \"web\" \"development\" \"traefik\" \"docker\") :todo-keyword \"DONE\" :todo-type done :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 85 :closed (timestamp (:type inactive :raw-value \"[2023-10-02 Mon 09:00]\" :year-start 2023 :month-start 10 :day-start 2 :hour-start 9 :minute-start 0 :year-end 2023 :month-end 10 :day-end 2 :hour-end 9 :minute-end 0 :begin 209 :end 231 :post-blank 0)) :EXPORT_FILE_NAME \"multiple-web-projects-traefik\" :EXPORT_HUGO_LASTMOD \"<2023-10-19 Thu 21:24>\" :title \"Working on Multiple Web Projects with Docker Compose and Traefik\" :mode nil :granularity element :cached t ...))" The real element is: "(headline (:raw-value \"Working on Multiple Web Projects with Docker Compose and Traefik\" :begin 85 :end 10620 :pre-blank 0 :contents-begin 201 :contents-end 10619 :robust-begin 344 :robust-end 10617 :level 1 :priority nil :tags (\"networking\" \"web\" \"development\" \"traefik\" \"docker\") :todo-keyword \"DONE\" :todo-type done :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 85 :closed (timestamp (:type inactive :raw-value \"[2023-10-02 Mon 09:00]\" :year-start 2023 :month-start 10 :day-start 2 :hour-start 9 :minute-start 0 :year-end 2023 :month-end 10 :day-end 2 :hour-end 9 :minute-end 0 :begin 209 :end 231 :post-blank 0)) :EXPORT_FILE_NAME \"multiple-web-projects-traefik\" :EXPORT_HUGO_LASTMOD \"<2023-10-19 Thu 21:24>\" :title \"Working on Multiple Web Projects with Docker Compose and Traefik\" :mode nil :granularity element :parent (org-data (:begin 1 :contents-begin 1 :contents-end 26390 :end 26390 :robust-begin 3 :robust-end 26388 :post-blank 0 :post-affiliated 1 :path \"/home/gk/blog/content-org/programming.org\" :mode org-data :CATEGORY \"programming\"))))" Cache around :begin: (keyword (:key "HUGO_CATEGORIES" :value "programming" :begin 53 :end 85 :post-blank 1 :post-affiliated 53 :mode nil :granularity element :cached t :parent (section (:begin 1 :end 85 :contents-begin 1 :contents-end 84 :robust-begin 1 :robust-end 82 :post-blank 1 :post-affiliated 1 :mode first-section :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 26390 :end 26390 :robust-begin 3 :robust-end 26388 :post-blank 0 :post-affiliated 1 :path "/home/gk/blog/content-org/programming.org" :mode org-data :CATEGORY "programming" :cached t)))))) (keyword (:key "HUGO_CATEGORIES" :value "programming" :begin 53 :end 85 :post-blank 1 :post-affiliated 53 :mode nil :granularity element :cached t :parent (section (:begin 1 :end 85 :contents-begin 1 :contents-end 84 :robust-begin 1 :robust-end 82 :post-blank 1 :post-affiliated 1 :mode first-section :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 26390 :end 26390 :robust-begin 3 :robust-end 26388 :post-blank 0 :post-affiliated 1 :path "/home/gk/blog/content-org/programming.org" :mode org-data :CATEGORY "programming" :cached t)))))) nil Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-10-02 Package: Org mode version 9.6.10 (release_9.6.10 @ /home/gk/.emacs.d/lib/org/lisp/)