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

test suite failure, probably due to a pretty printer dependency update #448

Open
DanBurton opened this issue Feb 11, 2020 · 1 comment
Open

Comments

@DanBurton
Copy link
Contributor

DanBurton commented Feb 11, 2020

Test suite failure for package haskell-src-exts-1.22.0
    test:  exited with: ExitFailure 1
Full log available at /var/stackage/work/unpack-dir/.stack-work/logs/haskell-src-exts-1.22.0-test.log


    Tests
      Parser tests
        OverloadedLabels:              OK (0.08s)
        RecordInfixSelector:           OK
        TabWhitespace:                 OK
        CxtWhitespace:                 OK (0.01s)
        CApiFFI:                       OK
        Rules:                         OK (0.01s)
        QuasiQuoteOld:                 OK
        GadtRecordFields:              OK
        Completesig03A:                OK
        LanguagePragma:                OK
        TemplateHaskellQuotedNames:    OK
        DerivingParen:                 OK
        THTSplices:                    OK
        GadtStrictness:                FAIL
          Files 'tests/examples/GadtStrictness.hs.parser.golden' and 'tests/examples/GadtStrictness.hs.parser.out' differ
        EqualityConstraints2:          OK
        BadStringLineBreak:            OK
....
        ContextOrdering:               OK (0.01s)
        ExtraPrettyParentheses:        OK (0.02s)
        RoleAnnotations:               OK (0.02s)
        Ppr048:                        OK
        Directory:                     FAIL (0.28s)
          Files 'tests/examples/Directory.hs.parser.golden' and 'tests/examples/Directory.hs.parser.out' differ
        ClassContext:                  OK (0.02s)
        SCCPragmas:                    OK
        TrailingWhere:                 OK
        TrailingWhere2:                OK
...
        DataKinds:                     OK (0.05s)
        StarInType:                    OK
        QuasiQuoteToplevel:            OK
        Nounpack2:                     FAIL
          Files 'tests/examples/Nounpack2.hs.parser.golden' and 'tests/examples/Nounpack2.hs.parser.out' differ
        ExtraEndBrace:                 OK
        IndentedTopLevelWhere:         OK
...
        FixityTests:                   OK (0.02s)
        DsStrictData:                  FAIL (0.03s)
          Files 'tests/examples/DsStrictData.hs.parser.golden' and 'tests/examples/DsStrictData.hs.parser.out' differ
        T13050:                        OK (0.02s)
        TySplice3:                     OK
...
        QuasiQuoteUnit:                OK
        AmbiguousFixities:             FAIL
          Files 'tests/examples/AmbiguousFixities.hs.parser.golden' and 'tests/examples/AmbiguousFixities.hs.parser.out' differ
        CStyleLinePragmas:             OK
        Lib:                           OK (0.02s)
...

Was seen on:

@felixonmars
Copy link

4 out of the 5 test failures seems to be pretty-show not willing to prettify the result: yav/pretty-show#45

The other one seems to be an easy fix:

--- /build/haskell-src-exts/src/haskell-src-exts-1.21.1/tests/examples/AmbiguousFixities.hs.parser.golden        2020-02-22 10:31:04.000000000 +0100
+++ /build/haskell-src-exts/src/haskell-src-exts-1.21.1/tests/examples/AmbiguousFixities.hs.parser.out   2020-02-22 10:34:01.452563494 +0100
@@ -1 +1 @@
-ParseFailed (SrcLoc "" (-1) (-1)) "Ambiguous infix expression"
+ParseFailed (SrcLoc "" -1 -1) "Ambiguous infix expression"

AshleyYakeley added a commit to AshleyYakeley/haskell-src-exts that referenced this issue Jun 1, 2020
DanBurton added a commit that referenced this issue Jun 2, 2020
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

No branches or pull requests

2 participants