flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Hot Reload & Hot Restart Flutter buttons do not appear on the Touch Bar

Open fatadel opened this issue 4 years ago • 1 comments

I have the Flutter plugin installed with IDEA. I've tried adding its Hot Reload (All Devices) and Hot Restart (All Devices) buttons to the Touch Bar of my Mac but they don't show up. Here are the screenshots. FYI, the single device hot reload and hot restart buttons don't work either. Some other Flutter-related buttons I've tested seemed working fine.

image image

The issue was first reported directly to JetBeans (issue), but I was redirected to this repository.

Steps to Reproduce

On a Macbook with Touch Bar, do the following:

  1. Open IntelliJ IDEA with Flutter and Dart plugins installed.
  2. Go to IntelliJ IDEA -> Preferences -> Appearance & Behavior -> Menus and Toolbars.
  3. Expand the "Touch Bar" menu item. Expand "Default".
  4. Remove some items to make some space and then add "Hot Reload (All Devices)" and "Hot Restart (All Devices)". (Single device options cause the same problem.)
  5. Apply and save.

Expected: Items appear on the Touch Bar. Actual: They are not there.

Version info

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.1 20D74 darwin-arm, locale ru-RU)
    • Flutter version 2.2.3 at /Users/%username%/.flutter
    • Framework revision f4abaa0735 (5 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/%username%/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 15.0.1+9-18)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2020.3)
    • Android Studio at /Users/%username%/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.58.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (3 available)
    • iPhone 11 Pro (mobile)     • D68FF329-3843-4136-9EA3-48B318886D68 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5
      (simulator)
    • iPhone 12 Pro Max (mobile) • 519B0D9F-9AF4-4A0F-90F9-EE56166E3065 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5
      (simulator)
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 92.0.4515.131
    ! Error: %iphone_name% is not connected. Xcode will continue when %iphone_name% is connected. (code -13)

! Doctor found issues in 1 category.

fatadel avatar Aug 06 '21 01:08 fatadel

I confirm the same problem

Chebattler avatar Feb 06 '22 00:02 Chebattler

I found a solution! for Andoid Studio Solution taken from https://www.chikach.net/category/android-app/mbp-touchbar-fhr/

I will duplicate the solution steps:

  1. Run the application (run/debug)
  2. Enable macro recording(Edit->Macros->Start Macro Recording)
Screenshot 2023-05-24 at 11 57 23
  1. Мake a hot reload (hotkey/on the menu bar)
  2. Stop macro recording(Edit->Macros->Stop Macro Recording)
  3. In the toolbar settings, add the saved macro 5.1 Download icon "lightning" to display(https://jetbrains.design/intellij/resources/icons_list/) and set for action if need
  4. Position where you like
Screenshot 2023-05-24 at 11 42 22

JagArt avatar May 24 '23 08:05 JagArt