bencheeorg/benchee

WMIC has been deprecated in Windows 11 and is now no longer available

Geschlossen

#442 geöffnet am 03.12.2024

 (10 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Elixir (69 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (1.509 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 9T 11h) (5 gemergte PRs in 30 T)

Beschreibung

This line here: https://github.com/bencheeorg/benchee/blob/741db4d1c282543bca6857204df9ec59c65100dd/lib/benchee/system.ex#L114

Appears to fail on up-to-date Windows 11 systems due to WMIC having been deprecated.

Here's an article announcing the deprecation: https://techcommunity.microsoft.com/blog/windows-itpro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/4039242

It seems the only alternative is to use powershell, according to that article. I'm pretty unfamiliar with windows development, so I don't really know the best way to fix this...

Contributor Guide