ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ada-mode-users] Grammar issue for gpr package Naming


From: Simon Wright
Subject: Re: [Ada-mode-users] Grammar issue for gpr package Naming
Date: Thu, 16 May 2019 15:00:51 +0100

On 15 May 2019, at 02:26, Stephen Leake <address@hidden> wrote:

Thanks for the reply.

You could try running the generator:

# patch just the .wy file

This doesn't work, because the .wy files aren't in the ELPA package.

I managed to get mtn to admit to there having been revisions since 28/04/2018 by starting a fresh database, & was able to get a recent revision of org.emacs.ada-mode (fd5e94e6327baa29f40550d9d2a7472996b2b49a, of 07/05/2019). The latest tag was org.emacs.ada-mode-6.0.1.

I had trouble applying the gpr.wy part of the patch, I think it got trashed in Mail.

# if not done yet, build the generator:

$ cd ~/.emacs.d/elpa/wisi-2.1.0

$ ./build-wisitoken-bnf-generate.sh

OK

# run the generator:

$ cd ~/.emacs.d/elpa/ada-mode-6.1.0

$ ~/.emacs.d/elpa/wisi-2.1.0/wisitoken-bnf-generate.exe gpr.wy

OK

That should produce the generated files. Then:

$ ./build.sh

to compile and install everything.

The new indentation engine was happy with the 'at' syntax. However, all indentation was smashed to the left margin.

I uninstalled ada-mode and reinstalled (with restarts of Emacs). Now, if I open an existing .gpr file, syntax is still OK but the indentation is again smashed to the left margin; while trying to edit ends up with the parser busy and CPU load 100%.

I see that I have multiple copies of the generated files, in particular gpr_mode_wisi_parse.exe, and two of them are installed with compilers, which doesn't seem like a good plan. I have

-rwxr-xr-x  1 simon  staff  21413708 16 May 13:56 gpr_query
-rwxr-xr-x  1 simon  staff   5575164 16 May 13:57 run_ada_lr1_parse.exe
-rwxr-xr-x  1 simon  staff   7677404 16 May 13:57 run_ada_lalr_parse.exe
-rwxr-xr-x@ 1 simon  staff   5574668 16 May 13:57 ada_mode_wisi_lr1_parse.exe
-rwxr-xr-x  1 simon  staff   7676948 16 May 13:57 ada_mode_wisi_lalr_parse.exe
-rwxr-xr-x  1 simon  staff   5373224 16 May 13:57 run_gpr_parse.exe
-rwxr-xr-x  1 simon  staff   5372752 16 May 13:57 gpr_mode_wisi_parse.exe

I also have 

-rw-r--r--  1 simon  staff  41550866 23 Mar 17:20 ada_lr1_parse_table.txt

What I'm going to do is to regenerate with the unpatched ada-mode gpr.wy file, and then move the executables etc listed above to a different place on my PATH.

[later] OK, can edit project files again!

--S

reply via email to

[Prev in Thread] Current Thread [Next in Thread]