-
Notifications
You must be signed in to change notification settings - Fork 640
Description
Hello,
Thank you for adding the Ada filetype to ctags.
I ran into a "Segmentation Fault" error while typing the hello_world Ada example program in Geany IDE version 2.
Note: the "Segmentation Fault" error occurred after typing "is" -- see animated gif below.
== "Segmentation Fault" Error Details ==
file: ada.c
directory: ctags/parsers/
issue: "Segmentation Fault" error after typing "is" in Geany IDE version 2
possible cause: line 1176, "else if (line[pos] == '(')"
possible fix: replace with "else if (adaCmp ("("))"
---- or ----
alternative fix: replace with "else if (!eof_reached && line[pos] == '(')"
......
The following is an example of a "Segmentation Fault" error causing Ada file:
:seg_fault_example.adb:
with Ada.Text_IO;
procedure Seg_Fault_Example is
......
The following is a copy of the "ada.c" file with my recommended fix; namely,
"from-ctags-version-6.2.0-see-line-1176-ada.c"
from-ctags-version-6.2.0-see-line-1176-ada.c.txt
Note: I also identified this issue on "Geany IDE" github's website.
I hope this information helps.