-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Processing Vue w/TS files, CodeQL hits maximum call stack size exceeded #18778
Comments
Hi @creativetim, I've asked the CodeQL Javascript team to take a look. |
It's hard to debug and fix the issue without having a file to test. Can you try to create an example file that experiences the same issue? |
There seems to be an issue with TypeScript type extraction. We are looking towards disabling this feature by default in the future, but for now you can disable it manually as follows:
env:
CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES: true |
@asgerf, as stated, I'm running this locally for testing purposes, so presuming this is the correct way to reference the flag via CLI, it did not work: The I can work on providing a sample of the "problematic" component. I suspect in the process of stripping away proprietary things to avoid violating the agreement with my employer about sharing their code, I may find exactly what's causing an issue with this file in particular. Either way, I'll share what I find or provide a stripped down version for your perusal. |
Any thoughts on next steps here, @asgerf? |
I'm running CodeQL CLI (
2.20.4
) locally to diagnose an issue we're experiencing in our CICD pipeline where a random Vue+TS file seems to crash the process while creating a database.The command
codeql database create ./cqldb --language=javascript-typescript --codescanning-config=./codeql-config.yml --overwrite --build-mode=none --no-run-unnecessary-builds
Note that
--build-mode=none
and--no-run-unnecessary-builds
seems to make no difference either wayThe config
The problematic file
I can't share the contents of the file, but it's a pretty standard Vue SFC file a la
The error
Interesting bits
JobDetails.vue.ts
, butJobDetails.vue.ts
does not exist, onlyJobDetails.vue
tsconfig.json
and/or the fact that it's sitting in a CodeQL "working" dir?paths
to be hyper specific, ie.packages/patterns/src/core/components/JobsPanel
the command finalizes and sees the file asJobDetails.vue
.Happy to provide any more details I can reasonably share in public.
Any ideas?
The text was updated successfully, but these errors were encountered: