Skip to content

Command to restart hie #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LukaHorvat opened this issue Feb 12, 2018 · 7 comments · Fixed by #191
Closed

Command to restart hie #46

LukaHorvat opened this issue Feb 12, 2018 · 7 comments · Fixed by #191
Labels
type: enhancement An enhancement to an already existing feature

Comments

@LukaHorvat
Copy link

Due to some reason (probably all the way down in the GHC API) pretty much every Haskell IDE tool consumes a ton of memory and the amount usually increases with use. I currently solve this by monitoring memory usage and restarting VS Code when I see it's taking up too much. The problem is that this kills terminal sessions in the editor.

I'd like to be able to restart just the hie backend.

@Tehnix
Copy link
Contributor

Tehnix commented Feb 21, 2018

I'd very much like this too, but haven't been able to find anything in the VSCode LSP that would allow that. If anyone can point me to somewhere in the documentation where it says something about stopping and starting the server again, I'd be fine with giving it a stab :)

@alanz
Copy link
Collaborator

alanz commented Feb 28, 2018

Simplest is just to kill the server, vscode is quite good at restarting if it disappears.

And we do get the process id back. Because having recently got this in emacs (emacs-lsp/lsp-mode#290, for me anyway), I can testify to its usefulness.

@Tehnix
Copy link
Contributor

Tehnix commented Feb 28, 2018

If it restarts on it's own, I guess we could add a command to send a kill signal to hie via VSCode? I can look into a PR if it's worth investigating further :)

@Tehnix Tehnix added the type: enhancement An enhancement to an already existing feature label Apr 8, 2018
@andrewufrank
Copy link

the ability to restart the HIE would help when the diagnostics are not updated automatically. perhaps simpler but still very helpful would be a way to see which pid the HIE thread has (the one for this vs code terminal -- there are typically several ones)

@Swoorup
Copy link

Swoorup commented Jan 13, 2020

👍 for this. I would like restart feature especially in cases when I add new stack packages and HIE isn't able to update its internal definition. A restart would solve this for now.

@jneira
Copy link
Member

jneira commented Jan 13, 2020

@Swoorup Could you use the general command "Reload Window" (by default bint to ctrl + R) as workaround?

@Swoorup
Copy link

Swoorup commented Jan 14, 2020

@jneira Can confirm that works as a workaround.

Will use that for now. Just an FYI, there are other LanguageServer that has this feature as well.

image

@alanz alanz closed this as completed in #191 Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement An enhancement to an already existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants