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

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

[Ada-mode-users] bug#35144: 26.1; ada-mode 6.1.0 Constraint_Error in whi


From: Ludovic Brenta
Subject: [Ada-mode-users] bug#35144: 26.1; ada-mode 6.1.0 Constraint_Error in which_func_update for file containing only a procedure
Date: Thu, 04 Apr 2019 17:15:09 +0200

X-Debbugs-CC: address@hidden
Package: emacs, ada-mode
Version: 26.1
Severity: minor

This bug exists only when wisi-partial-parse-threshold is zero,
which happens when ~/.emacs contains:

(add-hook 'ada-mode-hook
          (lambda ()
            "For ada-mode 6.1, force partial parsing in all buffers."
            (if (version< "6.0" (ada-mode-version))
              (setq wisi-partial-parse-threshold 0))))

Visit a file foo.adb consisting of:

procedure Foo is
begin
end Foo;

This immediately triggers this in the *Messages* buffer:

Error running timer ‘which-func-update’: (error "Error in which-func-update: (error \"unhandled exception: CONSTRAINT_ERROR: emacs_wisi_common_parse.adb:320 index check failed\")")

--
Ludovic Brenta.





reply via email to

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