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

Well-formed errors print redundant srclocs on the command line #1436

Open
blerner opened this issue Feb 5, 2019 · 0 comments · May be fixed by #1451
Open

Well-formed errors print redundant srclocs on the command line #1436

blerner opened this issue Feb 5, 2019 · 0 comments · May be fixed by #1451

Comments

@blerner
Copy link
Member

blerner commented Feb 5, 2019

The tiny program

check:
  nothing
end

Produces the following error message on the command line:

Well-formedness: (at file:///home/blerner/pyret-lang/test1.arr:2:2-2:9) A standalone variable name probably isn't intentional. srcloc(file:///home/blerner/pyret-lang/test1.arr, 2, 2, 9, 2, 9, 16)

The extra srcloc(...) isn't needed. There's a bunch of these ED.cmcode(self.loc) expressions in many of the wf-errors' render-reason methods.

BenMusch added a commit to BenMusch/pyret-lang that referenced this issue May 23, 2019
BenMusch added a commit to BenMusch/pyret-lang that referenced this issue May 23, 2019
@BenMusch BenMusch linked a pull request May 23, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant