comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Onions <ponions37@gmail.com>
Subject: Re: Problem with emacs ada-mode-7.1.4
Date: Sun, 18 Jul 2021 06:28:32 -0700 (PDT)	[thread overview]
Message-ID: <71c3d589-fd6f-4b5e-a9f3-394109b1fa05n@googlegroups.com> (raw)
In-Reply-To: <76673bec-53cc-4789-8f01-4a1d0d04e077n@googlegroups.com>

So I've finally managed to get ada-mode installed and working with GNAT CE 2020.  For the record here's what I did (in case it's useful to others):-

1. Cloned git repositories gnatcoll-db and gnatcoll-bindings from github.com/AdaCore/, checked out branch "20-sustained" in both repositories then built and installed gnatcoll_iconv (in gnatcoll-bindings), and gnatcoll_xref, gnatcoll_sql, gnatcoll_sqlite (in gnatcoll-db).

2. In ~/.emacs.d/elpa/ada-mode-7.1.4/ ran ./build.sh, which failed with an error message about file sal-gen_unbounded_definite_red_black_trees.adb.  So went to that file in ~/.emacs.d/elpa/wisi-3.1.3/, read the comments tagged with "WORKAROUND" and deleted the appropriate ".all" components.  Reran ./build.sh which completed successfully and then ran ./install.sh, also successful.

3. Opened an Ada file and watched Emacs complain about a void-function called wisi--lexer-error.  Enabled the Emacs debugger and looked in the traceback.  Message seems to be coming from compiled byte-code, so I deleted all .elc files in the wisi-3.1.3 directory and tried again.  Now I get a message saying ada_mode_wisi_lr1_parse cannot be found on exec-path, so I go look for it and end up adding the GNAT CE 2020 bin path to exec-path in my Emacs setup and now finally it's working!  Phew.

I have one question: was my original problem a bug in the ada-mode code or is it a bug in the latest GNAT compiler?  (GCC 11.1.0)

Thanks,
Paul

  reply	other threads:[~2021-07-18 13:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-17  7:56 Problem with emacs ada-mode-7.1.4 Paul Onions
2021-07-17 21:18 ` Simon Wright
2021-07-18  8:43   ` Paul Onions
2021-07-18  9:00     ` Dmitry A. Kazakov
2021-07-18  9:26       ` Paul Onions
2021-07-18 13:28         ` Paul Onions [this message]
2021-07-18 16:24           ` Simon Wright
2021-07-18 19:24             ` Paul Onions
2021-07-19 11:14               ` Simon Wright
2021-07-19 21:17             ` Stephen Leake
2021-07-19 20:57         ` Stephen Leake
2021-07-18 17:03 ` Stephen Leake
2021-07-18 19:36   ` Paul Onions
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox