Skip to content

Failing ghcide tests in windows #758

Closed

Description

@jneira

I've run the test suite locally and in azure ci and i've got those failing tests:

 cpp
  cpp-error:                                        FAIL (4.16s)
diagnostics
  add missing module (non workspace):               FAIL
watched files
  non workspace file:                               FAIL

Full test log of failing tests here: https://gist.github.com/jneira/afe77151a540c5a27943d7661eefe3fa

Activity

  1. jneira commented on Mar 9, 2020

    @jneira
    MemberAuthor

    Locally (windows 7) i've got an additional one:

      plugins:                                            FAIL (0.45s)
        test/src\Development\IDE\Test.hs:35:
        Could not find (DsError,(8,14),"Variable not in scope: c") in List [Diagnostic {_range =
    Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 100000, _character = 0}}, _severity = Just DsError, _code = Nothing, _source = Just "typecheck", _message = "Unexpected usage error\nCould not find module \8216GHC.TypeLits.KnownNat.Solver\8217\nUse -v to see a list of the files searched for.\n", _relatedInformation = Nothing}]
    
  2. ndmitchell commented on Mar 9, 2020

    @ndmitchell
    Collaborator
  3. self-assigned this
    on Sep 15, 2020
  4. jneira commented on Sep 17, 2020

    @jneira
    MemberAuthor

    I am thinking in creating a helper function knowBrokenInWindows, use it in the actual failing tests for windows.
    At least the test suite will be executed.

  5. jneira commented on Sep 18, 2020

    @jneira
    MemberAuthor

    Local failing tests:

    cpp
        cpp-error:                                                                                            FAIL (3.30s)
          test/src\Development\IDE\Test.hs:41:
          Could not find (DsError,(2,1),"error: unterminated") in List [Diagnostic {_range = Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 1, _character = 0}}, _severity = Just DsError, _code = Nothing, _source = Just "compiler", _message = "`gcc.exe' failed in phase `C pre-processor'. (Exit code: 1)", _tags = Nothing, _relatedInformation = Nothing}]
    
    add missing module (non workspace):                                                                   FAIL
          Exception: Maybe.fromJust: Nothing
          CallStack (from HasCallStack):
            error, called at libraries\base\Data\Maybe.hs:148:21 in base:Data.Maybe
            fromJust, called at test/src\Development\IDE\Test.hs:108:59 in main:Development.IDE.Test
    
    Haddock html links:                                                                                 FAIL (3.37s)
            test\\exe\\Main.hs:2132:
            failed to find: `[Documentation](file:///` in hover message:
            ```haskell
            Data.Text.Internal.Text
            :: *
            ```
            *       *       *
            *Defined in ‘Data.Text.Internal’*
            *       *       *
    
    
            A space efficient, packed, unboxed Unicode text type.*  *       *
    
    plugins:                                                                                                FAIL (0.78s)
        test/src\Development\IDE\Test.hs:41:
        Could not find (DsError,(8,14),"Variable not in scope: c") in List [Diagnostic {_range = Range {_start = Position {_line = 0, _character = 0}, _end = Position {_line = 1, _character = 0}}, _severity = Just DsError, _code = Nothing, _source = Just "typecheck", _message = "Unexpected usage error\nCould not find module \8216GHC.TypeLits.KnownNat.Solver\8217\nUse -v (or `:set -v` in ghci) to see a list of the files searched for.\n", _tags = Nothing, _relatedInformation = Nothing}]
    
    non workspace file:                                                                                   FAIL (0.60s)
          test\\exe\\Main.hs:576:
          expected: 3
           but got: 5
    
  6. jneira commented on Oct 2, 2020

    @jneira
    MemberAuthor

    After haskell/ghcide#821 the ignored tests are:

    • cpp/cpp-error: @ndmitchell noted that it would be related with a ghc issue. It was merged 6 months ago but we dont have a reliable ghc version for windows yet
    • plugin tests: those tests are problematic in the ci env for ghc > 8.6.5, sometimes fails, other times the test passes (the second one) but they throws weird exceptions frequently or even do not terminate
      • simple plugin: it fails consistently but sometimes throws exceptions: Exception: fd:3: hPutBuf: resource vanished (Broken pipe)
        • when the test check itself fail is with:
    Bad interface file: C:\\sr\\snapshots\\5530c14b\\lib\\x86_64-windows-ghc-8.10.1\\ghc-typelits-knownnat-0.7.2-2xmxeOP6eE9BjPxla9bOqw\\GHC\\TypeLits\\KnownNat.hi\n
    
    • parsedResultAction plugin: also throws Broken pipe exceptions or lsp session timeout but it fails too in ghc-8.10.1 with a unexpected diagnostic:
    Not in scope:
      type constructor or class GHC.Records.Extra.HasField
    Perhaps you meant GHC.Records.Extra.HasField (imported from GHC.Records.Extra)
    Module GHC.Records.Extra does not export HasField.
    
    • but knownBroken also fails! weird
  7. jneira commented on Oct 3, 2020

    @jneira
    MemberAuthor

    Frequent transient errors:

        ghcide restarts shake session on config changes:                                                      FAIL
          Exception: Timed out waiting to receive a message from the server.
          Last message received:
          {
              "tag": "NotWorkDoneProgressEnd",
              "contents": {
                  "jsonrpc": "2.0",
                  "params": {
                      "value": {
                          "kind": "end"
                      },
                      "token": "1"
                  },
                  "method": "$/progress"
              }
          }
    

    Last message varies, f.e. finish: kick (took 0.00s)

  8. jneira commented on Oct 6, 2020

    @jneira
    MemberAuthor
  9. transferred this issue fromhaskell/ghcideon Dec 30, 2020
  10. changed the title [-]Failing tests in windows[/-] [+]Failing ghcide tests in windows[/+] on Dec 30, 2020
  11. removed their assignment
    on Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions