File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments