Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds source location #28

Merged
merged 2 commits into from
Sep 26, 2020
Merged

Conversation

Baccata
Copy link
Collaborator

@Baccata Baccata commented Sep 26, 2020

  • The source location contains both absolute and relative (to the wd at build time) paths, as well as the line number.
  • The location information is communicated to the front-end via the RecordedExpression.
  • Adds a flag (disabled by default) to the Expecty constructor to display the source location in the error message.

* The source location contains both absolute and relative
(to the wd at build time) paths, as well as the line number.
* The location information is communicated to the front-end via
the RecordedExpression.
* Adds a flag (disabled by default) to the `Expecty` constructor
to display the source location in the error message.
class Expecty extends Recorder[Boolean, Unit] {
class Expecty(displayLoc: Boolean = false) extends Recorder[Boolean, Unit] {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be more consistent to put this into val like failEarly and showTypes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 hadn't notice those. Addressed : 73f89d0

Copy link
Owner

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. thanks for the contribution!

@eed3si9n eed3si9n merged commit 68602dc into eed3si9n:master Sep 26, 2020
@Baccata Baccata deleted the add-source-location branch September 26, 2020 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants