From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0KHgB16XvWVMmwAAe85BDQ:P1 (envelope-from ) for ; Sat, 03 Feb 2024 02:31:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0KHgB16XvWVMmwAAe85BDQ (envelope-from ) for ; Sat, 03 Feb 2024 02:31:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Zzm1UuP5; dmarc=pass (policy=none) header.from=gmail.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=1706923870; a=rsa-sha256; cv=none; b=F2RLLVwuNIJdMrYe4SrpSk1CDLhWtfeDc/MY0TSZCfn15+nucxvK1csR/8J0QuVFH9aiNJ vfd7y3JTE0+rsGEtERH9/MbYrde1EME37wCkf38oh7Yg4Z/hK+Tad2rVpV0MnooLWHs6u8 lNs5Pci4efLa6kygrzlLq8nGq4CdOLZQZtFAFpHFyEYLkTIFHJDMxiKSZ7jqKRnE9mM+Hw mj/ZaC58X4tdHqDVlkFoOgtNuw915iNJKXieqBWaJSw6QxBxxRDaOwCEp9gkNiGFto8f7M hoLgKaZO96pfmSy7rKwrwbql8VHY+Rbafq/YdZt8pFjpXz8BXfrYDiCQCn8Cdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Zzm1UuP5; dmarc=pass (policy=none) header.from=gmail.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706923870; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XD94GnAGSCEcImiSUwy3lsklLnRW+VcscKWI+27yvqY=; b=UNwLfboPjWpSgXDwOxMOrySIrmO1yE+JKGqQV5PIT+Uyg5Q/4KnAUdJEzU/dhbCZdTbAwZ AUJgeLgIQ1y4W4Nxci3Cc1NiAlXIKxRTvgELMs9IHTRe8W2wbj2iQyB3zMPoMzE+t8EjkX Qcd6hSkzspg/3X48Vd9KlXBFWTenM/V42uv0CUXpTuOBIrhjS7fHLHIQvO47uBdfkz+qiC +pk81LxFCrFHFA4fU75wViTKG/hZMK7fO50aRQggMz8Nxh4zPptpmljmFTNSpHXl1IDmqL rPhCb8+d6epZRCGN6aWeEdX6SP2umR93uK3wYWe23TJvhAJFi7Bv+39d5h61Ww== 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 3C2417763E for ; Sat, 3 Feb 2024 02:31:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rW4rJ-0000gK-RJ; Fri, 02 Feb 2024 20:30:17 -0500 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 1rW4rH-0000ec-6z for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 20:30:15 -0500 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rW4rF-0004RD-40 for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 20:30:14 -0500 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso2573614a12.3 for ; Fri, 02 Feb 2024 17:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706923811; x=1707528611; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=XD94GnAGSCEcImiSUwy3lsklLnRW+VcscKWI+27yvqY=; b=Zzm1UuP5sYoz2rMTjNuDHih5ZLPExn5XUzBis9fTixG4FO+7BdtoG4cS9kv4mNLpjO rw4ARZHcHZLWZDF59fcU14hBAB7qOEk8EelnECgz+YTitYzFMPoGF+0DWRx38QLvXNNC PKR3IltKrBfqdU+dlT+ExSHPYy6Yvysl7AwDz2k5HIDzL1qlvEydVVmMVyKwFqBoZeXu b/9NUUHCWc8yZvMcuKdtL4E/VUllZYcHheH9yqnl2I8JrpDxcIWwIY9cuzvbrT05kE5A qS/e5FBrVbUhFwLsh7SnD98ZFUH+InybRFnyPGnvgw9Ylo3ulSBHI+SjQdWqU+E6ekke MCvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706923811; x=1707528611; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XD94GnAGSCEcImiSUwy3lsklLnRW+VcscKWI+27yvqY=; b=fRhPhHnK29UyDhCUSzT0Ffn985Daf0seFtnVAWorRWYpVt32DWR6zz6ZhphaDSYn+B vMP74cJ9XmKHfyGVq6QPgeAScCA4R/JKB4ksXYixd/IiyLHNoOfaAgZCTlA/GZiFH4DI QgJoIg9f/Mdtv4FvM8VHZEPLsMqP5zmGC4x9/Q7iVoSatJDiAEX+9zvOiG1dOlX8BKT6 IO1UF9OgOzUSP+FDew9U975tpuFi7qFbHCC759Cz7Xrg5CmXXKd2DhNGRh7iXJEr6qbW o3APFHebcYmoZLyB485h+YBJmW93WwOiOH77Z5tz+/eOwgsoA2+h7Rbw4d/StniA3jar MNkg== X-Gm-Message-State: AOJu0YyqDRX6Po2g7l5W73ToQpXslwPsTFYJVrLp8GwtWKPywZz+xaX9 VdJy+oZzRIezAJjT3TrLP6kybRYexFfwZ8EmpNtxUbKPhEb3M925vfUho5Xx X-Google-Smtp-Source: AGHT+IH0qGV3X+Ud+bMs5NvrX9l/J7vchlgD66dhQrMdDBNCXjWXsU8deki92Jint42OaD6Mz5zGYg== X-Received: by 2002:a05:6a20:d49a:b0:19a:e482:8ab2 with SMTP id im26-20020a056a20d49a00b0019ae4828ab2mr4524755pzb.54.1706923810755; Fri, 02 Feb 2024 17:30:10 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVMY3feRGFt3UdyT5hDDYjQCSnq53oDrCvkYAztZGUAMmWXzR/9SRlj6AF4Hu5w689cSQ2gPLiAyVnu9+FXhvcrD+zi4j+P7B+K/Sd1Yc/srZFH17CTvjcsOiw= Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id a21-20020aa780d5000000b006d9c216a9e6sm2255334pfn.56.2024.02.02.17.30.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 17:30:10 -0800 (PST) From: Jack Kamm To: Bruno Barbier , Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/build/org/)] In-Reply-To: <65bbb108.050a0220.b60fd.6790@mx.google.com> References: <87o7d0mm54.fsf@localhost> <65bbb108.050a0220.b60fd.6790@mx.google.com> Date: Fri, 02 Feb 2024 17:30:09 -0800 Message-ID: <87jznm8hcu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=jackkamm@gmail.com; helo=mail-pg1-x535.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, 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: , 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-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -8.31 X-Migadu-Queue-Id: 3C2417763E X-Migadu-Spam-Score: -8.31 X-TUID: w8aoqqeq6Gn5 Bruno Barbier writes: > Hi Ihor, > > Ihor Radchenko writes: > >> >> This is most likely something about my current system setup - I can >> reproduce with other Org mode and Emacs versions. But I have no clue >> what is the cause. > > I'm getting the same as you with your MWE. > > The tag, used by ob-comint async, is: > > "/tmp/babel-zqh04P/python-GL5N5d" > > but, in "/tmp/bug.org" it becomes: > > "babel-zqh04P/python-GL5N5d" > > (`org-babel-result-to-file' transformed it into a simpler relative > path). > > The filter `org-babel-comint-async-filter' cannot spot it, because > it's searching for the exact string "/tmp/babel-zqh04P/python-tXsdFw". Thanks, I believe your diagnosis is correct, and can confirm the bug occurs when the Org file is in /tmp. The problem goes away when `org-link-file-path-type' is set to absolute. I think the correct solution would be for `org-babel-insert-result' to not insert file results (or any other special results) for async session blocks. Perhaps in this case, `org-babel-insert-result' could return a new result type, named "async", "future", or similar.