Haskell-language-server: Bug: test tries to discover in `dist-newstyle`

Created on 29 Jul 2020  路  5Comments  路  Source: haskell/haskell-language-server

From https://github.com/NixOS/nixpkgs/pull/93768

Test suite wrapper-test: RUNNING...
haskell-language-server-wrapper
  --project-ghc-version
    stack with ghc 8.10.1: FAIL
      Exception: dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)
    stack with ghc 8.8.3:  FAIL
      Exception: dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)
    cabal with global ghc: FAIL
      Exception: dist-newstyle: getDirectoryContents:openDirStream: does not exist (No such file or directory)

3 out of 3 tests failed (0.07s)
Test suite wrapper-test: FAIL
Test suite logged to:
dist/test/haskell-language-server-0.2.2.0-wrapper-test.log

https://github.com/NixOS/nixpkgs/pull/93768#issuecomment-665271699

I had a chat with lukelau in the hls freenode room. The issue seems to be simple and generic. The test needs the binary in the PATH and they wrote a hack accessing dist-newstyle to discover the binaries.

cc @maralorn

build needs confirmation bug testing

All 5 comments

@bubba I will check when I am back at the keyboard. Will probably take a week.

@GuillaumeDesforges @maralorn could you confirm if this was fixed by the commit referenced above?

Sorry for letting this slide. This seems to be fixed.

Of course we have tons of other tests failing and I have trouble fixing all of them.

Ok, i am gonna close this one then. Feel free to open new ones for failing tests

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jinl0ng picture jinl0ng  路  3Comments

galagora picture galagora  路  4Comments

alanz picture alanz  路  4Comments

davidspies picture davidspies  路  3Comments

expipiplus1 picture expipiplus1  路  3Comments