From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Elisp LSP Server Date: Thu, 14 Oct 2021 02:14:59 +0300 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> <87fst5ae2t.fsf@gmail.com> <87v920j0jx.fsf@fastmail.fm> <839638db-98e1-4669-1b7e-82c8e26ec4aa@yandex.ru> <87ee8obqyy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: Joost Kremers , emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 01:16:47 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 1manUN-0003ts-K8 for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 01:16:47 +0200 Original-Received: from localhost ([::1]:48944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1manUM-0008JI-N9 for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Oct 2021 19:16:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1manSj-0007Kf-Rf for emacs-devel@gnu.org; Wed, 13 Oct 2021 19:15:05 -0400 Original-Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:36531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1manSh-0004lG-B7 for emacs-devel@gnu.org; Wed, 13 Oct 2021 19:15:05 -0400 Original-Received: by mail-lf1-x12d.google.com with SMTP id g36so1840085lfv.3 for ; Wed, 13 Oct 2021 16:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KOpp86Mj7RROJfCSl+hHVaN3mPrwhHYVxsHeVFRqc7I=; b=FkAGS4bP4wu+zL1/UhE1vAcejxFcUDQ223BY2ED8uVmmmKtwPoCZSZ89qv0bXTMk3x R9iJvLuYAbodVdkaaQ3IpMh6lHcbGhtqA8ocs2sWpUpcPqV/K+p/qVvHia5+GQHydSNU DRAhoxkvUEXkhE4tZ+1b2XYp/pGQqFjYgQwYNiTZttg9/zqbbMqmLZcPb8YNSAa7Of+x wgKO29kTwXYF2edC0hS6ErG18KT986mNl87RrdX59jkQLed4B2nmBC3cj+43tAK2EwNZ Z6PmoViO0liGrdKUUuatyv9MJvqNl6UFM09pIdLfsWYK+Cm4T/d/k4Ei6W/xyFC/VElK j/Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KOpp86Mj7RROJfCSl+hHVaN3mPrwhHYVxsHeVFRqc7I=; b=prpA7gGFpSeRDRA8/uqJcwFG07KW2lKPmIeUMNT/tYYJni+glCM415R4z6HKc/afCZ 1yq+UCpycxb0O6TOcvbsd8PXvuT+X6hV2IhLpSvoAOeLzY2xpNzFHI7fj1SD/1/zE2JZ 6nfZFf0cvVDgypIc3B35YMVFKKFPMtZVGU4DzHIBXWXpxqHWVebrgd7ypJ8pOOneu9m4 mG9jXMWb6rJ0Uk9ie++K3LKxRywmdQhSUdcQgZOaoaiiwpQuy2A8bDGkqISI4X1TFqaI MIm3DcSwTN/bnKJobXJ+2IFvBIgj8einmR9jE2gIj8e9J8xW9SCSwi0ub+dDm4wsLluE rJDg== X-Gm-Message-State: AOAM533yb4KGG3H4TgNZoUJYgB/jtqNSl9vcQGyG8AwyAq2Ab45x7c+w laW4ymcWNxIbLMhP55sEOHNN9ZTvPKs= X-Google-Smtp-Source: ABdhPJwVmt7JWibhR1kLbjpsKBbQaF7oYCXo3zTCVaHaKSVlXNReA6drlO0c7NZLKIQxxjJXlEWd5g== X-Received: by 2002:a2e:3e16:: with SMTP id l22mr2404028lja.210.1634166901722; Wed, 13 Oct 2021 16:15:01 -0700 (PDT) Original-Received: from [192.168.0.103] ([5.18.248.29]) by smtp.googlemail.com with ESMTPSA id b30sm74766lfc.110.2021.10.13.16.15.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Oct 2021 16:15:01 -0700 (PDT) In-Reply-To: <87ee8obqyy.fsf@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=raaahh@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:276949 Archived-At: On 13.10.2021 23:00, Tim Cross wrote: > IFF this is the case, having to start a whole second Emacs instance as a > daemon, just to edit elisp with emacs seems like a significant resource > sink with no real benefit other than adding additional failure points. FWIW, 'emacs -Q' has a much faster start than most of language servers out there. So it shouldn't be a problem. What *would* -- is that most of the language smarts we have implemented for Elisp relies on edited code being loaded in the current session. Which seems hard to synchronize to the external Emacs instance. But nothing should stop us from adding an additional "transport" for the LSP protocol -- e.g. an in-process one. It's still probably not a good idea (basing all our IDE features solely on the LSP protocol). See my first message in this thread.