From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id SAbjLcJghWcadgEA62LTzQ:P1 (envelope-from ) for ; Mon, 13 Jan 2025 18:51:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SAbjLcJghWcadgEA62LTzQ (envelope-from ) for ; Mon, 13 Jan 2025 19:51:46 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qReQElTm; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736794306; 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=LuJrdIF/pQrfPZ73YU3wc/jkbzYtBU7BXo6bM573qPg=; b=VVmvcpTGHK5lFbcik+WLK45XVVrMSP/ud64tlJSumZpVZG+7bI+9BawAzblHQcgjlFPSo9 Mq/4R9k1LJAuhUy0J0PdQxLQgQ+nKuwG56ZSKePRaNkCsWBVPURsw6I2axQ6zJ3cEvBpDU Lc/E/KqaFrtcRqAqlLsN8Mv23mlgXzX1yfjkWwE8ao0s+jwkhmTA+AYwCxepa1WWgX8LPY jv5hORlgh9n0d9FaCbBlzYytIqWQH0TrJIYU32J4+clGYqfmGNsIwgriOcJzv9lUkJe4ql V+RDSUF1FcU82ReLR8Tpma/281vRzMzmdDcpNg9RJnWQczu7TJJPZn5TyWuv3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qReQElTm; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736794306; a=rsa-sha256; cv=none; b=UzE2Cn+WNtQ9V/lxieZmoaBVLKaAUBBUb63rlQV87Gm4btfKaoO0CniOLTa524JNCjZzaQ Rm49xkKvoeTaTwk7SAt2gVcvjpvs1/X/QgQ1vdtP3duVO+/xLYXfGgm65xPgYXpsJckxaF dokXyTizd5okBhZgVaQvQ3wgSzroFpk+QhKvvlergSCiu9OMadsK+El5QPmd8VnSNzZMye YeFfbs/IwI0iWbxn5opNgIpJux41y8Rdj7OKfpLdhBAir2qashGKkbZMH1wLn3GSCfBY2J QSnQguDVa22QOtJN/Pns9XcnL5gemcB68tUEvMx8Nd+koNa+sfW6ftzxlYJQyQ== 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 53FD859BB8 for ; Mon, 13 Jan 2025 19:51:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tXPWm-0002ov-UZ; Mon, 13 Jan 2025 13:51:09 -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 1tXPWl-0002om-7C for emacs-orgmode@gnu.org; Mon, 13 Jan 2025 13:51:07 -0500 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 1tXPWj-0007nF-Fl for emacs-orgmode@gnu.org; Mon, 13 Jan 2025 13:51:06 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EA203240028 for ; Mon, 13 Jan 2025 19:51:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1736794260; bh=pF+KGwcAxZx4BfUf5KH6WV58r+oTGJMdxKXTSefz0fs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=qReQElTmlCWFJET58EwR0wL0eMVuSf+XJ29rd0Qb8Ko+qvkQz3uRSd8xozfETJu5+ QhkmSQmF3+B3+1JIN+W7pQ2Kvyd1HiN5d4Y7xWp1L4sG44QwPnBCWGq/DHfUAY+cxg PNAjEhqbMD4I83Xnx7uW6eWVatuQJ5dwKApfqduknrlCBD11vWQJ1oYEnySllp1lLl 1OsiDOtGy3tF/h3f24N9sjZGWzRxmCpw7ajH21LGleNtgnNjcN5NZewmTsMe3e7OtP YrlgI6OJbLlhQHtKSeIbpa7ZoucKu204dUVQoH/ZOR8VnVbFTwWTLg+4C2G/NB16QJ bhMELHlvxfwmg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YX1Yc3fv6z6tyK; Mon, 13 Jan 2025 19:51:00 +0100 (CET) From: Ihor Radchenko To: Karthik Chikmagalur Cc: =?utf-8?Q?Jo=C3=A3o?= Pedro , emacs-orgmode@gnu.org Subject: Re: [PATCH] LSP support in org-src buffers In-Reply-To: <87r056zis6.fsf@gmail.com> References: <87bkqmdhqz.fsf@gmail.com> <87sficbccx.fsf@gmail.com> <87a64jd8w4.fsf@localhost> <87a649cb53.fsf@gmail.com> <871qp4hid7.fsf@localhost> <87o70a7h64.fsf@localhost> <87r056zis6.fsf@gmail.com> Date: Mon, 13 Jan 2025 18:53:18 +0000 Message-ID: <87bjwa7dgh.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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 53FD859BB8 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 0.05 X-Spam-Score: 0.05 X-TUID: 6OrF+7/xscJO Karthik Chikmagalur writes: > After trying it for a while, my opinion is that this way of getting LSP > support is a hack and somewhat fragile. This is why I haven't worked on > it since. I was more referring to the idea with tangling https://gist.github.com/bigodel/15599f3c1da23d1008b7d7d4ff8bff77 shared by Joao. > ... On the Eglot repo, they're considering adapting LSP's jupyter > notebook support to source blocks in Org: > > https://github.com/joaotavora/eglot/issues/523#issuecomment-2542536622 > > There are some limitations: > > - This requires some work on the Eglot side, specifically a new minor > mode that sets some Eglot state variables. > > - I don't think many language servers include notebook support. > But the support might be better than the background-tangling approach > used by proposal in this thread. I agree that it would be best to make use of the native langserver capabilities, if they are available. However, tangling approach is much more universal. It will cover more than just LSP servers - other traditional dev tools as well. So, there is a lot of value in having that independent of dedicated eglot/lsp support. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at