Skip to content

Test data is missing in hackage tarballs of ghcide and HLS #1579

Closed
@berberman

Description

@berberman

Expected behaviour

ghcide

$ tree ghcide/test/data
ghcide/test/data
├── boot
│   ├── A.hs
│   ├── A.hs-boot
│   ├── B.hs
│   ├── C.hs
│   └── hie.yaml
├── cabal-exe
│   ├── a
│   │   ├── a.cabal
│   │   └── src
│   │       └── Main.hs
│   ├── cabal.project
│   └── hie.yaml
├── hiding
│   ├── AVec.hs
│   ├── BVec.hs
│   ├── CVec.hs
│   ├── DVec.hs
│   ├── EVec.hs
│   ├── HideFunction.expected.append.E.hs
│   ├── HideFunction.expected.append.Prelude.hs
│   ├── HideFunction.expected.fromList.A.hs
│   ├── HideFunction.expected.fromList.B.hs
│   ├── HideFunction.expected.qualified.append.Prelude.hs
│   ├── HideFunction.expected.qualified.fromList.E.hs
│   ├── HideFunction.hs
│   ├── HidePreludeIndented.expected.hs
│   ├── HidePreludeIndented.hs
│   ├── HideQualifyInfix.expected.hs
│   ├── HideQualifyInfix.hs
│   ├── HideQualifySectionLeft.expected.hs
│   ├── HideQualifySectionLeft.hs
│   ├── HideQualifySectionRight.expected.hs
│   ├── HideQualifySectionRight.hs
│   ├── HideType.expected.A.hs
│   ├── HideType.expected.E.hs
│   ├── HideType.hs
│   └── hie.yaml
├── hover
│   ├── Bar.hs
│   ├── Foo.hs
│   ├── GotoHover.hs
│   └── hie.yaml
├── ignore-fatal
│   ├── cabal.project
│   ├── hie.yaml
│   ├── ignore-fatal.cabal
│   └── IgnoreFatal.hs
├── multi
│   ├── a
│   │   ├── a.cabal
│   │   └── A.hs
│   ├── b
│   │   ├── b.cabal
│   │   └── B.hs
│   ├── cabal.project
│   └── hie.yaml
├── plugin-knownnat
│   ├── cabal.project
│   ├── KnownNat.hs
│   └── plugin.cabal
├── plugin-recorddot
│   ├── cabal.project
│   ├── plugin.cabal
│   └── RecordDot.hs
├── recomp
│   ├── A.hs
│   ├── B.hs
│   ├── hie.yaml
│   └── P.hs
├── references
│   ├── hie.yaml
│   ├── Main.hs
│   ├── OtherModule.hs
│   ├── OtherOtherModule.hs
│   └── References.hs
├── rootUri
│   ├── dirA
│   │   ├── foo.cabal
│   │   └── Foo.hs
│   └── dirB
│       ├── foo.cabal
│       └── Foo.hs
├── TH
│   ├── hie.yaml
│   ├── THA.hs
│   ├── THB.hs
│   └── THC.hs
├── THNewName
│   ├── A.hs
│   ├── B.hs
│   ├── C.hs
│   └── hie.yaml
└── THUnboxed
    ├── hie.yaml
    ├── THA.hs
    ├── THB.hs
    └── THC.hs

20 directories, 78 files

HLS

