Skip to content

Update to new hls #160

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

Merged
merged 9 commits into from
Jun 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
[submodule "ghcide"]
path = ghcide
# url = https://github.com/digital-asset/ghcide.git
url = https://github.com/alanz/ghcide.git
# url = https://github.com/alanz/ghcide.git
url = https://github.com/wz1000/ghcide.git
7 changes: 1 addition & 6 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ packages:
./
ghcide

source-repository-package
type: git
location: https://github.com/wz1000/shake
tag: fb3859dca2e54d1bbb2c873e68ed225fa179fbef

-- See https://github.com/haskell-hvr/cabal-plan/pull/55
source-repository-package
type: git
Expand All @@ -23,4 +18,4 @@ package ghcide

write-ghc-environment-files: never

index-state: 2020-05-24T12:28:23Z
index-state: 2020-06-18T17:03:29Z
690 changes: 419 additions & 271 deletions exe/Main.hs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ghcide
Submodule ghcide updated 79 files
+6 −2 .azure/linux-stack.yml
+1 −0 .azure/windows-stack.yml
+25 −0 .ghci
+0 −53 .github/workflows/build.yaml
+6 −0 .gitignore
+1 −1 .hlint.yaml
+20 −0 CHANGELOG.md
+43 −2 README.md
+472 −0 bench/Hist/Main.hs
+416 −0 bench/Main.hs
+14 −0 bench/README.md
+42 −0 bench/hist.yaml
+0 −5 cabal.project
+431 −311 exe/Main.hs
+1 −1 exe/Utils.hs
+89 −9 ghcide.cabal
+19 −9 hie.yaml
+20 −0 hie.yaml.cbl
+20 −0 hie.yaml.stack
+1 −2 src-ghc810/Development/IDE/GHC/HieAst.hs
+6 −1 src-ghc810/Development/IDE/GHC/HieBin.hs
+6 −1 src-ghc86/Development/IDE/GHC/HieBin.hs
+6 −1 src-ghc88/Development/IDE/GHC/HieBin.hs
+44 −41 src/Development/IDE/Core/Compile.hs
+15 −11 src/Development/IDE/Core/FileExists.hs
+21 −10 src/Development/IDE/Core/FileStore.hs
+12 −4 src/Development/IDE/Core/OfInterest.hs
+2 −2 src/Development/IDE/Core/PositionMapping.hs
+26 −22 src/Development/IDE/Core/RuleTypes.hs
+225 −186 src/Development/IDE/Core/Rules.hs
+16 −23 src/Development/IDE/Core/Service.hs
+393 −373 src/Development/IDE/Core/Shake.hs
+21 −9 src/Development/IDE/GHC/Compat.hs
+2 −22 src/Development/IDE/GHC/Error.hs
+9 −2 src/Development/IDE/GHC/Orphans.hs
+3 −22 src/Development/IDE/GHC/Util.hs
+1 −2 src/Development/IDE/Import/DependencyInformation.hs
+4 −4 src/Development/IDE/Import/FindImports.hs
+5 −6 src/Development/IDE/LSP/HoverDefinition.hs
+4 −1 src/Development/IDE/LSP/LanguageServer.hs
+1 −1 src/Development/IDE/LSP/Notifications.hs
+13 −1 src/Development/IDE/LSP/Outline.hs
+6 −4 src/Development/IDE/Plugin/CodeAction.hs
+23 −31 src/Development/IDE/Plugin/Completions.hs
+2 −2 src/Development/IDE/Plugin/Completions/Logic.hs
+2 −2 src/Development/IDE/Plugin/Completions/Types.hs
+27 −29 src/Development/IDE/Spans/AtPoint.hs
+38 −27 src/Development/IDE/Spans/Common.hs
+59 −6 src/Development/IDE/Spans/Documentation.hs
+9 −0 src/Development/IDE/Types/Diagnostics.hs
+1 −1 src/Development/IDE/Types/Location.hs
+4 −5 src/Development/IDE/Types/Options.hs
+1 −1 stack-ghc-lib.yaml
+17 −2 stack.yaml
+9 −1 stack810.yaml
+39 −0 stack84.yaml
+0 −21 stack86.yaml
+4 −3 stack88.yaml
+0 −39 test-leak
+0 −3 test/data/Bar.hs
+3 −0 test/data/hover/Bar.hs
+0 −0 test/data/hover/Foo.hs
+1 −1 test/data/hover/GotoHover.hs
+1 −0 test/data/hover/hie.yaml
+3 −0 test/data/multi/a/A.hs
+9 −0 test/data/multi/a/a.cabal
+3 −0 test/data/multi/b/B.hs
+9 −0 test/data/multi/b/b.cabal
+1 −0 test/data/multi/cabal.project
+6 −0 test/data/multi/hie.yaml
+2 −0 test/data/recomp/Setup.hs
+1 −0 test/data/recomp/cabal.project
+1 −0 test/data/recomp/hie.yaml
+6 −0 test/data/recomp/lib/A.hs
+4 −0 test/data/recomp/lib/B.hs
+5 −0 test/data/recomp/lib/P.hs
+13 −0 test/data/recomp/recomp.cabal
+462 −187 test/exe/Main.hs
+15 −24 test/src/Development/IDE/Test.hs
3 changes: 2 additions & 1 deletion haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ executable haskell-language-server
-- which works for now.
, ghc
--------------------------------------------------------------
, ghc-check >= 0.3.0.1 && < 0.4
, ghc-check >= 0.5.0.1 && < 0.6
, ghc-paths
, ghcide
, gitrev
Expand All @@ -164,6 +164,7 @@ executable haskell-language-server
, haskell-language-server
, hslogger
, optparse-applicative
, safe-exceptions
, shake >= 0.17.5
, text
, time
Expand Down
2 changes: 1 addition & 1 deletion src/Ide/Plugin/Example.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ codeLens _lf ideState plId CodeLensParams{_textDocument=TextDocumentIdentifier u
logInfo (ideLogger ideState) "Example.codeLens entered (ideLogger)" -- AZ
case uriToFilePath' uri of
Just (toNormalizedFilePath -> filePath) -> do
_ <- runIdeAction "Example.codeLens" ideState $ runMaybeT $ useE TypeCheck filePath
_ <- runIdeAction "Example.codeLens" (shakeExtras ideState) $ runMaybeT $ useE TypeCheck filePath
_diag <- getDiagnostics ideState
_hDiag <- getHiddenDiagnostics ideState
let
Expand Down
2 changes: 1 addition & 1 deletion src/Ide/Plugin/Example2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ codeLens _lf ideState plId CodeLensParams{_textDocument=TextDocumentIdentifier u
logInfo (ideLogger ideState) "Example2.codeLens entered (ideLogger)" -- AZ
case uriToFilePath' uri of
Just (toNormalizedFilePath -> filePath) -> do
_ <- runIdeAction (fromNormalizedFilePath filePath) ideState $ runMaybeT $ useE TypeCheck filePath
_ <- runIdeAction (fromNormalizedFilePath filePath) (shakeExtras ideState) $ runMaybeT $ useE TypeCheck filePath
_diag <- getDiagnostics ideState
_hDiag <- getHiddenDiagnostics ideState
let
Expand Down
19 changes: 9 additions & 10 deletions stack-8.10.1.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: nightly-2020-05-12
resolver: nightly-2020-06-15
compiler: ghc-8.10.1

packages:
Expand All @@ -7,22 +7,21 @@ packages:

extra-deps:
- Cabal-3.2.0.0
- cabal-helper-1.1.0.0
# See https://github.com/haskell-hvr/cabal-plan/pull/55
- github: peti/cabal-plan
commit: 894b76c0b6bf8f7d2f881431df1f13959a8fce87
# - cabal-helper-1.1.0.0
- github: DanielG/cabal-helper
commit: 79a5608778493bf32e74b54bbf1ea2729941e50f
- cabal-plan-0.7.0.0
- clock-0.7.2
- floskell-0.10.3
# - ghcide-0.1.0
- ghc-exactprint-0.6.3
- ghc-lib-parser-8.10.1.20200523
- lens-4.19.1
- lsp-test-0.11.0.2
- monad-dijkstra-0.1.1.2
- optics-core-0.3
- github: wz1000/shake
commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- ormolu-0.0.5.0
- semigroups-0.18.5
- temporary-1.2.1.1
- these-1.1

flags:
haskell-language-server:
Expand All @@ -37,4 +36,4 @@ flags:
nix:
packages: [ icu libcxx zlib ]

concurrent-tests: false
concurrent-tests: false
10 changes: 5 additions & 5 deletions stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extra-deps:
- extra-1.6.21
- floskell-0.10.3
- fuzzy-0.1.0.0
- ghc-check-0.3.0.1
- ghc-check-0.5.0.1
- ghc-exactprint-0.6.2 # for HaRe
- ghc-lib-parser-8.10.1.20200523
- ghc-lib-parser-ex-8.10.0.4
Expand All @@ -36,7 +36,7 @@ extra-deps:
- HsYAML-0.2.1.0@rev:1
- HsYAML-aeson-0.2.0.0@rev:1
- lens-4.18
- lsp-test-0.10.3.0
- lsp-test-0.11.0.2
- microlens-th-0.4.2.3@rev:1
- monad-dijkstra-0.1.1.2
- monad-memo-0.4.1
Expand All @@ -47,9 +47,9 @@ extra-deps:
- regex-base-0.94.0.0
- regex-tdfa-1.3.1.0
- rope-utf16-splay-0.3.1.0
# - shake-0.18.5
- github: wz1000/shake
commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- shake-0.19.1
# - github: wz1000/shake
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.11.0.0
- syz-0.2.0.0
- tasty-rerun-1.1.17
Expand Down
10 changes: 5 additions & 5 deletions stack-8.6.5.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-14.27 # Last 8.6.5
resolver: lts-14.27 # Last 8.6.5

packages:
- .
Expand All @@ -17,7 +17,7 @@ extra-deps:
- floskell-0.10.3
- fuzzy-0.1.0.0
# - ghcide-0.1.0
- ghc-check-0.3.0.1
- ghc-check-0.5.0.1
- ghc-lib-parser-8.10.1.20200523
- ghc-lib-parser-ex-8.10.0.4
- haddock-api-2.22.0@rev:1
Expand All @@ -29,7 +29,7 @@ extra-deps:
- HsYAML-aeson-0.2.0.0@rev:1
- indexed-profunctors-0.1
- lens-4.18
- lsp-test-0.10.3.0
- lsp-test-0.11.0.2
- monad-dijkstra-0.1.1.2
- opentelemetry-0.4.0
- optics-core-0.2
Expand All @@ -40,8 +40,8 @@ extra-deps:
- regex-pcre-builtin-0.95.1.1.8.43
- regex-tdfa-1.3.1.0
- semialign-1.1
- github: wz1000/shake
commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
# - github: wz1000/shake
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.11.0.0
- tasty-rerun-1.1.17
- temporary-1.2.1.1
Expand Down
8 changes: 4 additions & 4 deletions stack-8.8.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extra-deps:
- constrained-dynamic-0.1.0.0
- floskell-0.10.3
# - ghcide-0.1.0
- ghc-check-0.3.0.1
- ghc-check-0.5.0.1
- ghc-lib-parser-8.10.1.20200523
- ghc-lib-parser-ex-8.10.0.4
- haddock-library-1.8.0
Expand All @@ -26,13 +26,13 @@ extra-deps:
- HsYAML-0.2.1.0@rev:1
- HsYAML-aeson-0.2.0.0@rev:1
- ilist-0.3.1.0
- lsp-test-0.10.3.0
- lsp-test-0.11.0.2
- monad-dijkstra-0.1.1.2
- opentelemetry-0.4.0
- ormolu-0.0.5.0
- semigroups-0.18.5
- github: wz1000/shake
commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
# - github: wz1000/shake
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.11.0.0
- temporary-1.2.1.1

Expand Down
8 changes: 4 additions & 4 deletions stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extra-deps:
- constrained-dynamic-0.1.0.0
- floskell-0.10.3
# - ghcide-0.1.0
- ghc-check-0.3.0.1
- ghc-check-0.5.0.1
- ghc-lib-parser-8.10.1.20200523
- ghc-lib-parser-ex-8.10.0.4
- haskell-lsp-0.22.0.0
Expand All @@ -23,13 +23,13 @@ extra-deps:
- hoogle-5.0.17.11
- hsimport-0.11.0
- ilist-0.3.1.0
- lsp-test-0.10.3.0
- lsp-test-0.11.0.2
- monad-dijkstra-0.1.1.2
- opentelemetry-0.4.0
- ormolu-0.0.5.0
- semigroups-0.18.5
- github: wz1000/shake
commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
# - github: wz1000/shake
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.11.0.0
- temporary-1.2.1.1

Expand Down
12 changes: 6 additions & 6 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-14.27 # Last 8.6.5
resolver: lts-14.27 # Last 8.6.5

packages:
- .
Expand All @@ -14,10 +14,10 @@ extra-deps:
- cabal-plan-0.6.2.0
- clock-0.7.2
- extra-1.7.1
- floskell-0.10.2
- floskell-0.10.3
- fuzzy-0.1.0.0
# - ghcide-0.1.0
- ghc-check-0.3.0.1
- ghc-check-0.5.0.1
- ghc-lib-parser-8.10.1.20200523
- ghc-lib-parser-ex-8.10.0.4
- haddock-api-2.22.0@rev:1
Expand All @@ -29,7 +29,7 @@ extra-deps:
- HsYAML-aeson-0.2.0.0@rev:1
- indexed-profunctors-0.1
- lens-4.18
- lsp-test-0.10.3.0
- lsp-test-0.11.0.2
- monad-dijkstra-0.1.1.2
- opentelemetry-0.4.0
- optics-core-0.2
Expand All @@ -40,8 +40,8 @@ extra-deps:
- regex-pcre-builtin-0.95.1.1.8.43
- regex-tdfa-1.3.1.0
- semialign-1.1
- github: wz1000/shake
commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
# - github: wz1000/shake
# commit: fb3859dca2e54d1bbb2c873e68ed225fa179fbef
- stylish-haskell-0.11.0.0
- tasty-rerun-1.1.17
- temporary-1.2.1.1
Expand Down