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

Compatibility with CLion

Open ruifengx opened this issue 2 years ago • 2 comments

Flutter has support for developing desktop applications, but in IntelliJ IDEA it is very painful to edit the C++ files for e.g. the Windows runner because its lack of support for C++ and CMake. Is it possible for this plug-in to also support CLion?

ruifengx avatar Sep 10 '23 15:09 ruifengx

One can run IntelliJ / Android Studio side by side with CLion, similar to the Windows approach described here.

I made a draft for adapting the docs: https://github.com/flutter/website/compare/main...Gustl22:flutter-website:patch-1

  • The one way works: Starting the app in Android Studio and attach the debugger in CLion.
  • Found no solution on how to start the process from within CLion (and then attach Android Studio).

Refs:

  • https://docs.flutter.dev/packages-and-plugins/developing-packages#step-2d-add-linux-platform-code-hcc
  • https://docs.flutter.dev/testing/native-debugging?tab=from-vscode-to-android-studio#debug-dart-and-c-code-using-visual-studio
  • https://www.jetbrains.com/help/clion/attach-to-process.html
  • https://github.com/flutter/flutter/issues/79179

Gustl22 avatar Dec 14 '23 22:12 Gustl22

CLion is supported if you downgrade it to version 2022 and use version 69.0.5 of the plugin (if you read the release notes, the Flutter plugin used to support all the IDEs): https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable/191250

I remember that JetBrains did an update for version 2023 of their IDEs that broke too many plugins, so Flutter team probably didn't have the bandwidth to fix the plugin for the other IDEs.

AldoMX avatar Jun 19 '24 17:06 AldoMX

Builds for CLion are currently out of scope for the Flutter team.

jwren avatar Aug 05 '24 19:08 jwren