From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ag Ibragimov Newsgroups: gmane.emacs.devel Subject: Re: Elisp LSP Server Date: Tue, 12 Oct 2021 02:22:44 -0500 Message-ID: References: <16338bdc2497fc51c6fb6d54ab370bfb@webmail.orcon.net.nz> <87ee99dv34.fsf@gmail.com> <07cf50ddddb5a9556aa94201a7ac88c9@webmail.orcon.net.nz> <87fstf3god.fsf@fastmail.fm> <87ily2947q.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27011"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joost Kremers , rms@gnu.org, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 12 09:23:30 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maC8I-0006me-8z for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Oct 2021 09:23:30 +0200 Original-Received: from localhost ([::1]:35888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maC8G-0008OX-EA for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Oct 2021 03:23:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maC7i-0007i0-Nd for emacs-devel@gnu.org; Tue, 12 Oct 2021 03:22:54 -0400 Original-Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]:40660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maC7g-00011X-U1; Tue, 12 Oct 2021 03:22:54 -0400 Original-Received: by mail-ot1-x336.google.com with SMTP id s18-20020a0568301e1200b0054e77a16651so8055788otr.7; Tue, 12 Oct 2021 00:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=9/1l6M6CL63JAvghns8tZt2yx3Upw77dFPT8gRmNU88=; b=U5K/2ZdFlQYuQpTQOwaSxIMRIAVC2vb2Df8p42eccthNwbC9PnBMqxvn2qBTgP14W2 kAct/yiEhJ9HpMertRrqggfd47JP/I75tXJfLZGz53x6ExO9GYK/RXz2tpPwNArAqVBs ww7Kbv4vSA4kw4r5yMDt80OpGkpvU3qEnPeMla0SwMgBhXDU5aa3DBKJK0ngk/ZSO0NO xdkz8+imrHWKl2wHsPeeQsTmulXT+QoDoy0JsgXp50AwTZB8f2sqJq9DdtS2uOxzEyeY kDo6rJPr8oF8tsAy5M4315r0Srk/+Mg37HiGrCDfwNt4okz8Lc5O9Qyo83oSEoxGfEtL GquQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=9/1l6M6CL63JAvghns8tZt2yx3Upw77dFPT8gRmNU88=; b=7cvdyl84wwPAkHGPzDqo3QecdDXXAumXqKRXWEh44un6MKGvPFpats+IRcK7Q0Lspe 0QqtVbUr405IIG74vxcG61+DLzt8fBC5anVbSImFU7h2R909H/7vPqAlkTpm4PcJ07vN OvdtUpK2URr2Nj9anGouoIed+Gt0Ef801++jZJuLbKF2EWCgN42K++2yv4NzDeHgxdeI hVLYaV54TKALiyUneIitPLwx5ZE0TwPBaC9gLnL1VTbRRAL57EDWjtT72yUiML7evPX1 etGT4OSfrwlz4JrcVWSUtmpgC9NVhqcpiguD7drmv2dd8xWXodWcOLDqsk6NxlMA2d4G r/iA== X-Gm-Message-State: AOAM532sPpe7hV5OAZizERNH0Tswzo0FvOjlaebYCWMQmcTjkKnRIpZn mblXj1QZPAA95WFvHmSaa2VdoJxI+edZDg== X-Google-Smtp-Source: ABdhPJyv5x3w2hv/FcH9xRWNaPMjkgyTgSkW1xv/cuAoBt7n1DGpCEoVo8fHL+66kA9BwRpNmn/glw== X-Received: by 2002:a9d:72db:: with SMTP id d27mr24169325otk.279.1634023370951; Tue, 12 Oct 2021 00:22:50 -0700 (PDT) Original-Received: from AIBRAGIM-M-J8Z8 (99-97-209-112.lightspeed.rcsntx.sbcglobal.net. [99.97.209.112]) by smtp.gmail.com with ESMTPSA id d18sm1380057ook.14.2021.10.12.00.22.47 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Oct 2021 00:22:50 -0700 (PDT) In-Reply-To: <87ily2947q.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::336; envelope-from=agzam.ibragimov@gmail.com; helo=mail-ot1-x336.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276774 Archived-At: Po Lu writes: > Aside from what Stefan mentioned, lsp-mode has another problem: it > encourages users to, and even automatically downloads proprietary > software from the internet. Can I beg you to disregard for a minute the aspects of non-free software issues that may or may not arise due to someone trying to figure this out, and focus on the technical side of this? It's becoming a Russian idiom about "skinning a bear that never been hunted". I think it was a simple question of: "Has anyone attempted doing this?" and I expected some conversation about technical challenges, not a lecture about the dangers of non-free software. It was my mistake to even mention godforsaken VSCode - I don't even use it, I don't know why I brought it up. I apologize; Can we please start it over and forget about GitHub, VSCode, etc.? >From what I gather, the answer to my original question is: "no, there wasn't (at least known) attempt to create an LSP server for Elisp" So let me then ask follow-up questions: - Has anyone ever tried figuring out something similar? Surely, in 45 years of Emacs, someone must have done something like that? - If someone attempts to create a cli tool that potentially could introspect, lint, format, and maybe even refactor elisp outside of Emacs, where would they need to be looking? - Is it possible to build something like this by examining relevant pieces of C in Emacs codebase? - Maybe there are parts in REmacs project that would be easier to go through? Thank you!