mirror of
https://github.com/haskell/ghcide.git
synced 2024-09-11 05:36:09 +03:00
Log cache dir (#567)
This commit is contained in:
parent
cd6f62bbed
commit
d54fd38b14
@ -38,6 +38,7 @@ import qualified Language.Haskell.LSP.Types as LSP
|
||||
import Data.Aeson (ToJSON(toJSON))
|
||||
import Development.IDE.Types.Logger (logDebug)
|
||||
import Util
|
||||
import System.IO (hPutStrLn, stderr)
|
||||
|
||||
-- Prefix for the cache path
|
||||
cacheDir :: String
|
||||
@ -122,6 +123,8 @@ createSession (ComponentOptions theOpts _) = do
|
||||
|
||||
cacheDir <- getCacheDir theOpts
|
||||
|
||||
hPutStrLn stderr $ "Interface files cache dir: " <> cacheDir
|
||||
|
||||
runGhc (Just libdir) $ do
|
||||
dflags <- getSessionDynFlags
|
||||
(dflags', _targets) <- addCmdOpts theOpts dflags
|
||||
|
Loading…
Reference in New Issue
Block a user