From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: New jrpc.el JSONRPC library (Was: [ELPA] New package: eglot) Date: Sat, 19 May 2018 11:46:05 +0300 Message-ID: <83r2m8ghiq.fsf@gnu.org> References: <87lgcrqgvz.fsf@gmail.com> <831seipvdb.fsf@gnu.org> <871se9lyid.fsf_-_@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1526719461 18824 195.159.176.226 (19 May 2018 08:44:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 May 2018 08:44:21 +0000 (UTC) Cc: monnier@iro.umontreal.ca, vibhavp@gmail.com, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 19 10:44:17 2018 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 1fJxTM-0004mL-OL for ged-emacs-devel@m.gmane.org; Sat, 19 May 2018 10:44:16 +0200 Original-Received: from localhost ([::1]:42258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJxVT-00036b-LF for ged-emacs-devel@m.gmane.org; Sat, 19 May 2018 04:46:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJxVN-00036T-4m for emacs-devel@gnu.org; Sat, 19 May 2018 04:46:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJxVK-00059R-1O for emacs-devel@gnu.org; Sat, 19 May 2018 04:46:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJxVA-00056b-1m; Sat, 19 May 2018 04:46:08 -0400 Original-Received: from [176.228.60.248] (port=1918 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fJxV9-0007EK-5q; Sat, 19 May 2018 04:46:07 -0400 In-reply-to: <871se9lyid.fsf_-_@gmail.com> (message from =?utf-8?B?Sm8=?= =?utf-8?B?w6NvIFTDoXZvcmE=?= on Fri, 18 May 2018 17:27:54 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:225428 Archived-At: > From: João Távora > Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, vibhavp@gmail.com > Date: Fri, 18 May 2018 17:27:54 +0100 > > So, off-list Stefan likewise suggested that some level of LSP > "infrastructure" is integrated into Emacs, which could lead to merging > eglot.el and other LSP clients like lsp-mode.el in the future. > > As JSONRPC support is a mandatory component of LSP, I've extracted a > library implementing the JSONRPC spec (see www.jsonrpc.org) out of > eglot.el. > > I propose this library, jrpc.el, for Emacs core (or GNU ELPA, or > both). I hope people can review it, comment on it, and propose changes, > particularly developers of other existing LSP-modes. I attach to the > end of this mail with a reasonably complete ";;; Commentary" header, > including a simple usage example. > > JSONRPC is apparently also used for other non-LSP applications. See > http://json-rpc.info/. Thanks, this sounds like a good addition. Does it (or can it) work with the built-in JSON support we have on the master branch? And I still wonder whether more of eglot's LSP support should be in core. After all, only customizing LSP for a specific language should be left for the major modes, the rest of interaction with LSP is probably language-agnostic, right?