Skip to content

Commit 1098b0d

Browse files
authored
Merge branch 'master' into jhrcek/refactor-plugin-fix-regex-extracting-import-suggestions
2 parents 546d982 + e93528b commit 1098b0d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

ghcide/ghcide.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ library
8787
, hashable
8888
, hie-bios ==0.13.1
8989
, hie-compat ^>=0.3.0.0
90-
, hiedb ^>= 0.5.0.1
90+
, hiedb ^>= 0.6.0.0
9191
, hls-graph == 2.6.0.0
9292
, hls-plugin-api == 2.6.0.0
9393
, implicit-hie >= 0.1.4.0 && < 0.1.5

ghcide/src/Development/IDE/Core/Rules.hs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1116,16 +1116,16 @@ getLinkableRule recorder =
11161116
HiFileResult{hirModIface, hirModDetails, hirCoreFp} <- use_ GetModIface f
11171117
let obj_file = ml_obj_file (ms_location ms)
11181118
core_file = ml_core_file (ms_location ms)
1119-
-- Can't use `GetModificationTime` rule because the core file was possibly written in this
1120-
-- very session, so the results aren't reliable
1121-
core_t <- liftIO $ getModTime core_file
11221119
case hirCoreFp of
1123-
Nothing -> error "called GetLinkable for a file without a linkable"
1120+
Nothing -> error $ "called GetLinkable for a file without a linkable: " ++ show f
11241121
Just (bin_core, fileHash) -> do
11251122
session <- use_ GhcSessionDeps f
11261123
linkableType <- getLinkableType f >>= \case
1127-
Nothing -> error "called GetLinkable for a file which doesn't need compilation"
1124+
Nothing -> error $ "called GetLinkable for a file which doesn't need compilation: " ++ show f
11281125
Just t -> pure t
1126+
-- Can't use `GetModificationTime` rule because the core file was possibly written in this
1127+
-- very session, so the results aren't reliable
1128+
core_t <- liftIO $ getModTime core_file
11291129
(warns, hmi) <- case linkableType of
11301130
-- Bytecode needs to be regenerated from the core file
11311131
BCOLinkable -> liftIO $ coreFileToLinkable linkableType (hscEnv session) ms hirModIface hirModDetails bin_core (posixSecondsToUTCTime core_t)

haskell-language-server.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ library hls-call-hierarchy-plugin
305305
, containers
306306
, extra
307307
, ghcide == 2.6.0.0
308-
, hiedb
308+
, hiedb ^>= 0.6.0.0
309309
, hls-plugin-api == 2.6.0.0
310310
, lens
311311
, lsp >=2.4
@@ -488,7 +488,7 @@ library hls-rename-plugin
488488
, containers
489489
, ghcide == 2.6.0.0
490490
, hashable
491-
, hiedb
491+
, hiedb ^>= 0.6.0.0
492492
, hie-compat
493493
, hls-plugin-api == 2.6.0.0
494494
, haskell-language-server:hls-refactor-plugin

stack-lts21.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ allow-newer: true
1818

1919
extra-deps:
2020
- floskell-0.11.1
21-
- hiedb-0.5.0.1
21+
- hiedb-0.6.0.0
2222
- hie-bios-0.13.1
2323
- implicit-hie-0.1.4.0
2424
- monad-dijkstra-0.1.1.3

stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ allow-newer: true
1818
extra-deps:
1919
- floskell-0.11.1
2020
- retrie-1.2.2
21-
- hiedb-0.5.0.1
21+
- hiedb-0.6.0.0
2222
- implicit-hie-0.1.4.0
2323
- lsp-2.4.0.0
2424
- lsp-test-0.17.0.0

0 commit comments

Comments
 (0)