Skip to content

Commit 77f0d08

Browse files
committed
release 0.0.42.0.
1 parent 5488fe1 commit 77f0d08

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
20250309 haskell-debug-adapter-0.0.42.0
1+
20250316 haskell-debug-adapter-0.0.42.0
22
* [PR] Use hie-bios to generalize build command #37
33

44

src/Haskell/Debug/Adapter/State/Init/Launch.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ startGHCi req = do
154154

155155
-- Use hie-bios when Cmd is exactly "ghci-dap"
156156
flags <- if cmdStr /= "ghci-dap" then addWithGHC cmdOpts else do
157+
isExist <- U.liftIOE $ D.doesFileExist startup_file
158+
when (False == isExist) $ do
159+
U.sendErrorEventLF $ "file not found. [" ++ startup_file ++ "]"
160+
-- throwError $ "file not found. [" ++ startup_file ++ "]"
161+
157162
explicitCradle <- U.liftIOE $ HIE.findCradle startup_file
158163
cradle <- U.liftIOE $ maybe (HIE.loadImplicitCradle mempty startup_file)
159164
(HIE.loadCradle mempty) explicitCradle

0 commit comments

Comments
 (0)