-
Notifications
You must be signed in to change notification settings - Fork 66
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
WMIC has been deprecated in Windows 11 and is now no longer available #442
Comments
👋 Hey, thank you for the issue and the announcement! But also... ooof. I think that was mostly done externally back then as well and I also don't have a Windows 11 device to test this right now (yeah there should still be the VMs around). What's the impact right now? Does benchee crash as a whole or does it just not report the values? I dearly hope the latter otherwise we got some fixing to do 😅 |
@OvermindDL1 you still around? Any ideas? 😁 |
Sorry, he made the issue on my behalf (I brought it up in the Elixir discord but it was 4:30am and I was heading to bed). I'll be happy to run tests/answer any questions about the issue, although given timezones, It'll probably be several hours before I'm awake again. Running the latest up to date Windows 11 (reinstalled from scratch around a week prior to this issue) with Erlang 27 and Elixir 1.17.3 Minimal Reproducible Example
Resulting Output
|
@kshannoninnes got it, thanks! I should be able to at least stop that from failing and leave retrieving the value for later.... maybe I should join the elixir discord to be pingable there. |
Honestly no clue beyond just doing it in powershell, it's not really any slower than wmic too (especially once it's cached). What are you trying to get information of that BEAM doesn't already expose somehow? I guess you could go the sledgehammer method and make a rustler crate to link in rusts's |
@OvermindDL1 hey there, long time no see! Glad to see you and thanks for stopping by! 💚 Benchee's System just wants to get the CPU and RAM as best as possible. I believe/think you helped create it at least with comments and knowledge - 7 years or so back :) Don't wanna go sledgehammer, I'll probably try power shell just not overly familiar with it. After doing this might also be a good point to finally extract |
Well you might see what |
This line here:
benchee/lib/benchee/system.ex
Line 114 in 741db4d
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...
The text was updated successfully, but these errors were encountered: