Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install with stack on Windows 10 #17

Open
aztack opened this issue May 31, 2020 · 1 comment
Open

Failed to install with stack on Windows 10 #17

aztack opened this issue May 31, 2020 · 1 comment

Comments

@aztack
Copy link

aztack commented May 31, 2020

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
Copy link
Owner

Hi.
How about running chcp before stack install ?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants