Skip to content

🐛 Parsing errors regex of syrec-editor not considering OS-dependent line endings of error messages #287

@TooMuchDakka

Description

@TooMuchDakka

Environment information

  • OS: Windows 10 x64
  • C++ compiler: MSVC 19.40.33812.0
  • MQT Core: 3.0.3
  • MQT Syrec: 'main' branch (Commit: #0390120)

Description

When trying to parse a SyReC program containing syntax or semantic errors the regular expression used to split the aggregate of the reported error messages is not working correctly on Windows. This is due to the fact that the parser concatinates the error messages with a platform dependent newline character (Unix: '\n', Windows: '\r\n') while the regular expression in the syrec-editor only considers '\n' newline characters.

Expected behavior

The syrec-editor should be able to split the aggregate of the the found error messages correctly instead of reporting the fall-back error message: 'No matching lines found in error message'.

How to Reproduce

  1. Perform a build from source of mqt.syrec
  2. Launch the syrec-editor python application and define a SyReC circuit containing erros in the code editor widget
  3. Select either the cost or line aware synthesis radio button and then press the 'Build' button

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpythonAnything related to Python code

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions