two HLS processes with same name

I'm running the HLS plugin in VS Code on MacOS, on an M2 Apple Silicon MacBook Pro. My computer is running low on RAM and the HLS process seems to be fairly large for me (over 1 GB). When I first run VS Code on a Haskell workspace, there is one process called "haskell-language-server-9.2.8". Eventually another process, taking an additional 1 GB, joins it. The two processes have the same name. Is it supposed to work like this? Note about Apple Silicon FYI: I bought this computer in June with 16 GB Integrated RAM. RAM is very expensive in a SoC. I'm discovering that a lot of programs are memory hogs, not sure if it's the latest MacOS or M2, but between running software development stuff and music-related apps, I'm running out of RAM. I just bought a similar MacBook but with 32 GB RAM, and will sell the current one. So eventually I won't worry about an extra GB process or two. Dennis

On Sat, Sep 30, 2023 at 01:51:01AM -0700, Dennis Raddle wrote:
When I first run VS Code on a Haskell workspace, there is one process called "haskell-language-server-9.2.8". Eventually another process, taking an additional 1 GB, joins it. The two processes have the same name.
Is it supposed to work like this?
I use Emacs, not VS Code, but when I have two "haskell-language-server" processes it's because I have opened a second project. Is it possible that's happened for you? For a hacky way to explore what's going on you could kill one of the processes and see what complains. Tom

Thanks, Tom. I only have one stack project open, but I do have a single hs file open from outside that project, usually. That single hs file does not reside in a stack project tree. I'll try running VS Code with and without that single hs file. D On Sat, Sep 30, 2023 at 1:56 AM Tom Ellis < tom-lists-haskell-cafe-2023@jaguarpaw.co.uk> wrote:
On Sat, Sep 30, 2023 at 01:51:01AM -0700, Dennis Raddle wrote:
When I first run VS Code on a Haskell workspace, there is one process called "haskell-language-server-9.2.8". Eventually another process, taking an additional 1 GB, joins it. The two processes have the same name.
Is it supposed to work like this?
I use Emacs, not VS Code, but when I have two "haskell-language-server" processes it's because I have opened a second project. Is it possible that's happened for you?
For a hacky way to explore what's going on you could kill one of the processes and see what complains.
Tom _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

When I don't open that extra file, the one time I tested it, there was now
only one hls process, so I guess that was it! Easy to fix then.
D
On Sat, Sep 30, 2023 at 3:09 PM Jeff Clites
Stack treats files outside a project as being in a default project (or at least, `stack ghci` sessions outside a project are treated that way), so that might be it.
Jeff
On Sep 30, 2023, at 6:01 PM, Dennis Raddle
wrote: Thanks, Tom. I only have one stack project open, but I do have a single hs file open from outside that project, usually. That single hs file does not reside in a stack project tree. I'll try running VS Code with and without that single hs file.
D
On Sat, Sep 30, 2023 at 1:56 AM Tom Ellis < tom-lists-haskell-cafe-2023@jaguarpaw.co.uk> wrote:
On Sat, Sep 30, 2023 at 01:51:01AM -0700, Dennis Raddle wrote:
When I first run VS Code on a Haskell workspace, there is one process called "haskell-language-server-9.2.8". Eventually another process, taking an additional 1 GB, joins it. The two processes have the same name.
Is it supposed to work like this?
I use Emacs, not VS Code, but when I have two "haskell-language-server" processes it's because I have opened a second project. Is it possible that's happened for you?
For a hacky way to explore what's going on you could kill one of the processes and see what complains.
Tom _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

macOS needs just 1-2GiB of wired RAM, don’t worry…
On 30. 9. 2023., at 10:51, Dennis Raddle
wrote: I'm running the HLS plugin in VS Code on MacOS, on an M2 Apple Silicon MacBook Pro. My computer is running low on RAM and the HLS process seems to be fairly large for me (over 1 GB). When I first run VS Code on a Haskell workspace, there is one process called "haskell-language-server-9.2.8". Eventually another process, taking an additional 1 GB, joins it. The two processes have the same name.
Is it supposed to work like this?
Note about Apple Silicon FYI: I bought this computer in June with 16 GB Integrated RAM. RAM is very expensive in a SoC. I'm discovering that a lot of programs are memory hogs, not sure if it's the latest MacOS or M2, but between running software development stuff and music-related apps, I'm running out of RAM. I just bought a similar MacBook but with 32 GB RAM, and will sell the current one. So eventually I won't worry about an extra GB process or two. Dennis
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (4)
-
Branimir Maksimovic
-
Dennis Raddle
-
Jeff Clites
-
Tom Ellis