CommandLineUtils icon indicating copy to clipboard operation
CommandLineUtils copied to clipboard

Fix unknown command throws System.InvalidOperationException: Enumeration already finished

Open sallerga opened this issue 1 year ago • 2 comments

#541

Do not call enumerator.Current if enumerator.MoveNext has not been called or returns false.

sallerga avatar Dec 04 '23 22:12 sallerga

Just to say thanks. Looking forward to this fix.

Gav-Brown avatar Jan 08 '24 09:01 Gav-Brown

Thank you for already fixing this, I'd have submitted a PR now otherwise. 🙏

prodigy avatar Jan 10 '24 09:01 prodigy

FYI: I've got a work-around that's working for my scenario.

https://github.com/natemcmaster/CommandLineUtils/issues/541#issuecomment-1915784431

connorstorer-kbxcom avatar Feb 05 '24 16:02 connorstorer-kbxcom

I really need this fix :( . Can i do something to help?

paul-gauci avatar Feb 06 '24 05:02 paul-gauci

I really need this fix :( . Can i do something to help?

Just fork the repo, fix it there, and include the source in your solution.

And try this workaround: https://github.com/natemcmaster/CommandLineUtils/issues/541#issuecomment-1915784431

prodigy avatar Feb 06 '24 07:02 prodigy