bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

ShellCheck maxing out CPU/Memory when editing a bash script

Open chrisfederico1 opened this issue 2 years ago • 1 comments

Code editor

NVIM v0.8.3

Platform

arch

Version

I don't have an output I use Mason to download bashls

What steps will reproduce the bug?

I'm sorry if this has been asked and I'm new to this stuff so I apologize upfront . My setup is that I have neovim v0.8.3 in a lua configuration and I'm installing bash language server thru Mason . I have shellcheck-0.9.0-22 from arch repository locally . What happens recently is that I'm editing a bash shell script in neovim and CPU/Memory max out and I can't use my machine after that . Looking at HTOP shellcheck is the offending app that is doing this . I thought that shellcheck wasn't supposed to run unless I call it but after looking around bash language server is automatically launching it ? Right now I uninstalled shellcheck but do I lose anything while doing so ? I understand if this not a bug and its my misunderstanding so I apologize . I don't have a output for bash-language-server -v. Is there anything I can do ?

How often does it reproduce? Is there a required condition?

All I need to do is install shellcheck and edit a bash file . My CPU/Memory max out .

What is the expected behavior?

It shouldn't max out my resources.

What do you see instead?

system lockup . Can't do anything besides reboot .

Additional information

Anything you need I can give you to help :)

chrisfederico1 avatar Feb 21 '23 15:02 chrisfederico1

Related issue: https://github.com/koalaman/shellcheck/issues/2721

JPenuchot avatar May 26 '23 12:05 JPenuchot