-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Performance on VERY large script #2780
Comments
There must be something wrong with your environment because when you count all the characters in the script. |
shellcheck needs to know the entire source code for reference etc |
Try running |
If is this just happening in your IDE plugin then I think this is wrong repo to look for answers. |
|
Exited with 1? So you are on Windows os, first of all for developing on that *** disable Windows Defender in Real Time this take so much of your computational power. |
Any chance you have the script available online? I can try running shellcheck on it for comparison |
It's corporate, so can't share the script. |
shellcheck consumes multi GB of memory on https://github.com/ocaml/ocaml/blob/0f22c5aec7c9787e832838bca3439b855ca06306/configure (just under 22k lines, 608KB)
(not round numbers of lines because if there's a parsing error it fails quickly so I have to find the end of the if/loop/subshell/etc) Tested with |
Tested on https://github.com/juewuy/ShellCrash/blob/1.8.0/scripts/clash.sh: Investigation:
|
With d80fdfa you can specify |
For bugs
shellcheck --version
or "online"): 0.9.0Here's a snippet or screenshot that shows the problem:
#!/bin/bash
The problem is that shellcheck is taking ~12GB of RAM and sometimes CPU reaches 100% when I edit the script w/ VSCode.
I really love the onType option, but it kills my laptop.
Can the shellcheck run partially on specific line range instead of all file?
The text was updated successfully, but these errors were encountered: