We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a30a51 commit c6adf6aCopy full SHA for c6adf6a
1 file changed
src/StaticLS/IDE/Monad.hs
@@ -23,6 +23,7 @@ import Data.Text (Text)
23
import Data.Text qualified as T
24
import Data.Text.IO qualified as T
25
import Data.Time
26
+import Debug.Trace
27
import StaticLS.FilePath
28
import StaticLS.HIE.File qualified as HIE.File
29
import StaticLS.HieView qualified as HieView
@@ -126,9 +127,9 @@ getFileStateResult path = do
126
127
if doesExist
128
then do
129
contents <-
- liftIO $
130
- Exception.tryAny
131
- (liftIO $ T.readFile $ toFilePath path)
+ trace ("Reading from disk (not in cache): " ++ show path) $
+ liftIO $
132
+ Exception.tryAny (liftIO $ T.readFile $ toFilePath path)
133
case contents of
134
Left e -> do
135
logError $ "Failed to read file: " <> T.pack (show e)
0 commit comments