* Drop macOS benchmarks
* Drop macOS tests
* Really exclude Windows 8.6.4
It occasionally becomes much slower than the others and times out after 6h
https://github.com/haskell/haskell-language-server/runs/1626173853?check_suite_focus=true
* switch to haskell/actions/setup
actions/setup-haskell has been archived, haskell/actions/setup is the replacement
* use coarser cache keys
We are getting very few cache hits because we have too many caches and are
running over the 5GB per repository limit.
Each node in the matrix weighs around 350MB, so we can have up to 15 nodes. The
current matrix (after dropping macOS but before adding 8.10.3) has 12 nodes.
The `**/*.cabal` hash is wrong, since it also captures cabal files in tests
The `**/cabal.project` is wrong for the same reason, but it can be easily
fixed.
* Use more precise .cabal paths in test cache
* Reuse build cache in bench workflows and viceversa
* Reduce Nix builds to the bare minimum
We simply need to check that the Nix derivation works
* remove enable-stack
* Auto cancel redundant workflows
* Enable tests fail-fast
* Remove ghc-lib from matrix
Created #784 to restore it
* Invert the dependency between ghcide and hls-plugin-api
This PR includes changes both to ghcide and HLS to implement the reorg described in https://github.com/haskell/ghcide/issues/936#issuecomment-751437853
To summarise:
- `hls-plugin-api` no longer depends on ghcide.
- `ghcide` now depends on `hls-plugin-api` and exposes:
- The ghcide HLS plugin
- The `asGhcIdePlugin` adaptor
The goals are:
- to be able to break the `ghcide` HLS plugin down
- to rewrite exe:ghcide on top of the HLS plugin model.
The ghcide side is reviewed in https://github.com/haskell/ghcide/pull/963
If this change is accepted there are two further considerations:
- This would be a good moment to merge the 2 repos, so that there is no history loss.
- `hls-plugin-api` will need to be released to Hackage prior to merging https://github.com/haskell/ghcide/pull/963
* clean up
* Fix the ghcide plugin to include the rules
* clean up PartialHandlers definition
The ghcide partial handlers for completions, code actions and hover are not
really being used, since they get overriden by the `<> ps` append. This is due
to the right-biased semantics of `PartialHandlers`
* Move ghcide LspConfig into Ide.Plugin.Config
* Use HLS plugins in ghcide
For now there is only one, the main ghcide plugin. But this will allow us to
break it down in more fine grained plugins with parallel semantics, both for
execution and error handling
* Fix hlints
* Revert "Temporarily disable the upstream branch for benchmarks"
This reverts commit 7bb3c6efae.
* Disable the Windows 8.6.4 test
* Fix unrelated hlints
Not sure why these are triggering now.
Linting should be restricted to the Diff ...
* Add GitHub workflow for testing
* Add HLS_TEST_EXE env var to control which exe to test
* Pass -j1 flag to tasty when running tests on GitHub
* Enable stack in GitHub CI
* Update cabal
* Add HLS_WRAPPER_TEST_EXE
* Fix cache restore keys
* Try force language server to use utf8 locale
* Use patched hie-bios
* Remove debug print
* Lets find out what the windows locale encoding is
* Give up trying to fix the locale
* Add comment for -j1
It's encountered the segfault every single time now. Maybe another
release :(
Also remove the disable-documentation flag since the cabal.project file
has been updated