From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +CHYOtR0zWE1JQEAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 09:59:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MKJkN9R0zWFCtgAAauVa8A (envelope-from ) for ; Thu, 30 Dec 2021 09:59:00 +0100 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 4B282DC88 for ; Thu, 30 Dec 2021 09:59:00 +0100 (CET) Received: from localhost ([::1]:39636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2rH1-0005nb-5r for larch@yhetil.org; Thu, 30 Dec 2021 03:58:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2rGD-0005nN-IW for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 03:58:09 -0500 Received: from [2607:f8b0:4864:20::630] (port=46062 helo=mail-pl1-x630.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2rGB-000855-QQ for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 03:58:09 -0500 Received: by mail-pl1-x630.google.com with SMTP id w24so17799838ply.12 for ; Thu, 30 Dec 2021 00:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:references:user-agent:in-reply-to:message-id :mime-version; bh=pl6Zh7GKlMjZDMwPjAAXi7Iba5UkB0HHgtqRBJj329c=; b=T3J0kGxMk8/XVJ5/NqxPu38/LIJaLyh/KPCVwKuNVqsReFLVGEGRoR1dEIdC5boPeY dbC6vZeVhZycfnnTpmT1eVNfaBiLdMrmHjyqks9QN0dZpCke2RfvJEZAeHd7SdiapmbM 8DyOhVLlHCoRLDVkmyNhvYcRhcLexh1GwnuZpH65Bq0AEp2lPPc259D1M1d5s4L71/gI rqKThVSGyjHlSkIvayo4ad5xCFzMc3z4u+bQ32GSxm70oeBL2OWMaRL+RErZd7hTIoGl DHC+XKphNwFuEqP7n6lhdJeo+wDMrkX70jJPPdGSdxLOX/ux1msnQkm6gV6SN6o/WLqw qDSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=pl6Zh7GKlMjZDMwPjAAXi7Iba5UkB0HHgtqRBJj329c=; b=vTPYFmEboAiHkXH/p8y1gnd65A1UjzNAzuIeUkqzXzNbNAfUQ2Lq9QIvLuGtUWcl8Q 2zfTLh9Hn2+i9xN7zhllgeoNQDO1GFOMHdxSyGLVDSr/uhDgSLU7nBxGXLtnG/bkXSjR rQeJb/+c12oc3yvkYrKhhs66J1TV8cIJ3QF6UrH/e3XLUODbwa+SmnBLsijwCJQ4Wc0+ 8kTbqbLoBqFDw+2JAwFYwCkT2a6wM9m6Qb8gkwj2vmOe9P7K/ChZzkm0U6cGLkY+oyrA SlMfzVFPAJ+ujGZCYNkCnVm7e91ssx4LWPVZWnAGqSjx5sSW8ej+WNu0/4nyINroNwYK /ZFA== X-Gm-Message-State: AOAM5304yhK0tijcQ4JScqhwiAe5QXZYEjkiYZKgyiTtg5i64YHRMXhH 9B1q9aTM6zhrRwJvkorrKYAa54YT36A= X-Google-Smtp-Source: ABdhPJydiNKQzM0Ro2x9rXkZ4KxoHN1iruRfcR1A0ZjFl/fGKorxBwzY8QNMLlVhoaC1lUyUPtEQqA== X-Received: by 2002:a17:902:b48a:b0:149:5454:193e with SMTP id y10-20020a170902b48a00b001495454193emr28399589plr.131.1640854686294; Thu, 30 Dec 2021 00:58:06 -0800 (PST) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id g14sm24724618pjk.29.2021.12.30.00.58.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 00:58:06 -0800 (PST) From: Timothy To: emacs-orgmode@gnu.org Subject: Re: Bug report: org-preview-latex fails when using tramp Date: Thu, 30 Dec 2021 16:50:11 +0800 References: User-agent: mu4e 1.6.10; emacs 28.0.90 In-reply-to: X-Woof-Bug: confirmed Message-ID: <87sfuaqxk5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::630 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640854740; 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=pl6Zh7GKlMjZDMwPjAAXi7Iba5UkB0HHgtqRBJj329c=; b=LhaHhDQnBXnOOIKqv/1OHA2McX/MiZyQHb2V/fpSDb4jE3vFu+JZC6O91FZfI1kHkKi391 Kk78g9o4aDV1O+g4WGH8k3bgTopdHlB4r7O+jxFnvnNA6SbwBP3L6L8hmKK7ru9X+TixYR wZPYku0hBQ5CJPd4DCTyE2NpjlOf5f6JUZ/BvM+jHDsbWYg9afAl+L3iqytuC8kZJL2ktb Koia4od/cho52ga/OfNFBOfJas0kpBX+Q9px43HorWiyIlNjw0n7Zvzgrw9dxUr32LLBlU kaYfA83j7nFHe/6rBbIQITAHZb+r/3AGeqbmiOCN4RvsiYEx3bk7D8YUHj7L6w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640854740; a=rsa-sha256; cv=none; b=MDLu+s9anM/tAgCxuh6Gf1KkhBSbppudSU6JruPMIgc544WiOv+bQkjZW2eR7m3WdjLmSp 1n9mXgQ51U+o7GNffrT6sH4c72ZAz3LCfSBOrdeaI5vaH6lRCRE2DBNzOE7g91vNL71nok QcuZjTJaa1y2FyKxR1piu/sKxCK7e7POnLGg31SNmVI3BILbaS3xN8ykge8J3mzzdWxg/o Cvu5k3poSh7To4G5bxSssqng5L3oRjVCvRRrDOXG5TRoGyInu37oei7TZASl0bxk/z8dmZ wBgYpyKKMrVViEk6bCE27DtM7+v8gfV4eWNIMAoEWS271sT+v9jC68E0JcMPgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=T3J0kGxM; 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" X-Migadu-Spam-Score: -3.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=T3J0kGxM; 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" X-Migadu-Queue-Id: 4B282DC88 X-Spam-Score: -3.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: 62FapvCZwBu4 --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Confirmed. I just tried this by creating an Org file on a Debian server (I run OpenSUSE with TexLive 2021). From looking at the `*Org Preview LaTeX Output*' buffer= , it appears that the temp file is created on my local machine, and then the pro= cess is called on the remote machine. =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev= /Debian) (preloaded format=3Dlatex) =E2=94=82 restricted \write18 enabled. =E2=94=82 entering extended mode =E2=94=82 ! I can't find file `/tmp/orgtexToEnS4.tex'. =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Having a look at `org-create-formula-image', I suspect this is due to the `make-temp-name' call at . Perhaps `tramp-make-tramp-temp-name' could be useful? All the best, Timothy --==-=-= Content-Type: text/html Content-Disposition: inline Content-Transfer-Encoding: quoted-printable

Confirmed.

I just tried this by creating an Org file on a Debian server (I run OpenSUSE with TexLive 2021). From looking at the *Org Preview LaTeX Output* buffer, it appears that the temp file is created on my local machine, and then the pro= cess is called on the remote machine.

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (=
preloaded format=3Dlatex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `/tmp/orgtexToEnS4.tex'.

Having a look at org-create-formula-image, I susp= ect this is due to the make-temp-name call at https://git.savannah.gnu.org/cgit/em= acs/org-mode.git/tree/lisp/org.el#n16521. Perhaps tramp-make-tramp-temp-name could be usefu= l?

All the best,
Timothy

From: Dov Gro= bgeld
Subject: Bug report: org-preview-latex fails when using tramp
To: emacs-o= rgmode
Date: Thu, 30 Dec 2021 13:44:26 +0800

Hello,

Since the instructions say= that bugs should be reported on the mailing list, I do so here.
When visiting a file by tramp over ssh, doing latex preview fai= ls.

* Version

Tag 9.4.6 (commit= :652430128)

* To reproduce:

=
Create the following org file:

#+begin_example
* Testing formulas
\[\xi^2+\chi^2\]
#+end_examp= le

and invoke =3Dorg-latex-preview=3D.

<= /div>
The result is that org-latex preview fails finding the temporary te= x file (which was saved on the remote server)

#+= begin_example
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (= TeX Live 2017) (preloaded format=3Dlatex)
 restricted \write18 ena= bled.
entering extended mode
! I can't find file `/tmp/orgtexq5rOVI= .tex'.
<*> /tmp/orgtexq5rOVI.tex
        =                  
(Press E= nter to retry, or Control-D to exit)
Please type another input file nam= e
! Emergency stop.
<*> /tmp/orgtexq5rOVI.tex
  &nbs= p;                     &n= bsp;
No pages of output.
Transcript written on /tmp//texput.log.
#+end_example


Regards,
= Dov


--==-=-=-- --=-=-=--