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

"An error occurred while enumerating through a collection" when running winutil #2263

Closed
jcrmatos opened this issue Jul 4, 2024 · 7 comments
Labels

Comments

@jcrmatos
Copy link

jcrmatos commented Jul 4, 2024

Describe the bug
When running winutil 24.06.28 (before doing anything else) it shows the following error (part of the error message is in Portuguese because I'm running it in a portuguese Win 11 Pro and you have the translation in the below "Additional context" section):

=====Windows Toolbox=====
An error occurred while enumerating through a collection: A colecção foi modificada; a operação de enumeração poderá
não ser executada..
At line:589 char:5
+     $keys = ($sync.keys).where{ $_ -like "WPF*" }
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Collecti...tableEnumerator:HashtableEnumerator) [], RuntimeExc
   eption
    + FullyQualifiedErrorId : BadEnumeration

Additional context
I run it on a portuguese Windows 11 Pro 23H2 (compilation 22631.3737).
The translation of the portuguese part of the error message is
The collection was modified; the enumeration operation may not be executed..

Copy link
Contributor

This issue was marked as stale because it has been inactive for 7 days

@github-actions github-actions bot added the Stale label Jul 12, 2024
@og-mrk
Copy link
Contributor

og-mrk commented Jul 17, 2024

Commenting on this issue to keep it open, please ignore this comment...

@github-actions github-actions bot removed the Stale label Jul 18, 2024
Copy link
Contributor

This issue was marked as stale because it has been inactive for 7 days

@github-actions github-actions bot added the Stale label Jul 25, 2024
Copy link
Contributor

github-actions bot commented Aug 1, 2024

This issue was closed because it has been inactive for 7 days since it was marked as stale

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
@biship
Copy link

biship commented Aug 3, 2024

====Chris Titus Tech=====
=====Windows Toolbox=====
InvalidOperation:
Line |
5401 | $sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| An error occurred while enumerating through a collection: Collection was modified; enumeration operation may not execute..

--- Winget is installed ---

@RustyOfOz
Copy link

An error occurred while enumerating through a collection: Collection was modified; enumeration operation may not
execute..
At line:770 char:5

  • $keys = ($sync.keys).where{ $_ -like "WPF*" }
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Collecti...tableEnumerator:HashtableEnumerator) [], RuntimeExc
      eption
    • FullyQualifiedErrorId : BadEnumeration

@blsz
Copy link

blsz commented Nov 18, 2024

=====Windows Toolbox=====
An error occurred while enumerating through a collection: Collection was modified; enumeration operation may not execute..
At line:399 char:5
+     $keys = ($sync.keys).where{ $_ -like "WPF*" }
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Collecti...tableEnumerator:HashtableEnumerator) [], RuntimeException
    + FullyQualifiedErrorId : BadEnumeration

Key cannot be null.
Parameter name: key
At line:5908 char:13
+             $sync.$tabNav.Items[$tabNumber].IsSelected = $true
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], ArgumentNullException
    + FullyQualifiedErrorId : System.ArgumentNullException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants