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

C#DevKit runs dotnet restore continuously #1609

Open
scottbeech opened this issue Nov 13, 2024 · 2 comments
Open

C#DevKit runs dotnet restore continuously #1609

scottbeech opened this issue Nov 13, 2024 · 2 comments
Labels
area-nuget NuGet Package Manager bug Something isn't working

Comments

@scottbeech
Copy link

Type: Bug

Open any solution in VSCode with C#DevKit. It repeatedly/continuously runs dotnet restore. As soon as it finishes running, it runs it again immediately: It takes about 2 seconds to run, and then it immediately runs again, even though no code changes have been made.

Extension version: 1.13.9
VS Code version: Code 1.95.2 (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z)
OS version: Darwin x64 24.1.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 8, 8, 8
Memory (System) 64.00GB (10.23GB free)
Process Argv --crash-reporter-id 96445813-7d03-4baa-a200-86e55f86b512
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl2:31139839
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
h409b430:31179529

@AbhitejJohn AbhitejJohn added bug Something isn't working area-nuget NuGet Package Manager labels Nov 14, 2024
@scottbeech
Copy link
Author

After updating a few packages that were issuing warnings/errors, it was still re-running the restore over and over.

After a few restarts of VSCode, it seems to have settled down. I'm thinking that there is some state getting set when a restore error occurs, that isn't getting reset.

At a minimum, it would be nice to have a way to turn off this auto-running of restore. it doesn't add any value for me — I'd prefer the restore only happen when I explicitly ask for it. A bulky IDE/OS that is running processes in the background and taxing my CPU is the reason I use avoid VS/Windows, and use VSCode/Mac. I'm worries that C#DevKit is recreating that bulk within VSCode.

Please turn down the frequency of the restore auto- execution, or let us adjust the frequency (including turning it off entirely). And this would go for any background processing. Please keep the C#DevKit as minimally invasive as possible.

@scottbeech
Copy link
Author

This is happening again. No errors on the NuGet restore. If I open the solution, then choose Build from the solution explorer, C#DevKit starts running restore repeatedly.

How do I make it stop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-nuget NuGet Package Manager bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants