Skip to content

Better compilation error #29

@macabeus

Description

@macabeus

When compiling the code, the Compiler Plugin appends the context source to the top of the C code submitted.

It leads to having confusing line numbers. For example, a 3-line C code might have a compilation error saying that line 2500 is wrong, since the context is 2497 lines long.

On SA3, I did a workaround to fix this map, but it led to having a negative line number if the compiler wants to point to a line in the context section.

On AF, I didn't port this workaround, and the line numbers for the submitted C code are always confusing.

We need a better and more flexible way to report the errors, so AI can act on it better

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions