vitest-dev / vscode

VS Code extension for Vitest
https://vitest.dev/vscode
MIT License
726 stars 77 forks source link

Can´t modify directory tree #420

Open dvegap opened 2 weeks ago

dvegap commented 2 weeks ago

Type: Bug

When running the extension, trying to modify the directory tree wherever but it´s leaves result on a permission error. I guess it must be running a watcher or something, which is unexpected, since tests only run on demand and there seems to be no configuration in the docs to modify this behavior

Extension version: 0.12.3 VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:01:24.262Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i7-13700HX (24 x 2304)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.65GB (6.11GB free)| |Process Argv|--crash-reporter-id 74541171-8bcc-4e8b-979e-b03ef26e213e| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 showvideot:31016892 chatpanelc:31048052 dsvsc021:30996838 da93g388:31013173 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 pythonprt:31056678 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 legacy_priority:31077528 ```
tkfmed commented 2 weeks ago

I have similar problem. On addition, I can't reinstall node packages (npm ci) when the extension is turned on. When I stop the vitest extension process, things work fine.

npm ERR! code EPERM npm ERR! syscall unlink npm ERR! path C:\Users...\ClientApp\node_modules\esbuild\node_modules\@esbuild\win32-x64\esbuild.exe npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users...\ClientApp\node_modules\esbuild\node_modules\@esbuild\win32-x64\esbuild.exe' npm ERR! [Error: EPERM: operation not permitted, unlink 'C:\Users...\ClientApp\node_modules\esbuild\node_modules\@esbuild\win32-x64\esbuild.exe'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', npm ERR! path: 'C:\...\ClientApp\node_modules\esbuild\node_modules\@esbuild\win32-x64\esbuild.exe' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: C:\Users...\AppData\Local\npm-cache_logs\2024-06-21T05_19_41_343Z-debug-0.log