Skip to content

Invalid syntax produces an unhelpful "line 1: Unknown directive? '' error instead of indicating the line number where that error occurs. #25

Open
@supercom32

Description

@supercom32

Bug found under Dragon Basic (commit ID d2ce042)

When working in Dragon Basic I noted that sometimes if you make a mistake (such as using ":" instead of ";" to start a comment line), the compiler will throw an "line 1: Unknown directive?" error. This is fine in principle, but since the line number is not accurate there is no easy way to debug this. The only recourse a user has is to remove all the code from the offending file and slowly add code back until the compiler throws the error (indicating where more scrutiny should be given).

This issue appears to be very similar to issue 10 (#10) where a different kind of error produces an equally unhelpful line number for its error message.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions