Skip to content

Bug: FLOW compilation failed suppresses all error diagnostics #413

Closed

Description

@godofecht

Description

When compilation fails, the Flow CLI prints only FLOW compilation failed with no further diagnostic information. There is no parse error message, no type error, no file/line reference, and no code generation error. This makes debugging extremely difficult.

Reproduction

Introduce any compile error (syntax, type, or codegen) in a .flow file and run:

flow run myfile.flow

Expected behavior

The compiler should print:

  • The error type (parse error, type error, codegen error)
  • The file path and line number
  • A description of the error
  • Optionally, the offending line of code with a caret pointing to the column

Actual behavior

Compiling myfile.flow...
FLOW compilation failed

No further output.

Impact

Every Flow developer encounters this. Debugging compilation failures requires binary search by commenting out code sections, which is extremely time-consuming. Discovered repeatedly during flow-scikit development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions