Closed shingtaklam1324 closed 6 years ago
This is not (as far as I can tell) not a ghci
bug as this does not occur when running the exact same commands with the system built in Terminal and VSCode open on the side, but does seem to be a Haskell specific bug on VSCode as irb
(Ruby), python3
(Python) and iex
(Elixir) all behave properly.
What is stack/ghci and how do you set them up?
@tyriar Stack
is the tool for managing Haskell projects and tooling, and is downloaded here. It is roughly like Cargo
for Rust.
I can't reproduce:
Open code and a terminal
❯ code --status
...
CPU % Mem MB Process
1 67 code main
0 8 zygote
2 166 window (Release Notes: 1.19.1 - vscode-snap - Visual Studio Code)
0 16 terminal
0 4 /bin/bash
10 304 watcherService
0 47 extensionHost
0 39 shared-process
0 55 window (undefined)
Open ghci
❯ code --status
...
CPU % Mem MB Process
1 75 code main
0 8 zygote
2 178 window (Release Notes: 1.19.1 - vscode-snap - Visual Studio Code)
0 20 terminal
0 4 /bin/bash
5 63 stack ghci
3 111 /home/parallels/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/bin/ghc -B/home/parallels/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2 --interactive -odir=/home/parallels/.stack/global-project/.stack-work/odir -hidir=/home/parallels/.stack/global-project/.stack-work/odir -ghci-script=/tmp/ghci9055/ghci-script
9 304 watcherService
0 47 extensionHost
0 39 shared-process
0 55 window (undefined)
Suspend and wake up
❯ code --status
...
CPU % Mem MB Process
1 75 code main
0 8 zygote
2 178 window (Release Notes: 1.19.1 - vscode-snap - Visual Studio Code)
0 20 terminal
0 4 /bin/bash
1 63 stack ghci
1 118 /home/parallels/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2/bin/ghc -B/home/parallels/.stack/programs/x86_64-linux/ghc-8.2.2/lib/ghc-8.2.2 --interactive -odir=/home/parallels/.stack/global-project/.stack-work/odir -hidir=/home/parallels/.stack/global-project/.stack-work/odir -ghci-script=/tmp/ghci9055/ghci-script
8 304 watcherService
0 47 extensionHost
0 39 shared-process
0 55 window (undefined)
Also we can only really do something about it if the process causing the memory usage is at the level of "terminal" or above. If you could try repro using these steps code --status
that would be good.
I've done some more bug testing and seems like a combination of software running on my computer. It doesn't seem to be a bug with VS Code now that I have tested it on other Linux distros, but rather the way Elementary OS handles sleeping compared to the other distros. Thanks a lot anyways.
Weird, let me know if you find out more
(10 theme extensions excluded)
Steps to Reproduce:
stack ghci
Reproduces without extensions: Yes