integrated-application-development / integrated-application-development/pasfmt

Better error messages

Open
#53 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
105
Forks
20
PR merge metrics
No merged PRs in 30d

Description

It would be nice if the logging messages emitted from the `core` crate could be displayed in the context of the source code being formatted.

For example, instead of this warning that would be emitted in v0.1.0
```text
WARN - Found unexpected character: !. Creating `Unknown` token.
```
which gives no information about which file contains the bad token, let alone the position within that file, it could look something like
```
warning: unkown token
┌─ test.pas:1:5

1 │ test!
│ ^
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.