Skip to content

MIR.lower errors omit the file name ("at line N", "at <source>:N") #626

Closed

Description

@blacktrs

Reported in #614 (item 10).

Problem. On a project with tens of thousands of files these errors cannot be located without custom scanners:

  • unsupported statement kind Function at line 4 / unsupported statement kind Class at line 6 — no file at all;
  • under manticore build, unsupported assign target kind ... at <source>:228 — placeholder instead of the path (manticore compile names it).

Parse errors already print path, line, column and a snippet.

Acceptance. Every front-end diagnostic (lowering, declaration checks, verify) names the real source path and line under both compile and build; a CLI golden test pins one lowering error per command.

Activity

  1. added
    enhancement
    on Nov 10, 2026
  2. blacktrs commented on Nov 12, 2026

    @blacktrs
    ContributorAuthor

    Fixed by #634 (diagnostic sink). Verified on main 55e1f1c: a lowering error names the real path and line under both compile and build (s/m.php:6: error[lower.unsupported]: unsupported assign target kind StaticAccess); CLI golden in tests/cli/behaviour.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions