From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Making Emacs more friendly to newcomers Date: Fri, 24 Apr 2020 07:33:34 +0000 Message-ID: <87368t2v95.fsf@pm.me> References: <87h7xe79l7.fsf@yahoo.com> <87h7xdbne4.fsf@yahoo.com> <87lfmput2r.fsf@pm.me> <878siorvl7.fsf@yahoo.com> <673E6311-3192-46B9-A058-171550B4F558@icloud.com> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="88525"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , ndame , emacs-devel@gnu.org To: =?UTF-8?B?7KGw7ISx67mI?= , Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 24 09:42:18 2020 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 1jRsyW-000MtF-By for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Apr 2020 09:42:16 +0200 Original-Received: from localhost ([::1]:53478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRsyV-0001r8-8G for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Apr 2020 03:42:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35148) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRsxl-0001F0-Qs for emacs-devel@gnu.org; Fri, 24 Apr 2020 03:41:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRsxk-00085F-SW for emacs-devel@gnu.org; Fri, 24 Apr 2020 03:41:29 -0400 Original-Received: from mail-40134.protonmail.ch ([185.70.40.134]:11740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRsxk-00082y-4G for emacs-devel@gnu.org; Fri, 24 Apr 2020 03:41:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1587713622; bh=18h4FXeiN42U/gUTKAim2sE8GN/Gh+05vmpomxfAF0k=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=TXzOo89iwNHhAe8Ix71EAcHW0HtNS2kM69BwEMUuV/PnNE5N1n71alIhnBGKwVXZq kK47wxVbk3sA54UVslPpaQGtWR1o4t8+X8zc6Pzyn/Gv3T8KTwRygyYR4tUdpQKnlK /w1Lq9pIBWk1uUk6piSNfn4zCvsfXpPj8x09hIYMVPDsTYi6WxMvjSS4GyqKDRFkUz lwCWOiLtoLCdyGyWS6vInMleXgA0D+4bt5g3rxDv/dini653KEkgWlnJqHTe+ovUnN DMGQoyBd0R2yOlxmjGAOZFxTbqLM+rcQE1fMaqWNwmXYpYRz6ifpcEwHUIocRo7sLg vyoJrX/e5/JzA== In-Reply-To: <673E6311-3192-46B9-A058-171550B4F558@icloud.com> Received-SPF: pass client-ip=185.70.40.134; envelope-from=theothornhill@pm.me; helo=mail-40134.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/24 03:41:25 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.70.40.134 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:247672 Archived-At: =EC=A1=B0=EC=84=B1=EB=B9=88 writes: > Richard Stallman =EC=9E=91=EC=84=B1: > >> What kind of thing is tsserver? The word "server" has multiple meanings= ; >> in what sense is tsserver a "server"? > > It=E2=80=99s a LSP server that responds requests from editors with inform= ation about > types of identifiers, code completion, actions, etc... > Actually, tsserver is not an lsp-server, which is currently adding to the confusion: https://github.com/Microsoft/TypeScript/issues/11274 This is kind of a problem, since VsCode implements its own proprietary server for JavaScript/TypeScript, and also functions as a normal lsp-compliant editor. Assuming most people use VsCode for web-dev there is actually a huge user base which is not actively using lsp. This complicates lsp-development for other editors like emacs and vim. We have to use either a wrapper server that wraps tsserver to be lsp-compliant (https://github.com/theia-ide/typescript-language-server) or create our own tsserver compliant implementation. The latter is what tide has done as far as I can tell. Right now the typescript-language-server I linked to is unmaintained, and was the best implementation around. This affects emacs, since it is not updated to TS 3.8 yet, and maybe never will. >> Would it run on the same machine you are editing on, or another machine? > > It usually runs on the same machine that the codebase exists. > Yes Theodor Thornhill