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

format source location messages to look like gcc messages #218

Merged
merged 2 commits into from Feb 2, 2015

Conversation

soenkehahn
Copy link
Contributor

Lots of tools (e.g. vim's quickfix) know how to parse gcc messages (and
allow you to jump to source locations).

See below for how the messages in this branch look like. I'm not overly passionate about the exact message format, but this seems to be the most logical to me and it works with vim's quickfix and geany.

Dev
  something
    foo FAILED [1]
    bar
      baz FAILED [2]
      boo FAILED [3]

Failures:

  dev/DevSpec.hs:15: (best-effort)
  1) Dev.something foo
       expected: False
        but got: True

  dev/DevSpec.hs:18: (best-effort)
  2) Dev.something.bar baz

  dev/DevSpec.hs:20: (best-effort)
  3) Dev.something.bar boo

Source locations marked with "best-effort" are calculated heuristically and may be incorrect.

Randomized with seed 1677688156

@sol
Copy link
Member

sol commented Jan 28, 2015

@soenkehahn LGTM. Can you update the CHANGES.md and cut a release?

Lots of tools (e.g. vim's quickfix) know how to parse gcc messages (and
allow you to jump to source locations).
@sol
Copy link
Member

sol commented Jan 29, 2015

@soenkehahn damn, we did not push this to master. Is the tag we created the same state as this PR?

@soenkehahn soenkehahn merged commit 9ec0648 into master Feb 2, 2015
@soenkehahn soenkehahn deleted the source-location-format branch February 2, 2015 03:26
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.

None yet

2 participants