You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I often use the VScode extension to run queries on databases produced by codeql test run.
If I run a query on a database, then run codeql test run, and then run another queries I get "Severe disk cache trouble (corruption or out of space)" exceptions.
To Reproduce
add database generated by codeql test run to the VScode extension, run a query on it.
Execute codeql test run again.
Execute query again
Expected behavior
Second query should execute on the new database without exception
The text was updated successfully, but these errors were encountered:
Thanks for the report. This is an issue we're aware of. The server that runs the queries keeps some files locked in the current database for performance reasons, but that doesn't work well when the database gets replaced out from under it. We'll look at how to notify the server to release those locks when regenerating the database.
@Cornelius-Riemenschneider Question: Are you running the tests from within the VSCode extension, or the CLI? It's currently broken in both scenarios, but it's easier for us to fix for tests run via the extension, where we already know which database we have locked.
The best workaround we have right now is:
Switch to a different current database
Run a trivial query on that database. The server won't release its lock on the old database until this happens.
Re-run the test to regenerate the database
Switch back to the test database
Obviously, this really slows down your workflow, so we'll try to solve this correctly.
Thanks for the workaround! Right now I've been reloading the window, but that takes about 20sec until everything is back, and it loses the previous results from the query view, so it's also not optimal.
Right now, I'm mainly running the CLI, because using the test runner is (as explained in #334 ) is slowing me down, too.
Describe the bug
I often use the VScode extension to run queries on databases produced by codeql test run.
If I run a query on a database, then run codeql test run, and then run another queries I get "Severe disk cache trouble (corruption or out of space)" exceptions.
To Reproduce
Expected behavior
Second query should execute on the new database without exception
The text was updated successfully, but these errors were encountered: