dramforever/vscode-ghc-simple

ghci memory usage out of control

miguel-negrao opened this issue · 4 comments

Status

Please see #56.

  • A workaround is available
  • A fix is written
  • A fix is released
  • The fixed verison is on the marketplace.

  • Version of vscode-ghc-simple: 0.1.13
  • Version of VSCode: 1.38.1
  • Version of Haskell-related tools:
    • GHC: 8.0.2
    • Stack: not using
    • Cabal: 1.24.0.2
  • Linux Debian 10
  • nix-env: 1.11.8

Steps to reproduce

Using simple ghc with a simple project ghci will go to 100% CPU usage and memory usage will slowly increase until taking all available RAM. At that point I have to kill ghc. With this issues It becomes impossible to use the plugin.

I would expect ghci memory usage not to continually increase.

My ghc and cabal are provided by nix. I do not use stack.

Very likely a duplicate of #41

Note that in my system the plugin remains always responsive, and the floating windows appearing immediately. The high cpu usage doesn't seem to impact responsiveness.

If you haven't abandoned this extension please try v0.1.16 and see if the problem is gone. Thanks.

Closing in favor of #56, which tracks the problem of GHCi itself leaking memory.

There has been several issue threads with a mixture of problems. I decided that instead of trying to decide which issue corresponds to which problem, I'll just open a new issue for each problem, so I'm closing a few 'discussion threads' and opening a few 'problem threads', which hopefully makes the issue list more focused.