File tree 1 file changed +5
-5
lines changed
ghcide/src/Development/IDE/Core
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1116,16 +1116,16 @@ getLinkableRule recorder =
1116
1116
HiFileResult {hirModIface, hirModDetails, hirCoreFp} <- use_ GetModIface f
1117
1117
let obj_file = ml_obj_file (ms_location ms)
1118
1118
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
1122
1119
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
1124
1121
Just (bin_core, fileHash) -> do
1125
1122
session <- use_ GhcSessionDeps f
1126
1123
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
1128
1125
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
1129
1129
(warns, hmi) <- case linkableType of
1130
1130
-- Bytecode needs to be regenerated from the core file
1131
1131
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