Skip to content
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] running dfa command #1249

Closed
paavilio opened this issue Nov 23, 2023 · 2 comments
Closed

[BUG] running dfa command #1249

paavilio opened this issue Nov 23, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@paavilio
Copy link

paavilio commented Nov 23, 2023

Hi team,
When running the command sfdx scanner:run:dfa --target "./force-app/main/default/classes/bvi_CalloutCSQ.cls" --projectdir "./force-app/" I met the following error:

"ERROR running scanner:run:dfa: nov 23, 2023 3:35:11 PM apex.jorje.parser.impl.BaseApexLexer dedupe"

Steps to reproduce the behavior:
Open VS Code
login to the SF org with sfdx
Execute the command "sfdx scanner:run:dfa --target "./force-app/main/default/classes/bvi_CalloutCSQ.cls" --projectdir "./force-app/"

Expected behavior
No errors since the apex class compiles and is deployed without error.

Desktop

OS:Windows 11
Scanner Version 3.17.0

sfdx scanner:run:dfa --target "./force-app/main/default/classes/bvi_CalloutCSQ.cls" --projectdir "./force-app/" » Warning: @salesforce/cli update available from 2.15.9 to 2.17.14. WARNING: We're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at https://research.net/r/SalesforceCA (node:11452) Warning: Deprecated config name: apiVersion. Please use org-api-version instead. (Use node --trace-warnings ... to show where the warning was created) Analyzing with Salesforce Graph Engine. See C:\Users\paolo\.sfdx-scanner\sfge.log for details.... Error ERROR running scanner:run:dfa: nov 23, 2023 3:35:11 PM apex.jorje.parser.impl.BaseApexLexer dedupe INFORMAZIONI: Deduped array ApexLexer.DFA22_transition. Found 7075528 shorts which is 13MB not including array overhead. Removed 6418975 shorts which is 12MB not counting array overhead. Took 6 ms. Unexpected exception while loading graph. See logs for more information.

@jfeingold35
Copy link
Collaborator

@paavilio , our latest version is 3.18. What happens when you try this against 3.18 instead of 3.17?

@jfeingold35
Copy link
Collaborator

This appears to be a duplicate of #1234

@jfeingold35 jfeingold35 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
@jfeingold35 jfeingold35 added the duplicate This issue or pull request already exists label Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants