File tree 3 files changed +10
-4
lines changed
ghcide/src/Development/IDE/Core
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ import Language.LSP.VFS
71
71
import System.FilePath
72
72
import System.IO.Error
73
73
import System.IO.Unsafe
74
-
74
+ import Debug.Trace
75
75
76
76
data Log
77
77
= LogCouldNotIdentifyReverseDeps ! NormalizedFilePath
@@ -250,7 +250,10 @@ setSomethingModified vfs state keys reason = do
250
250
atomically $ do
251
251
writeTQueue (indexQueue $ hiedbWriter $ shakeExtras state) (\ withHieDb -> withHieDb deleteMissingRealFiles)
252
252
modifyTVar' (dirtyKeys $ shakeExtras state) $ \ x ->
253
- foldl' (flip insertKeySet) x keys
253
+ foldl' (\ xs k ->
254
+ -- trace ("TRACE: insertDirkyKey: " <> show k) $
255
+
256
+ insertKeySet k xs) x keys
254
257
void $ restartShakeSession (shakeExtras state) vfs reason []
255
258
256
259
registerFileWatches :: [String ] -> LSP. LspT Config IO Bool
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ import GHC (mgModSummaries)
181
181
import qualified Data.IntMap as IM
182
182
#endif
183
183
184
- import Debug.Trace
184
+ import Debug.Trace
185
185
186
186
data Log
187
187
= LogShake Shake. Log
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ import qualified StmContainers.Map as STM
172
172
import System.FilePath hiding (makeRelative )
173
173
import System.IO.Unsafe (unsafePerformIO )
174
174
import System.Time.Extra
175
+ import Debug.Trace
175
176
-- See Note [Guidelines For Using CPP In GHCIDE Import Statements]
176
177
177
178
#if !MIN_VERSION_ghc(9,3,0)
@@ -1234,7 +1235,9 @@ defineEarlyCutoff' doDiagnostics cmp key file mbOld mode action = do
1234
1235
(if eq then ChangedRecomputeSame else ChangedRecomputeDiff )
1235
1236
(encodeShakeValue bs) $
1236
1237
A res
1237
- liftIO $ atomicallyNamed " define - dirtyKeys" $ modifyTVar' dirtyKeys (deleteKeySet $ toKey key file)
1238
+ liftIO $ atomicallyNamed " define - dirtyKeys" $ modifyTVar' dirtyKeys (
1239
+ trace (" TRACE: delete dirty key " <> show key <> " file " <> show file) $
1240
+ deleteKeySet $ toKey key file)
1238
1241
return res
1239
1242
where
1240
1243
-- Highly unsafe helper to compute the version of a file
You can’t perform that action at this time.
0 commit comments