From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GIIFMwlUg2ENoQAAgWs5BA (envelope-from ) for ; Thu, 04 Nov 2021 04:31:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4LWLLglUg2FAbAAAbx9fmQ (envelope-from ) for ; Thu, 04 Nov 2021 03:31:21 +0000 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 184FD2D713 for ; Thu, 4 Nov 2021 04:31:21 +0100 (CET) Received: from localhost ([::1]:53110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miTTD-00010D-Eb for larch@yhetil.org; Wed, 03 Nov 2021 23:31:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miTSm-0000yZ-Mb for emacs-orgmode@gnu.org; Wed, 03 Nov 2021 23:30:52 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([13.59.128.245]:59238 helo=approving-amaethon.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miTSj-0005Q9-6L for emacs-orgmode@gnu.org; Wed, 03 Nov 2021 23:30:52 -0400 Received: from noted-redcap.authn-relay.a.mail.umich.edu (ip-10-0-73-16.us-east-2.compute.internal [10.0.73.16]) by approving-amaethon.relay-egress.a.mail.umich.edu with ESMTPS id 618353E7.DFA27.73949C4.2527696; Wed, 03 Nov 2021 23:30:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1635996647; bh=0btObx/CJQDmj98fwxb9hc7F9hF4hMZ7Pl2Lhw6ej1k=; h=To:From:Subject:Date; b=oGQKXG8DQYx8IRFDwz1qfdwG9Bde0mpACGyYISNwpP6W29VZOXapjfDRNSxmca+Km 4qdDagnGSb4Y8lDA0ZNpMwOC9rpaOVcdVwV+GoyfnJWui8oNC3AGGlENsgta808fsJ 8aQ2TJ2FRJihQX29xuUtFdP4zajzmDeOgCSguMZasEPS3gv8TEYr4QLmSKOr2n9xQ+ ICdK6X74ZBjgRd4zcZWqaAioN/rrz+u+HZvXTyR8r5Q5DzVHr73e88uw3YaC3FxCEs HVUBGovamMdyl+bpA3X0f1EuQfF2K4l5JEOCKsT4y68G/SCtSQIHiswhfui4s1GYbp OHjjfRmtkcgJA== Received: from localhost (Mismatch [95.14.69.235]) by noted-redcap.authn-relay.a.mail.umich.edu with ESMTPSA id 618353E6.ABCD1.426A2DD5.2255439; Wed, 03 Nov 2021 23:30:47 -0400 To: emacs-orgmode From: Greg Minshall Subject: typescript from org src buffer -- tide, lsp X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1837351.1635996638.1@apollo2.minshall.org> Date: Thu, 04 Nov 2021 06:30:38 +0300 Message-ID: <1837352.1635996638@apollo2.minshall.org> Received-SPF: pass client-ip=13.59.128.245; envelope-from=minshall@umich.edu; helo=approving-amaethon.relay-egress.a.mail.umich.edu 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, 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635996681; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0btObx/CJQDmj98fwxb9hc7F9hF4hMZ7Pl2Lhw6ej1k=; b=S/oeodifSGehVeZijWwhb7wfCocE5KOI4cd0+G6b9+xbNesN+Zs9cBh1vAQwSM1KxWFWuP sYg9Tm6wiiFoAGlxOFWedW8pNCxT5r+yvazEItMfCrcYnR8z0pHXT/WepvSl6p+RK0TaFx AJVemJcwwpF7yxWddM8DZsDQOb6U9+5VTCiBkIQqNuOu2BdBojgA7jI8OhwRedWG3Ir9n0 y/OZOM7cLqYOmWghhOPn+0hpjm5Vt5cqTWJE+c1MnIoGpAOxL2ED2hITmhp7XYOGIo6l4K wXCo3futKmaAE/NiRJlKlhc5+pAkJAVbKc3tBIMWaXkG+sHMsS2H1grlikCAeQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635996681; a=rsa-sha256; cv=none; b=L/a3vfi9y3Zv7++1BtMYAxNoVyS9P40v8eMGiEJNpKovqlzTLwCAzEQO+jXRINDCbc1sqA fOcWownS88Cm0Lw+prt5w+/XOXA9xxH3f7QOZVCBqNO/m2uIGGnaA/Jfn9ByP1xJV08yc+ DxY4wGeHkUoR8QpmO71s/c0mR9QcvqRvrM+U+SF3gOI4pys56W/b/Q4EH8tF7Yam4FlTra Tt5+4UJNYjRSY8VdhGmUDM/PO23FY5/PANv0UYy+XuC2L4aTJNmMDBJz83FDYgRDHVVAhF Gu7105Oh5bAhgh1e2vagaORbXqNVN6wYnQXZsWXnoT55Z5vIjkYbw9TLyFH+MQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=oGQKXG8D; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=oGQKXG8D; dmarc=pass (policy=none) header.from=umich.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 184FD2D713 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: VpAMkwYYETzJ hi. i'm wondering if anyone programming in typescript might have run into, and solved, this "problem", of tangling into a subdirectory, and tide [1] not being able to resolve "relative" imports. i have a file in path /a/b/foo.org. it includes various source blocks, and they do things like `:tangle c/d/bar.ts`. another source block, tangled into in c/d/fubar.ts, say, does something like: ---- import Bar from "./bar" ---- when i open an Org Src edit buffer from fubar.ts's source block, with tide mode [1] enabled, i get a complaint ---- Cannot find module './bar' or its corresponding type declarations. [2307] ---- tide (or, really, iiuc, tsserver) appears to be, reasonably, looking for /a/b/bar.ts, and not finding it. but, i haven't been able to figure out how to talk tide into looking elsewhere. i've done things like add "rootDirs" to `tsconfig.json`, to no avail. i haven't been able to get lsp-mode [2] to work for this scenario, either. anyway, in case anyone has done exactly that, i'm asking. cheers, Greg [1] tide: https://github.com/ananthakumaran/tide [2] lsp: https://github.com/emacs-lsp/lsp-mode/ ps -- scrounging around trying to deal with this, i stumbled on ---- https://github.com/justbur/emacs-which-key ---- which i find a treat.