From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +haeEST/AmW9MwEAG6o9tA:P1 (envelope-from ) for ; Thu, 14 Sep 2023 14:40:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +haeEST/AmW9MwEAG6o9tA (envelope-from ) for ; Thu, 14 Sep 2023 14:40:04 +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 BDF4962221 for ; Thu, 14 Sep 2023 14:40:03 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nr7P0VNa; dmarc=pass (policy=none) header.from=posteo.net; 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=1694695204; 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:dkim-signature; bh=RXkPYGBkH8WgA31an7B4Msz79+1ySziDsGLk4MF1NhY=; b=F4MZ0oW5XwpxjXUqR9cs9kKM4TcWqBvs7+i1kLQAtm3cdkUbyNsEYcb9YPWclKcR4bciXe QhglrcRloP9lZ69MQC/1UMZJSsyDwMqyV2wOxHmtOiyAoOxaMV6WdXIvF8DkTR40819aA2 opt117d+4a6tjGQ8vIyABqFgedRSDC1512dMiDA7UGvnkTgw1+tD9vkNjAata6jyQ/uExk 8cCLhSurEAW33o2TNUNhk+xsQJY0Aq8OR6ic+B8J1iQephQBHZIqU0EOZneOq1+KnFJpEj xG7X2iraE62iOIWaex+kgI0WNSpSo+YYTFwnlxc/IbMwOUZ8sEe9Q1vhVEYA+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694695204; a=rsa-sha256; cv=none; b=Jr8+hQs9RAwKZi7gtE4/leJ3cCCgrNYE8ECm1x/N+UsSarL0PB0VXboTK1SIJ1n2/zMVm2 1g4pt33iWJa3bqqoGzQCMIAaFEJHUT3KtzZx8pTb84tyovpksJ26ba3BhIg5dmVhle5m+S O82m0ZlEkm0SyAgd5mNhDmOBOSmVdIaCNh+PgZOS+dONpeQ9EZFW8iRDAnJAdppHHaO3/g stw2oje0+P8Diix/i+pAvfF4UoCxUP5yFQYXZVlplqg6DxGAlqpQXLfeIY1TlL1vWFaUTt IDn4shRarIFG7qlqK3Lq4v39vDVikoTSG3kC7CQ8EHGdX1IdyLUabnSHY/G49g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nr7P0VNa; dmarc=pass (policy=none) header.from=posteo.net; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qglct-0001ON-36; Thu, 14 Sep 2023 08:39:19 -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 1qglcr-0001Ie-M8 for emacs-orgmode@gnu.org; Thu, 14 Sep 2023 08:39:17 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qglcp-0000pU-Ht for emacs-orgmode@gnu.org; Thu, 14 Sep 2023 08:39:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 668B2240028 for ; Thu, 14 Sep 2023 14:39:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694695153; bh=p0uruuCs3DWdsx+WOc/mCQB7IfcKrzo9ByRM4j+q8oM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=nr7P0VNa+n6uQ2H+JWaQtljAGnNYVp4oW+Tn9vTL2KpX6lmvh7jDRBmO+Fc4OrEnW 0meaeYfUjwoSx/5bm0my5AoURaPOgaCg2CHEz9ujBcAVJd6ueZ6yvRwQmLvgszs5L8 1fVZu+uelGY9O61wf6KvBnN2D/phTjmc5kkz/MzibVVJiqvdJRmI9fCycVheNaQvGi tt5r7I7G96LLJyvWkYzfZGk5k8mVsAbiOEJIKQJdbQwaNcl+RcdvkTpr32ppVpX/r3 brLZ8eG2GJxXJ466OyY4PCJPxDz0gqPeR8E5zIEBfzJ6CP21WZaLN+jKtwepFz0kW+ TvqXlqid7jBQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RmcMN5vcDz6tsB; Thu, 14 Sep 2023 14:39:12 +0200 (CEST) From: Ihor Radchenko To: "Fraga, Eric" Cc: Emacs Org mode mailing list Subject: Re: error tangling: how to debug please? In-Reply-To: <87bke50wh2.fsf@ucl.ac.uk> References: <87bke50wh2.fsf@ucl.ac.uk> Date: Thu, 14 Sep 2023 12:40:04 +0000 Message-ID: <87sf7hapy3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Migadu-Spam-Score: -3.98 X-Spam-Score: -3.98 X-Migadu-Queue-Id: BDF4962221 X-Migadu-Scanner: mx0.migadu.com X-TUID: 1j4L17xN6rSm "Fraga, Eric" writes: > I have a rather large & complex file which has many src blocks, all of > which tangle to a single file, defined by a header-args property. > > When I try to tangle, I get the following (not very informative > unfortunately) backtrace: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > org-src-coderef-regexp(nil) > org-babel-tangle-single-block(1) > ... > I haven't tried emacs -Q or similar as there are too many things to set > up for this complex file. I am just looking for any hints or > suggestions that could help me debug this. Looks like `org-src-coderef-format' returns something weird for one of the code blocks. To debug, you can try to patch `org-babel-tangle-single-block', catching when `org-src-coderef-regexp' is called with nil argument (it must be a string). Then, examine which source block you are at when that happens. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at