-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support for M1 ARM #131
Comments
If you're running VS on Windows inside a virtual machine, it shouldn't matter if the host is using M1 or Intel processor right? |
That message means Visual Studio is trying to install the 32-bit version of the WakaTime extension when your OS is 64-bit. Are you able to install other extensions in your Visual Studio? |
Other extensions works normally. How can I force WakaTime to install 64-bit version? |
@alanhamlett @tpesl I'm getting the same issue. Wondered if there's a workaround yet? 🤞 Let me know if I can help to troubleshoot further or I can provide any info to help 👍 |
@alanhamlett Any thoughts on this issue mate? Let me know if there’s anything I can do to help troubleshoot? |
Currently visual studio is built either in x86 and x64 for amd architecture. Few months ago Microsoft announced that https://visualstudiomagazine.com/articles/2022/08/12/net-framework-4-8-1.aspx?m=1 I can take a look and figure out how to build for arm. |
@alanhamlett @gandarez @tpesl Ok, good news, I've got it working in VS Community 2022 (ARM 64-bit) version 17.4.2 running on Windows 11 within Parallels on a MBP M1 🎉🎉 I did the following steps in this order. Caveat: I've never done any extension dev and was just feeling my way around in the dark really! So some of this might not have been/probably wasn't required/necessary 😂:
No idea how this should be worked into the actual repo etc but hopefully it's useful information and might help some others get unstuck. |
Hi @leemcmullen I really appreciate the walkthrough you created, it helped a lot! Because I'm not in an ARM machine I can't build it. Would you mind checking out the branch https://github.com/wakatime/visualstudio-wakatime/tree/feature/arm64 |
Hi @gandarez, Sure, leave with me and I'll take a look. I'll remove the version I have installed from my initial messing around, then I'll checkout your branch, build and attempt to install the resulting extension file manually. Aside from that, is there anything else you specifically want me to test? Cheers, |
Lee just make sure your dashboard gets updated from this one. |
Hi @gandarez, Checked out the branch, I changed nothing and it built first time. However it defaulted to x64 (i.e. output directory for VSIX file was So I changed current Active Solution Platform to ARM64, ran clean and then build. This time output was HTH Cheers, |
We can automate this with GitHub Actions, since the arm64 build is working. I assume we need another Visual Studio Marketplace listing specific to Arm unless the marketplace has added support for multiple VSIX files per listing? Previously, their docs said it wasn't supported but was being worked on. I can't find that doc, but here's some other relevant ones: |
Any updates on this? Still no easy way to use wakatime on arm? |
I would also love to have an ARM build of this... any chance it can be released soon? I will build one by hand for now... |
@alanhamlett and @leemcmullen 👍 I just tried the feature/arm64 branch. THANK YOU!!! |
For anyone else looking for an answer, here's what I did:
Once installer is finished, you WakaTime should prompt you for an API key. |
@gandarez let's get the arm branch merged and released? |
@alanhamlett I think we first need create the pipeline to aumotate releasing part and then get branch merged? |
Hi,
I just upgraded to Visual Studio 2022 on MacBook Pro M1 Max (ARM) using Parallels.
Unfortunately, WakaTime extension throws an error every time I open Visual Studio. Here are the details:
Create Instance failed for package [WakaTimePackage] Source: 'mscorlib' Description: Could not load file or assembly 'file:///c:\users\test\appdata\local\microsoft\visualstudio\17.0_45d60efe\extensions\44g3sfld.gyw\WakaTime.Dev17.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. System.BadImageFormatException: Could not load file or assembly 'file:///c:\users\test\appdata\local\microsoft\visualstudio\17.0_45d60efe\extensions\44g3sfld.gyw\WakaTime.Dev17.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. File name: 'file:///c:\users\test\appdata\local\microsoft\visualstudio\17.0_45d60efe\extensions\44g3sfld.gyw\WakaTime.Dev17.dll' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence) at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo) at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Is there any workaround for this and when can we expect official support for ARM processors?
The text was updated successfully, but these errors were encountered: