From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!aioe.org!gy7opw3oYmwPg+L8gXeD2w.user.46.165.242.75.POSTED!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Gnu Emacs Ada mode 8.0 beta released. Date: Mon, 07 Nov 2022 16:12:29 -0800 Organization: Aioe.org NNTP Server Message-ID: <86cz9ytic2.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="37031"; posting-host="gy7opw3oYmwPg+L8gXeD2w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:rnsaqWzFirbTinkBGIITvjIhydY= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:64580 List-Id: Gnu Emacs Ada mode 8.0 beta is now available in GNU ELPA devel for beta testing. All Ada mode executables can now be built with Alire (https://alire.ada.dev/); this greatly simplifies that process. gpr-query and gpr-mode are split out into separate GNU ELPA packages. You must install them separately (Emacs install-package doesn't support "recommended packages" like Debian does). Ada mode can now be used with Eglot; this is controlled by new variables: ada-face-backend - one of wisi, eglot, none ada-xref-backend - one of gnat, gpr_query, eglot, none ada-indent-backend - one of wisi, eglot, none The the indent and face backends default to wisi if the wisi parser is found in PATH, to eglot if the Ada LSP server is found, and none otherwise. The xref backend also looks for the gpr_query executable in PATH. The current AdaCore language server (23) support face but not indent. The current version of eglot (19) does not support face. So for now, eglot + ada_language_server only provides xref. The AdaCore language server ada_language_server is installed with GNATStudio (which ada-mode will find by default), or can be built with Alire. If you build it with Alire, either put it in PATH, or set gnat-lsp-server-exec. I have not tested ada-mode with lsp-mode. You can set ada-*-backend to 'other to expermiment with that, or tree-sitter, or some other backend. To access the beta version via Gnu ELPA, add the devel archive to package-archives: (add-to-list 'package-archives (cons "gnu-devel" "https://elpa.gnu.org/devel/")) Then M-x list-packages; the beta release shows as ada-mode version 8.0.3.0.20221106.55317, wisi version similarly. Please report success and issues to the Emacs ada-mode mailing list https://lists.nongnu.org/mailman/listinfo/ada-mode-users. The required Ada code requires a manual compile step, after the normal list-packages installation: cd ~/.emacs.d/elpa/ada-mode-7.3beta* ./build.sh ./install.sh If you have Alire installed, these scripts use it. Otherwise, this requires AdaCore gnatcoll packages which you may not have installed; see ada-mode.info Installation for help in installing them. -- -- Stephe