microsoft / azure-devops-intellij

IntelliJ IDEA plug-in for Visual Studio Team Services and Team Foundation Server (TFS)
MIT License
149 stars 95 forks source link

This plugin no longer works on the latest version of OSX using a M1 silicon #497

Open wolfie82 opened 2 years ago

wolfie82 commented 2 years ago

When attempting to load the device flow login authentication helper, the authentication library that this plugin depends on also has a dependency on SWT. When the class loader scans for SWT, it is only able to find the bundled x86_64 version that this project pulls in.

With that said, I'm unable to use this plugin in any of the JetBrains IDE's.

Software:

    System Software Overview:

      System Version: macOS 12.5 (21G72)
      Kernel Version: Darwin 21.6.0
      Boot Mode: Normal
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 56 minutes

Hardware:

    Hardware Overview:

      Model Name: MacBook Air
      Model Identifier: MacBookAir10,1
      Chip: Apple M1
      Total Number of Cores: 8 (4 performance and 4 efficiency)
      Memory: 16 GB
      System Firmware Version: 7459.141.1
      OS Loader Version: 7459.141.1
      Activation Lock Status: Disabled
2022-07-22 17:33:15,316 [ 150753]   WARN - c.m.a.a.o.OAuth2Authenticator - Failed to launch oauth2-useragent.
com.microsoft.alm.oauth2.useragent.AuthorizationException: Code: unknown_error Description: Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
    no swt-cocoa-4430 in java.library.path: /Users/patrick.wolf/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
    no swt-cocoa in java.library.path: /Users/patrick.wolf/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
    Can't load library: /Users/patrick.wolf/.swt/lib/macosx/aarch64/libswt-cocoa-4430.jnilib
    Can't load library: /Users/patrick.wolf/.swt/lib/macosx/aarch64/libswt-cocoa.jnilib

    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
    at com.microsoft.alm.oauth2.useragent.StandardWidgetToolkit.<init>(StandardWidgetToolkit.java:33)
    at com.microsoft.alm.oauth2.useragent.StandardWidgetToolkit.main(StandardWidgetToolkit.java:50)

    at com.microsoft.alm.oauth2.useragent.AuthorizationResponse.fromString(AuthorizationResponse.java:109)
    at com.microsoft.alm.oauth2.useragent.UserAgentImpl.encode(UserAgentImpl.java:195)
    at com.microsoft.alm.oauth2.useragent.UserAgentImpl.requestAuthorizationCode(UserAgentImpl.java:152)