Skip to content

Feature request: One case where error reporting could be improved - newline character (\n) #397

@stanislaw

Description

@stanislaw

Hello,

It is surprising but after my previous report on Oct 27, 2020, I have been a very happy user of textX, which makes it 2.5+ years by now 😄

I would like to report something that I notice and think about from time to time, and then I postpone and postpone reporting it over and over again.

The line below shows both issues at the same time:

E           textx.exceptions.TextXSyntaxError: None:5:10: Expected Not or '.' or '
E           ' or '>>>' => ' COMMENT: *'

The newline symbol is printed as-is to the console, which makes it rather confusing even for me, who is not a beginner when it comes to working with DSLs based on textX. Would it be possible to replace '\n' with something like "line break" or "newline character", so that it is immediately clear that we are talking about the line break in this case?

The second question/report has been extracted to a separate issue, see #399.

I am curious to know if either or both of these features would be doable with not much effort. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions