From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kJafNBWvT2O7XAEAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 10:02:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kGymNBWvT2ND6gAAauVa8A (envelope-from ) for ; Wed, 19 Oct 2022 10:02:29 +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 753BA2EF44 for ; Wed, 19 Oct 2022 10:02:29 +0200 (CEST) Received: from localhost ([::1]:57420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol420-0007CK-1d for larch@yhetil.org; Wed, 19 Oct 2022 04:02:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol40A-0007C2-Do for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 04:00:34 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:38902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol407-0005dV-8T for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 04:00:33 -0400 Received: by mail-ej1-f44.google.com with SMTP id fy4so37976041ejc.5 for ; Wed, 19 Oct 2022 01:00:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kUF+RwVBVPl4eBSQRwULa/d9YtEOgVPd5uUOf7Z5Epg=; b=51lkJ4Y8wksrFtaMH4tTT0WhTV32mY7da0Vda93GJSaGts31MTlqaEF7ER3dWNJXH1 J8WEW1WLlOaFSxMGKF/w8pSK2kxKVA2aHbzyXuA8SA/Irh2HhthrmTpLKwNyMXGC/7XM qN8A2tQ7lJmpzAJfx0elF54wsjfW/attj5wa2MldeNutbR75Y2SaGRkAswxIg+72DXrJ MkFxGf3CytCc9yX8MzAGWLs2Y6hH1GlBgFo0nVudcsO0h866SA3b/yENCCOnJX+4Srk6 rbbr544eLqwF0HHesmuTMWZQtTEnbVb8e7/uVOqTJGAg0qfTS6FrA2y2pfbJ/tlcYM8Y mkMQ== X-Gm-Message-State: ACrzQf3chJgT0Uswf6EJPJ6lk3k7w3GAFRJ31l93LHTKjgyw3Tk1PSNb FhHIVZXP0DGMwpJiq/D2rtkCLXcYlFuDrJNaxk8= X-Google-Smtp-Source: AMsMyM74fj6Y2513N0tEQGk4VqoRCs9uGttD6GLBpUW0g+Dt2GW3SQDwfvU1fuSiILZ7aPxEg8RuqQb3pJe3OYC4fzE= X-Received: by 2002:a17:907:2d1f:b0:78e:174d:2ce0 with SMTP id gs31-20020a1709072d1f00b0078e174d2ce0mr5666148ejc.638.1666166428467; Wed, 19 Oct 2022 01:00:28 -0700 (PDT) MIME-Version: 1.0 References: <877d0xfu9m.fsf@localhost> In-Reply-To: <877d0xfu9m.fsf@localhost> From: =?UTF-8?Q?Moritz_Sch=C3=A4fer?= Date: Wed, 19 Oct 2022 10:00:12 +0200 Message-ID: Subject: Re: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9.5.2/)] To: Ihor Radchenko Cc: =?UTF-8?Q?Moritz_Sch=C3=A4fer?= , emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000001b05a005eb5e9a34" Received-SPF: pass client-ip=209.85.218.44; envelope-from=mollitz@gmail.com; helo=mail-ej1-f44.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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=1666166549; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=kUF+RwVBVPl4eBSQRwULa/d9YtEOgVPd5uUOf7Z5Epg=; b=leCKFU5ijHdHkQ+KIx7WamVEryO501JleCOoUc1eXBcC4b1PL684G22wHJCrDeiddjaXXf YXlNRyQFmwP2suCLjZ9jJ/l3oiJqLBihoYkmB5cyiVyQectkNlcqDoa2LMkz5uubGRJs5w fJfdSVjBaLvDSECIDFlrtXYEsQxx8UlKUtcApndHEEg2qv9XI1eibM++nFjRq/ixMOPt8V hbiHAqPATVLVIqzrJTeWIeDYjgyT/zc/y7zCEv5pMDxtdFTPcxUCzJHLftQdeTy108/4AT vfFuE0Cjv2LMlmZQSDO1vsrH6BphCRkyOYyAk8pk/w6qN5XtS2jCc9DRsRrj2Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666166549; a=rsa-sha256; cv=none; b=nOWwthE2PTvnouALH0WHecPH++0tX1yi+ie5CKDfJvSgQjimWCVHpzpGVHu7c1EknArehG 775VYTM2IRHgWxVfLVwxA+pQXeZkD647WYNLwUfGUws6PssVln7l7hN1y0m6IqQTvdi5tw blaTnG/a8auHBxVfCEMUYE7icyi/VfCVVBdqjin1gHED11XSoy9lYEcaNg/qSQ8+DTc9rT 4q4XX48FytrUKAFCfPC8Pl110LEJXJrXXR56/Qh7rOKsYvtOvuruavSQnkWa10te+xDjEF etkHgptmA4vP3wYEi1HEGmnYOtobo1poA0mgJcy0cEnAj3DkCFixra5Vh/z7wQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -0.23 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 753BA2EF44 X-Spam-Score: -0.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: l7VdV3bAHdLe --0000000000001b05a005eb5e9a34 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for getting back to me on this. Here is a minimal example. In org-roam (v2), when having a file/node: *note_a.org *: *:PROPERTIES::ID: 3c885843-13ad-4dd8-a57f-de8271403b85:END:#+TITLE: Note A* and a second file *note_b.org *: *:PROPERTIES::ID: 715fdccf-0c40-4bbe-87b0-ae9787c46a1b:END:#+TITLE: Note B[[id:3c885843-13ad-4dd8-a57f-de8271403b85][Link to Note A]]* and then run *(org-odt-export-to-odt)* (within the buffer *#note_b.org *), then I get the aforementioned error: *OpenDocument export failed: FIXME: Unable to resolve "note_a.org "* Hope this helps. Best, Moritz On Tue, 18 Oct 2022 at 09:46, Ihor Radchenko wrote: > Moritz Sch=C3=A4fer writes: > > > When exporting an org-file with org-id based links to odt, I get the > > error error "FIXME: Unable to resolve ", where is > the > > filename, the org-id-link was pointing to. > > > > Org-id links (example below) are the default for org-roam (v2). > > > > [[id:5222a0dd-5084-41bd-b61d-21dcb3290187][Note title]] > > > > The issue lies within ox-odt.el in the org-odt-link function. There, ' > > destination' takes the value of the file name of the id-link target. > > Therefore, (org-element-type destination) gets evaluated to 'plain-text= , > > which is not resolvable by 'org-odt-link--infer-description', thus it > > raises the error. > > > > I worked around this issue by adding a check for plain-text, but would > like > > to raise this issue here to find proper ideas on how to fix this. > > Thanks for reporting, and sorry for the late reply. > Could you provide an example and steps demonstrating the problem? > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --=20 ________________________________________ *Moritz Sch=C3=A4fer**, PhD* Bioinformatician Postdoctoral Fellow Christoph Bock Group ________________________________________ *CeMM* Research Center for Molecular Medicine of the Austrian Academy of Sciences Lazarettgasse 14, AKH BT 25.3 1090 Vienna, Austria mschaefer@cemm.at www.cemm.at ________________________________________ --0000000000001b05a005eb5e9a34 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for getting back to me on this.

= Here is a minimal example. In org-roam (v2), when having a file/node:
=

note_a.org:

:PROPERTIES:
:ID: =C2= =A0 =C2=A0 =C2=A0 3c885843-13ad-4dd8-a57f-de8271403b85
:END:
#+TITLE:= Note A




and a se= cond file note_b.org:
:PROPERTIES:
:ID: =C2=A0 =C2=A0= =C2=A0 715fdccf-0c40-4bbe-87b0-ae9787c46a1b
:END:
#+TITLE: Note B[[id:3c885843-13ad-4dd8-a57f-de8271403b85][Link to Note A]]

=



and then run (or= g-odt-export-to-odt) (within the buffer #note_b.org), then I get the aforementioned error:

=
OpenDocument export failed: FIXME: Unable to resolve "= ;note_a.org"
Hope this helps.

Best,
Moritz

On Tue, 18 Oct 2022 at 09:46, Ihor Radchenko <yantar92@posteo.net> wrote:
Moritz Sch=C3=A4fer <= ;mail@moritzs.de&g= t; writes:

> When exporting an org-file with org-id based links=C2=A0 to odt, I get= the
> error error "FIXME: Unable to resolve <filename>", whe= re <filename> is the
> filename, the org-id-link was pointing to.
>
> Org-id links (example below) are the default for org-roam (v2).
>
> [[id:5222a0dd-5084-41bd-b61d-21dcb3290187][Note title]]
>
> The issue lies within ox-odt.el in the org-odt-link function. There, &= #39;
> destination' takes the value of the file name of the id-link targe= t.
> Therefore, (org-element-type destination) gets evaluated to 'plain= -text,
> which is not resolvable by 'org-odt-link--infer-description', = thus it
> raises the error.
>
> I worked around this issue by adding a check for plain-text, but would= like
> to raise this issue here to find proper ideas on how to fix this.

Thanks for reporting, and sorry for the late reply.
Could you provide an example and steps demonstrating the problem?

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>


--

__________= ______________________________

Moritz Sch=C3=A4fer= = , PhD
Bioinformatician
Postdoctoral Fellow

Christoph Bock Group

__= ______________________________________

CeMM

Research Center for Molecular Medicine<= br>of the Austrian Academy of Sciences

Lazarettgasse 14, AKH BT 25.3=
1090 Vienna, Austria

mschaefer@cemm.at

www.cemm.at

______________= __________________________

--0000000000001b05a005eb5e9a34--