$ tree test/testdata
test/testdata
├── addPackageTest
│   ├── cabal-exe
│   │   ├── AddPackage.hs
│   │   └── add-package-test.cabal
│   ├── cabal-lib
│   │   ├── AddPackage.hs
│   │   └── add-package-test.cabal
│   ├── hpack-exe
│   │   ├── app
│   │   │   └── Asdf.hs
│   │   └── asdf.cabal
│   ├── hpack-lib
│   │   └── app
│   │       └── Asdf.hs
│   └── invalid
│       └── AddPackage.hs
├── addPragmas
│   ├── AfterShebang.hs
│   ├── hie.yaml
│   ├── NamedFieldPuns.hs
│   ├── NeedsPragmas.hs
│   └── TypeApplications.hs
├── badProjects
│   └── cabal
│       ├── bad-cabal.cabal
│       └── Foo.hs
├── cabal-helper
│   ├── implicit-exe
│   │   ├── cabal.project
│   │   ├── implicit-exe.cabal
│   │   ├── Setup.hs
│   │   └── src
│   │       ├── Exe.hs
│   │       └── Lib.hs
│   ├── mono-repo
│   │   ├── A
│   │   │   ├── A.cabal
│   │   │   ├── Main.hs
│   │   │   ├── MyLib.hs
│   │   │   └── Setup.hs
│   │   ├── B
│   │   │   ├── B.cabal
│   │   │   ├── Main.hs
│   │   │   ├── MyLib.hs
│   │   │   └── Setup.hs
│   │   ├── C
│   │   │   ├── C.cabal
│   │   │   ├── MyLib.hs
│   │   │   └── Setup.hs
│   │   └── cabal.project
│   ├── multi-source-dirs
│   │   ├── multi-source-dirs.cabal
│   │   ├── Setup.hs
│   │   └── src
│   │       ├── BetterLib.hs
│   │       └── input
│   │           └── Lib.hs
│   ├── simple-cabal
│   │   ├── MyLib.hs
│   │   ├── Setup.hs
│   │   └── simple-cabal-test.cabal
│   ├── simple-stack
│   │   ├── MyLib.hs
│   │   ├── Setup.hs
│   │   └── simple-stack-test.cabal
│   └── sub-package
│       ├── app
│       │   └── Main.hs
│       ├── plugins-api
│       │   ├── PluginLib.hs
│       │   ├── plugins-api.cabal
│       │   └── Setup.hs
│       ├── Setup.hs
│       ├── src
│       │   └── MyLib.hs
│       └── sub-package.cabal
├── class
│   ├── T1.eq.expected.hs
│   ├── T1.hs
│   ├── T1.ne.expected.hs
│   ├── T2.fmap.expected.hs
│   ├── T2.hs
│   ├── T3.1.expected.hs
│   ├── T3.2.expected.hs
│   ├── T3.hs
│   ├── T4.expected.hs
│   └── T4.hs
├── CodeActionImport.hs
├── CodeActionOnly.hs
├── CodeActionRename.hs
├── completion
│   ├── Completion.hs
│   ├── completions.cabal
│   ├── Context.hs
│   ├── DupRecFields.hs
│   └── hie.yaml
├── context
│   ├── ExampleContext.hs
│   └── Foo
│       └── Bar.hs
├── definition
│   ├── Bar.hs
│   ├── definitions.cabal
│   └── Foo.hs
├── disableWarnings
├── format
│   ├── Format2.fourmolu.formatted.hs
│   ├── Format2.hs
│   ├── Format2.ormolu.formatted.hs
│   ├── Format.floskell.formatted.hs
│   ├── Format.floskell.initial.hs
│   ├── Format.formatted_document.hs
│   ├── Format.formatted_document_with_tabsize.hs
│   ├── Format.formatted_range.hs
│   ├── Format.formatted_range_with_tabsize.hs
│   ├── Format.fourmolu.formatted.hs
│   ├── Format.hs
│   ├── Format.ormolu.formatted.hs
│   ├── Format.ormolu_post_floskell.formatted.hs
│   ├── StylishHaskell.formatted_document.hs
│   ├── StylishHaskell.formatted_range.hs
│   └── StylishHaskell.hs
├── FuncTestError.hs
├── FuncTestFail.hs
├── FuncTest.hs
├── gototest
│   ├── hie.yaml
│   └── src
│       ├── Lib2.hs
│       └── Lib.hs
├── haddockComments
│   ├── ConstFunction.hs
│   ├── HigherRankFunction.expected.hs
│   ├── HigherRankFunction.hs
│   ├── KindSigFunction.expected.hs
│   ├── KindSigFunction.hs
│   ├── MultivariateFunction.expected.hs
│   ├── MultivariateFunction.hs
│   ├── QualFunction.expected.hs
│   ├── QualFunction.hs
│   ├── Record.expected.hs
│   ├── Record.hs
│   ├── StaleFunction.hs
│   └── StaleRecord.hs
├── hieBiosError
│   ├── Foo.hs
│   └── hie.yaml
├── hieBiosMainIs
│   ├── hieBiosMainIs.cabal
│   ├── Main.hs
│   └── Setup.hs
├── hie.yaml
├── Highlight.hs
├── hlint
│   ├── ApplyRefact1.hs
│   ├── ApplyRefact2.hs
│   ├── ApplyRefact3.hs
│   ├── ApplyRefact4.hs
│   ├── ApplyRefact5.hs
│   ├── ApplyRefact6.hs
│   ├── cpp
│   │   ├── ApplyRefact2.hs
│   │   ├── ApplyRefact3.hs
│   │   ├── hie.yaml
│   │   └── test.h
│   ├── hie.yaml
│   ├── ignore
│   │   ├── ApplyRefact.hs
│   │   └── hie.yaml
│   ├── lambdacase
│   │   ├── ApplyRefact1.hs
│   │   └── hie.yaml
│   └── typeapps
│       ├── ApplyRefact1.hs
│       └── hie.yaml
├── Hover.hs
├── liquid
│   └── Evens.hs
├── moduleName
│   ├── hie.yaml
│   ├── mainlike.hs
│   ├── mainlike.hs.expected
│   ├── TEmptyModule.hs
│   ├── TEmptyModule.hs.expected
│   ├── TWrongModuleName.hs
│   └── TWrongModuleName.hs.expected
├── redundantImportTest
│   ├── hie.yaml
│   ├── src
│   │   ├── CodeActionRedundant.hs
│   │   └── MultipleImports.hs
│   └── test.cabal
├── References.hs
├── rename
│   └── Rename.hs
├── splice
│   ├── hie.yaml
│   ├── QQ.hs
│   ├── TDeclKindError.hs
│   ├── TDeclKindError.hs.error
│   ├── TDeclKindError.hs.expected
│   ├── TErrorExp.hs
│   ├── TErrorExp.hs.expected
│   ├── TErrorPat.hs
│   ├── TErrorPat.hs.expected
│   ├── TQQDecl.hs
│   ├── TQQDecl.hs.expected
│   ├── TQQExpError.hs
│   ├── TQQExpError.hs.expected
│   ├── TQQExp.hs
│   ├── TQQExp.hs.expected
│   ├── TQQPatError.hs
│   ├── TQQPatError.hs.expected
│   ├── TQQPat.hs
│   ├── TQQPat.hs.expected
│   ├── TQQType.hs
│   ├── TQQType.hs.expected
│   ├── TQQTypeTypeError.hs
│   ├── TQQTypeTypeError.hs.expected
│   ├── TSimpleDecl.hs
│   ├── TSimpleDecl.hs.expected
│   ├── TSimpleExp.hs
│   ├── TSimpleExp.hs.expected
│   ├── TSimplePat.hs
│   ├── TSimplePat.hs.expected
│   ├── TSimpleType.hs
│   ├── TSimpleType.hs.expected
│   ├── TTypeAppExp.hs
│   ├── TTypeAppExp.hs.expected
│   ├── TTypeKindError.hs
│   ├── TTypeKindError.hs.error
│   ├── TTypeKindError.hs.expected
│   ├── TTypeTypeError.hs
│   └── TTypeTypeError.hs.expected
├── Symbols.hs
├── testdata.cabal
├── TopLevelSignature.hs
├── TypedHoles2.hs
├── TypedHoles.hs
├── UnusedTerm.hs
└── wErrorTest
    ├── cabal.project
    ├── dist-newstyle
    │   ├── build
    │   │   └── x86_64-linux
    │   │       ├── ghc-8.10.2
    │   │       │   └── test-0.1.0.0
    │   │       │       ├── build
    │   │       │       │   └── autogen
    │   │       │       │       ├── cabal_macros.h
    │   │       │       │       └── Paths_test.hs
    │   │       │       ├── cache
    │   │       │       │   └── config
    │   │       │       ├── package.conf.inplace
    │   │       │       │   ├── package.cache
    │   │       │       │   └── package.cache.lock
    │   │       │       └── setup-config
    │   │       └── ghc-8.10.3
    │   │           └── test-0.1.0.0
    │   │               ├── build
    │   │               │   └── autogen
    │   │               │       ├── cabal_macros.h
    │   │               │       └── Paths_test.hs
    │   │               ├── cache
    │   │               │   └── config
    │   │               ├── package.conf.inplace
    │   │               │   ├── package.cache
    │   │               │   └── package.cache.lock
    │   │               └── setup-config
    │   ├── cache
    │   │   ├── compiler
    │   │   ├── config
    │   │   ├── elaborated-plan
    │   │   ├── improved-plan
    │   │   ├── plan.json
    │   │   ├── solver-plan
    │   │   ├── source-hashes
    │   │   └── up-to-date
    │   ├── packagedb
    │   │   ├── ghc-8.10.2
    │   │   │   ├── package.cache
    │   │   │   └── package.cache.lock
    │   │   └── ghc-8.10.3
    │   │       ├── package.cache
    │   │       └── package.cache.lock
    │   └── tmp
    ├── hie.yaml
    ├── src
    │   └── WError.hs
    └── test.cabal

72 directories, 218 files

Actual behaviour

ghcide

$ tree ~/Downloads/ghcide-1.1.0.0/test/data
/home/berberman/Downloads/ghcide-1.1.0.0/test/data
├── hover
│   ├── Bar.hs
│   ├── Foo.hs
│   └── GotoHover.hs
└── multi
    ├── a
    │   ├── a.cabal
    │   └── A.hs
    ├── b
    │   ├── b.cabal
    │   └── B.hs
    ├── cabal.project
    └── hie.yaml

4 directories, 9 files

HLS

$ tree ~/Downloads/haskell-language-server-1.0.0.0/test/testdata
/home/berberman/Downloads/haskell-language-server-1.0.0.0/test/testdata [error opening dir]

0 directories, 0 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous integrationtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions