commercialhaskell / commercialhaskell/stack-ide

'<stdin>: hGetBufSome: resource exhausted (Not enough space)' when running on Windows

Open
#93 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
96
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Continuing the discussion from [here](https://github.com/commercialhaskell/stack-ide/issues/92#issuecomment-147560263).

Running on a Windows 7 64bit, I get the following when running `stack ide start` on a project:

```
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = D:\\linear-extra\\session.4796 @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = D:\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = D:\\linear-extra\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: D:\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\Daniel\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\Daniel\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"ResponseFatalError","contents":": hGetBufSome: resource exhausted (Not enough space)"}

Process exited with ExitFailure 1: C:\Users\Daniel\AppData\Roaming\local\bin\stack-ide.exe
--verbose
--include=D:\linear-extra\;D:\linear-extra\src\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\;D:\linear-extra\;D:\linear-extra\test\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\
--local-work-dir=D:\linear-extra\
--ide-backend-tools-path=D:\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\bin\;C:\Users\Daniel\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\bin\;
--dist-dir=D:\linear-extra\.stack-work\dist\d96ab9d9\
--ghc-option=-hide-all-packages
--ghc-option=-iD:\linear-extra\
--ghc-option=-iD:\linear-extra\src\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-stubdir=D:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-package=base
--ghc-option=-package=binary-0.7.5.0
--ghc-option=-package=lens-4.12.3
--ghc-option=-package=linear-1.19.1.3
--ghc-option=-rtsopts
--ghc-option=-with-rtsopts=-N
--ghc-option=-iD:\linear-extra\
--ghc-option=-iD:\linear-extra\test\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-stubdir=D:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-package=base
--package-db=C:\Users\Daniel\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\pkgdb\;D:\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\pkgdb\
```

The source of the exception is [this](https://github.com/commercialhaskell/stack-ide/blob/f78ff35abfbbc52e171ee109682c85baa9deb5f1/stack-ide/src/Stack/Ide/Util/ValueStream.hs#L31) line in `ValueStream.hs`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.