haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

No space left on device #1751

Closed pmiddend closed 4 years ago

pmiddend commented 4 years ago

After using hie for some time, my operating system tells me:

/run/user/1000/ghc1095_0/ghc_17.s: hClose: resource exhausted (No space left on device)

/run/user/1000/ contains gazillions of bios-wrapper* files, as well as cabal-repl.* files , as well as ghc* files and haskell-lsp* files. Are those files simply not garbage collected?

fendor commented 4 years ago

Apparently not :/ This is an issue for hie-bios, probably. EDIT: and haskell-lsp. Artefacts from the virtual file system, I assume.

fendor commented 4 years ago

According to Stack Overflow https://unix.stackexchange.com/questions/162900/what-is-this-folder-run-user-1000, this folder is cleaned on logging out of the session.

pmiddend commented 4 years ago

Yes, I'm able to fix this situation by removing the files. That isn't really satisfying though :D

fendor commented 4 years ago

Now there should be fewer temporary files, with hie-bios 0.5.0.

fendor commented 4 years ago

by the way, cabal-repl. files are from cabal, not our fault :)

jneira commented 4 years ago

Definitely hie itself is not generating temp files, and it is difficult to make cabal and ghc genertaing less of them so i would close this one @pmiddend feel free to reopen if you think hie could do something to alliviate it