bencheeorg/benchee

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

已关闭

#442 创建于 2024年12月3日

 (10 条评论) (0 个反应) (0 位负责人)Elixir (69 个派生)batch import
bughelp wanted

仓库指标

星标
 (1,509 个星标)
PR 合并指标
 (平均合并 9天 11小时) (30 天内合并 5 个 PR)

描述

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...

贡献者指南