phoityne / haskell-debug-adapter

Debug Adapter for Haskell debugging system.
https://hackage.haskell.org/package/haskell-debug-adapter
BSD 3-Clause "New" or "Revised" License
54 stars 8 forks source link

Failed to install with stack on Windows 10 #17

Open aztack opened 4 years ago

aztack commented 4 years ago

Failed to install haskell-debug-adapter in integrated terminal of vscode:

stack install haskell-dap ghci-dap haskell-debug-adapter
fsnotify             > configure
fsnotify             > Configuring fsnotify-0.3.0.1...
fsnotify             > build
fsnotify             > Preprocessing library for fsnotify-0.3.0.1..
fsnotify             > Building library for fsnotify-0.3.0.1..
fsnotify             > [1 of 9] Compiling System.FSNotify.Path
fsnotify             > [2 of 9] Compiling System.FSNotify.Types
fsnotify             > [3 of 9] Compiling System.FSNotify.Listener
fsnotify             > [4 of 9] Compiling System.FSNotify.Polling
fsnotify             >
fsnotify             > src\System\FSNotify\Polling.hs:19:1: warning: [-Wunused-imports]
fsnotify             >     The import of ‘getCurrentTime’
fsnotify             >     from module ‘Data.Time.Clock’ is redundant
fsnotify             >    |
fsnotify             > 19 | import Data.Time.Clock (UTCTime, getCurrentTime)
fsnotify             >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > src\System\FSNotify\Polling.hs:64:17: warning: [-Wname-shadowing]
fsnotify             >     This binding for ‘path’ shadows the existing binding
fsnotify             >       bound at src\System\FSNotify\Polling.hs:58:22
fsnotify             >    |
fsnotify             > 64 |     pathAndInfo path = handle (\(_ :: IOException) -> return Nothing) $ do
fsnotify             >    |                 ^^^^
fsnotify             > [5 of 9] Compiling System.Win32.FileNotify
fsnotify             > 
fsnotify             > win-src\System\Win32\FileNotify.hsc:19:1: warning: [-Wunused-imports]
fsnotify             >     The import of ‘Data.Bits’ is redundant
fsnotify             >       except perhaps to import instances from ‘Data.Bits’
fsnotify             >     To import instances alone, use: import Data.Bits()
fsnotify             >    |
fsnotify             > 19 | import Data.Bits
fsnotify             >    | ^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > win-src\System\Win32\FileNotify.hsc:75:1: warning: [-Wunused-top-binds]
fsnotify             >     Defined but not used: ‘fILE_ACTION_ADDED’
fsnotify             >    |
fsnotify             > 75 |  , fILE_ACTION_ADDED            = FILE_ACTION_ADDED
fsnotify             >    | ^^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > win-src\System\Win32\FileNotify.hsc:77:1: warning: [-Wunused-top-binds]
fsnotify             >     Defined but not used: ‘fILE_ACTION_REMOVED’
fsnotify             >    |
fsnotify             > 77 |  , fILE_ACTION_MODIFIED         = FILE_ACTION_MODIFIED
fsnotify             >    | ^^^^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > win-src\System\Win32\FileNotify.hsc:79:1: warning: [-Wunused-top-binds]
fsnotify             >     Defined but not used: ‘fILE_ACTION_MODIFIED’
fsnotify             >    |
fsnotify             > 79 |  , fILE_ACTION_RENAMED_NEW_NAME = FILE_ACTION_RENAMED_NEW_NAME
fsnotify             >    | ^^^^^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > win-src\System\Win32\FileNotify.hsc:81:1: warning: [-Wunused-top-binds]
fsnotify             >     Defined but not used: ‘fILE_ACTION_RENAMED_OLD_NAME’
fsnotify             >    |
fsnotify             > 81 |
fsnotify             >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > win-src\System\Win32\FileNotify.hsc:82:1: warning: [-Wunused-top-binds]
fsnotify             >     Defined but not used: type constructor or class ‘WCHAR’
fsnotify             >    |
fsnotify             > 82 | type WCHAR = Word16
fsnotify             >    | ^^^^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > win-src\System\Win32\FileNotify.hsc:83:1: warning: [-Wunused-top-binds]
fsnotify             >     Defined but not used: ‘fILE_ACTION_RENAMED_NEW_NAME’
fsnotify             >    |
fsnotify             > 83 | -- This is a bit overkill for now, I'll only use nullFunPtr anyway,
fsnotify             >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fsnotify             >
fsnotify             > win-src\System\Win32\FileNotify.hsc:127:1: warning: [-Wunsupported-calling-conventions]
fsnotify       <stderr>: commitAndReleaseBuffer: invalid argument (invalid character)
Progress 1/2

Hung forever in cmd.exe: image

phoityne commented 4 years ago

Hi. How about running chcp before stack install ?

cmd chcp 65001 stack install --verbose haskell-dap ghci-dap haskell-debug-adapter