From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 GNzOD2ezsmXMcQAAqHPOHw:P1 (envelope-from ) for ; Thu, 25 Jan 2024 20:15:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GNzOD2ezsmXMcQAAqHPOHw (envelope-from ) for ; Thu, 25 Jan 2024 20:15:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=PLa3a2Gq; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=2; s=key1; d=yhetil.org; t=1706210151; a=rsa-sha256; cv=pass; b=KFxasRY0CzZ8r09byVgPGmTplIBwqEqmLsdHdvtQHzmTMedxxigqHnCVqQxh5i8kRD9gN0 6CldXCvZju8R3gNb+CypzydJiGXg1Mu9Tkeo3KeH9hFPoDpTdIXiuro7ggHcQLj0vFagHB /VbSEi+YYD8Rnyj7jiw/FhlYzAvRN4QpZWaVQSxfpSqKMFrohMaOmKGF8jR91PGdj419ME rNwrSXCnvrj5OqvRsqxLM8ORa4DVnb0UoIrmhKEg3gSr5MhznieLtCEaArMddb/6UrO8FJ Ll3nteFs6Iv6UxQdaL0MrkXeivlCpW6rnokwJWHW7B/UgwSnb2oBxRfi8W/8eA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=PLa3a2Gq; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706210151; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BzuZyOJZGT/ulQaQ2ZW6yX9NHQV1BYwacpxyLZ8kBwM=; b=QEFmpcKNdjJeIp9qxelQdao6X2VpYB3CAepQbINajUN0m3cuucQmUs6lhDCZdx3m0VPxXR BUH3u1/hObVVwKIEkER/cytwwuUKWfDV+AjppJPyJXoAh4485kyLeh9o8WX1yuMn+G9s2O 0r77Npp9NNW0FOtWe5GlAyXOqdoYltFqaB9Yn3E/5RVC1z2fAzgBUTpmTgZWop6Hakz+3j X8qSrcCPZzV0zrs2/l4v+3DspLqx9eXJOsBLNUmgldg5vlcRwDlvM6XQRNyJFbxxojAAnd 0FEdu144wmjcVK3DESJm1tEMu678yf7bFw9/KpViSnYbjU0vbku/+ZtRN4IhVg== 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 EC9D627D84 for ; Thu, 25 Jan 2024 20:15:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT5Bj-0006YP-LF; Thu, 25 Jan 2024 14:14:59 -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 1rT5Bi-0006Y2-CL for emacs-orgmode@gnu.org; Thu, 25 Jan 2024 14:14:58 -0500 Received: from sender4-op-o10.zoho.com ([136.143.188.10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rT5Bg-0003en-4o for emacs-orgmode@gnu.org; Thu, 25 Jan 2024 14:14:57 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1706210090; cv=none; d=zohomail.com; s=zohoarc; b=LDGPdOC5GfzXLFI3iy7qab/kOiDA2ul0gAdaSnxZjODTChZHiXUGc9hawvmtQhp5rs8AJrTOjnSyRl30yeLN9ibvWcC/7A6vGRwCWZ7PEW3TRsYEgyl/br/E0UIrRWeT2w1WxcdSD8JIv7ghSS5tw6qXYBNoW1KFgxfUCbxjZso= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706210090; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=BzuZyOJZGT/ulQaQ2ZW6yX9NHQV1BYwacpxyLZ8kBwM=; b=CVTNbyceRATl8VzOVLc5tr0oKoatuumyeFaWvhjYQZ37SAcVuuYuIGWKggV1q7XI6x8ggYom+k4cPS2xK7udTzudCwoQ0vpMDer31J9bIONAIINMONEYAFV6jy4C93Kf5KJxSdSxFCPWeVg1RjpABAB1VvtT38x5bEThRSktzv4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1706210090; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=BzuZyOJZGT/ulQaQ2ZW6yX9NHQV1BYwacpxyLZ8kBwM=; b=PLa3a2Gq8y8qmTCO9H45g3wCn3LjK9dpUUUmyPRCNu4b2kK6Drj0Ow1w+tKbem54 OyPVPk6MCgw4FWsG1Xz1xxOjYy27Dqf9ORoWxarF5Zd9aCiE/hvTX6XziTiNmhRy3fe id+qnDK9ayVM2vL2lg3nvLL9PwuwrddLATLOL8Q8= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1706210087781932.0184697858729; Thu, 25 Jan 2024 11:14:47 -0800 (PST) Date: Thu, 25 Jan 2024 20:14:47 +0100 From: Matt To: "Ihor Radchenko" Cc: "Jack Kamm" , "emacs-orgmode" Message-ID: <18d420bd33e.b270bb881931540.4087190415865625378@excalamus.com> In-Reply-To: <87v87ig3i0.fsf@localhost> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87a61j3orj.fsf@gmail.com> <1864701b4b8.e37160d6373275.4308190093579612690@excalamus.com> <87357a2r27.fsf@gmail.com> <1864c676b9f.e1bae673679825.2955884247216895930@excalamus.com> <87ttzn1mai.fsf@gmail.com> <87h6jaj1pk.fsf@localhost> <87sf2q9ubd.fsf@gmail.com> <87o7de9gq5.fsf@gmail.com> <877ck1vass.fsf@localhost> <87le8ga8e3.fsf@gmail.com> <87v87ig3i0.fsf@localhost> Subject: Re: [BUG] conda doesn't work in ob-shell sessions MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.10; envelope-from=matt@excalamus.com; helo=sender4-op-o10.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: , 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: -10.71 X-Migadu-Queue-Id: EC9D627D84 X-Migadu-Spam-Score: -10.71 X-TUID: qquHMqk8sPZo ---- On Wed, 24 Jan 2024 16:20:16 +0100 Ihor Radchenko wrote ---=20 > Jack Kamm jackkamm@tatersworld.org> writes: >=20 > > Ihor Radchenko yantar92@posteo.net> writes: > > > >> What about the attached patch? > > > > I applied the patch to main, but the behavior was the same as before. >=20 > What about the attached second version of the patch? I spent way too long trying to test it but I'm not sure I applied the patch= correctly. I did the following, then realized that the patch I applied undid changes (= I assume) from a previous patch and so it must have been applied on top of = another one. I then wasted a bunch of time trying to apply various combina= tions of the four patches I found in the thread. One of the patches has tr= ailing whitespace yet the various --ignore options of git am didn't seem to= ignore it. I guess I could have looked at the timestamps and used git app= ly in sequence? Should make autoloads also be run after applying the patches? Here's what I was able to do: In a VM, installed conda as described by their page. Specifically, my .bas= hrc was modified to activate the base environment. Closed terminal, opene= d it into the base environment, and created a new environment, emacs-test. Downloaded the latest org-mode by git-clone and did make autoloads. Added = the org-mode git repo's lisp directory to my early-init.el. Applied patch with git apply --cache --ignore-space-changes --ignore-whitespace 2-v2-0001-li= sp-ob-comint.el-Introduce-a-fallback-prompt-reg.patch Doing plain git apply failed. With the changes in the org-mode index, the base environment activated, I r= un 'emacs' and confirm I'm using the org-mode git with the patch applied (o= b-shell doesn't set org-babel-comint-prompt in ). Then (org-babel-do-load-languages 'org-babel-load-languages '((shell . t))) #+begin_src shell :results output :session *shell* conda activate emacs-test #+end_src It hangs. C-g and switch to shell buffer shows the following (note, this w= as typed in and not copy-pasted because VM): (base) user@debian:~$ PROMPT_COMMAND=3D;PS1=3D"org_babel_sh_prompt> ";PS2= =3D org_babel_sh_prompt> conda activate emacs-test echo 'org_babel_sh_eoe' (emacs-test) org_babel_sh_prompt> 'org_babel_sh_eoe' (emacs-test) org_babel_sh_prompt>=20 -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at=C2=A0https://liberapay.com/org-mode