From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Language Servers and Emacs Date: Wed, 26 Apr 2017 16:23:24 +0100 Message-ID: <87d1bz42hf.fsf@russet.org.uk> References: <20170411122816.751a130f@jabberwock.cb.piermont.com> <20170412085909.44faf429@jabberwock.cb.piermont.com> <87h91cvfz2.fsf@russet.org.uk> <87tw5chytb.fsf@gmail.com> <20170425220038.57619413@jabberwock.cb.piermont.com> <87tw5b4dyw.fsf@russet.org.uk> <20170426092424.61c925c5@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493220313 20720 195.159.176.226 (26 Apr 2017 15:25:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 15:25:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Helmut Eller , Katherine Cox-Buday , emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 26 17:25:02 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3OoO-00053t-Mz for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2017 17:25:01 +0200 Original-Received: from localhost ([::1]:55771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3OoU-00040V-J7 for ged-emacs-devel@m.gmane.org; Wed, 26 Apr 2017 11:25:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Ona-0003ym-3r for emacs-devel@gnu.org; Wed, 26 Apr 2017 11:24:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3OnX-0000qg-00 for emacs-devel@gnu.org; Wed, 26 Apr 2017 11:24:10 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:53618) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d3OnW-0000Pf-Nw for emacs-devel@gnu.org; Wed, 26 Apr 2017 11:24:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yKb+baOg4mVVt06yWtAkAljIOVGdys1g6fVaKmM1viM=; b=JGaWYm6+j6D4z13pPbs9WJoK3 UNRp/2n7JqqortpDg16nk337bOBT2NEUT2CLQh+xS6Zg+dKbJrV26i/ODNtpkGq3ahsfIZblkvQdR P/vynO6So6sMf2zzp4ZTcqdCa0LYCCviQZ1SSpLDhs1Ez/soHnc550RndPkF7pQDGk1LewGqo5lCR IzVn96x9CTrBTLYPrUtFwgb/cA3iv+AW6k2lluGZxiftifjoGMWFsJ992Ic7UDwaCaoezF3VuJ8EQ fBuPfzhlRjt3MfMXSroDpkFE18MdCjiZUEPB/9on54jhJDYPJPY16a/qC4J7D3GdsQ64Inn5ccmgJ ckkEs9bVA==; Original-Received: from janus-nat-128-240-225-75.ncl.ac.uk ([128.240.225.75]:60396 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1d3Omq-0005w2-FZ; Wed, 26 Apr 2017 15:23:24 +0000 In-Reply-To: <20170426092424.61c925c5@jabberwock.cb.piermont.com> (Perry E. Metzger's message of "Wed, 26 Apr 2017 09:24:24 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 78.129.138.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214312 Archived-At: "Perry E. Metzger" writes: > On Wed, 26 Apr 2017 12:15:19 +0100 phillip.lord@russet.org.uk > (Phillip Lord) wrote: >> > I suspect that most of the ways of interacting with external >> > language tools other than LSP will fade over time, but whether or >> > not that's the case, it clearly seems to be smarter to have an >> > external language tool than to have to duplicate the work of >> > parsing and managing symbol tables inside the editor. >> >> Well, this depends whether LSP is good or not. > > You might re-read what I was saying. It is more general than LSP. My > point was that whether _LSP_ is the One True Way or not, the idea of > interacting with language tools to get information about the program > instead of building a parser for every language into the editor is > clearly a good one. So that doesn't depend on whether LSP is good or > not. :) You are right, I didn't read your statement clearly enough. I am not 100% convinced though. I think, some of the work will remain with the IDE, both because of speed and because of the difference between in memory and on file. Syntax highlighting is an obvious example at least in part. >> A brief look at LSP seems that it's relatively limited in scope, >> though; it has some discussion of "capabilities" and "execute >> command". How extensible is it? For instance, NREPL allows evalling >> code, or loading files? Would it be possible to send enough data >> through LSP to support edebug step through debugging for instance? > > It's really intended for helping editors out, but it is extensible. > Have a read: > > https://github.com/Microsoft/language-server-protocol > https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md Okay.