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
When there are many large JavaScript files present in a dist/ directory the debugger will attach, sit there for a long time and terminate unexpectedly.
I am using vitest as a test runner for a web application. I am not using vite. However, dist/ is indeed where all build artifacts are moved to.
Of course, most of the files in that directory were stale and should have been removed (automatically). But, the presence of a dist/ directory in my situation is pure chance. Why is vitest monitoring this directory as "outFiles"?
In any case, it took many hours for me to spot this error.
Maybe we could have a more helpful error message?
Maybe outFiles should be configurable?
Reproduction
Create a project with vitest installed and a single test module
Create a dist directory and create many large JavaScript files in them
Try to debug the test using the Visual Studio Code extension
Output
[INFO 12:28:14 PM] [DEBUG] Debugging started
Version
0.12.4
Validations
Check that you are using the latest version of the extension
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
hahanein
changed the title
Debugger grinds to a halt with large files presents
Debugger grinds to a halt with large unrelated files present
Jul 9, 2024
Does it work if you add them to config.debugExclude? (This will also override the default value) I can also expose outFiles - or maybe we should override?
Describe the bug
When there are many large JavaScript files present in a
dist/
directory the debugger will attach, sit there for a long time and terminate unexpectedly.I am using
vitest
as a test runner for a web application. I am not usingvite
. However,dist/
is indeed where all build artifacts are moved to.Of course, most of the files in that directory were stale and should have been removed (automatically). But, the presence of a
dist/
directory in my situation is pure chance. Why isvitest
monitoring this directory as"outFiles"
?In any case, it took many hours for me to spot this error.
outFiles
should be configurable?Reproduction
vitest
installed and a single test moduledist
directory and create many large JavaScript files in themOutput
Version
0.12.4
Validations
The text was updated successfully, but these errors were encountered: