WildernessLabs / Meadow_Issues

Public repo for bugs and issues with Meadow
15 stars 0 forks source link

Meadow.CLI -- Command to delete all files times out #746

Open jorgedevs opened 2 months ago

jorgedevs commented 2 months ago

I had trouble with a project lab that went through many changes (OS versions and samples running on develop and NuGet), so i was recommended to do a meadow file delete all to have a clean slate to deploy an app.

When running such command, after a while of deleting files (shown in an output), i would eventually get this message:

The operation has timed out.

I had to run the command 3 times to fully delete all the files on my Project Lab.

Example:

C:\Users\ramir>meadow file delete all
Looking for files...
Deleting file '/meadow0/Documents/cloud.log' from device...
Deleting file '/meadow0/Documents/events.log' from device...
Deleting file '/meadow0/App.deps.json' from device...
Deleting file '/meadow0/rollback/App.dll' from device...
Deleting file '/meadow0/rollback/Mcp23xxx.dll' from device...
Deleting file '/meadow0/rollback/Meadow.Contracts.dll' from device...
Deleting file '/meadow0/rollback/Meadow.dll' from device...
Deleting file '/meadow0/rollback/Meadow.F7.dll' from device...
Deleting file '/meadow0/rollback/Meadow.Foundation.dll' from device...
Deleting file '/meadow0/rollback/Meadow.Logging.dll' from device...
Deleting file '/meadow0/rollback/Meadow.Units.dll' from device...
Deleting file '/meadow0/rollback/MicroGraphics.dll' from device...
Deleting file '/meadow0/rollback/MicroLayout.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Bcl.AsyncInterfaces.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.Configuration.Abstractions.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.Configuration.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.Configuration.FileExtensions.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.Configuration.Json.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.FileProviders.Abstractions.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.FileProviders.Physical.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.FileSystemGlobbing.dll' from device...
Deleting file '/meadow0/rollback/Microsoft.Extensions.Primitives.dll' from device...
Deleting file '/meadow0/rollback/Mono.Security.dll' from device...
Deleting file '/meadow0/rollback/MQTTnet.dll' from device...
Deleting file '/meadow0/rollback/mscorlib.dll' from device...
Deleting file '/meadow0/rollback/NetEscapades.Configuration.Yaml.dll' from device...
Deleting file '/meadow0/rollback/netstandard.dll' from device...
Deleting file '/meadow0/rollback/ProjectLab.dll' from device...
The operation has timed out.
adrianstevens commented 2 months ago

So the CLI is running these as individual delete commands. I wonder if we should add a delay between deletes ...

adrianstevens commented 2 months ago

Added a 100ms delay between files in v2.0.54