Skip to content

Ada keyword "is" error #4284

@guardian4096

Description

@guardian4096

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.

Image

== "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

seg_fault_example.adb.txt

......

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions