-
Notifications
You must be signed in to change notification settings - Fork 52
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
[BUG][code-analyzer] EMFILE: too many open files #1740
Comments
@DougMidgley it looks like this error is coming from the Regex engine specifically. Can you please run the command again with the |
@jfeingold35 -r regex flag returns same result |
Thanks for confirming. Do you have any idea how many files are encompassed by |
Hy @jfeingold35 |
@DougMidgley , yup, that's a lot. |
@DougMidgley , in the meantime, you can work around this bug by just disabling the Regex engine altogether, which you would do by modifying your
Once we have a published, you can revert that change to re-enable the engine. |
Have you tried to resolve this issue yourself first?
Yes
Bug Description
When running code-analyzer,
sf code-analyzer run --severity-threshold 2 --output-file codescan/result-scan.csv -w ./common/**
I receive the following message
Error (1): EMFILE: too many open files, open 'C:\Users\douglas.midgley\AppData\Local\sf\node_modules\@salesforce\plugin-code-analyzer\node_modules\@salesforce\code-analyzer-regex-engine\package.json'
Output / Logs
sfca-1738766366144.log
Steps To Reproduce
sf code-analyzer run --severity-threshold 2 --output-file codescan/result-scan.csv -w ./common/**
Expected Behavior
code-analyzer runs without error
Operating System
Windows 11
Salesforce CLI Version
@salesforce/cli/2.73.9 win32-x64 node-v20.11.0
Code Analyzer Plugin (code-analyzer) Version
@salesforce/sfdx-scanner 4.6.0 (4.6.0) code-analyzer 5.0.0-beta.0 (5.0.0-beta.0) dev 2.4.2 lightning-flow-scanner 2.34.0 (2.34.0)
Node Version
v20.11.0
Java Version
openjdk version "17.0.11" 2024-04-16 LTS OpenJDK Runtime Environment Zulu17.50+19-CA (build 17.0.11+9-LTS) OpenJDK 64-Bit Server VM Zulu17.50+19-CA (build 17.0.11+9-LTS, mixed mode, sharing)
Python Version
No response
Additional Context (Screenshots, Files, etc)
No response
Workaround
No response
Urgency
Low
The text was updated successfully, but these errors were encountered: