Skip to content

Commit 6fb0dc0

Browse files
committed
Fix Eval plugin
1 parent 7d9b482 commit 6fb0dc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: plugins/hls-eval-plugin/src/Ide/Plugin/Eval/CodeLens.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import Development.IDE (GetModSummary (..),
5050
ModSummaryResult (..),
5151
NeedsCompilation (NeedsCompilation),
5252
evalGhcEnv, hscEnv,
53+
hscEnvWithImportPaths,
5354
prettyPrint, runAction,
5455
textToStringBuffer,
5556
toNormalizedFilePath',
@@ -539,7 +540,7 @@ runGetSession st nfp = liftIO $ runAction "eval" st $ do
539540
((_, res),_) <- liftIO $ loadSessionFun fp
540541
let env = fromMaybe (error $ "Unknown file: " <> fp) res
541542
ghcSessionDepsConfig = def{forceLinkables = True, checkForImportCycles = False}
542-
res <- fmap hscEnv <$> ghcSessionDepsDefinition ghcSessionDepsConfig env nfp
543+
res <- fmap hscEnvWithImportPaths <$> ghcSessionDepsDefinition ghcSessionDepsConfig env nfp
543544
return $ fromMaybe (error $ "Unable to load file: " <> fp) res
544545

545546
needsQuickCheck :: [(Section, Test)] -> Bool

0 commit comments

Comments
 (0)