-
Notifications
You must be signed in to change notification settings - Fork 325
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
IntelliJ 'New Project' - cannot select 'Linux' platform option #5347
Comments
@aromanelli Is there any chance the Flutter SDK selected on page one of the new project wizard is different from the one you used on the command line? This problem should have been fixed in #5314, which is included in Flutter plugin 55.0.4-dev.3. |
@stevemessick No. I only installed it once via snap.
Also including a screenshot of my IntelliJ's settings panel. Note that there is no 'Flutter' entry under "Languages & Frameworks". Not sure if this is a problem or not? |
@stevemessick I'd be glad to help out in any way, if you need me to do any debugging steps, investigation, etc. |
@aromanelli Thanks for the offer. I'll take you up on that. There is something wrong with your IntelliJ. I see you have both Dart and Flutter plugins installed yet neither is listed in the What happens if you try to create a project using Android Studio 4.2 or Arctic Fox? There is no platform selection in 4.1. What happens if you use the latest stable version of the Flutter plugin (not the dev channel)? This bug is fixed in version 54.1. (I mean, unless you've found a new bug.) What happens if you use the stable channel of the Flutter SDK? You can download it to a temporary directory if you don't want to risk messing up your project. If you still have time and nothing has worked, try installing IntelliJ from the download page and use that. You should expect to see both Dart and Flutter listed in the |
@stevemessick My IntelliJ was installed as a flatpak via the Fedora store, and not a manual download. I went ahead and removed all plugins, uninstalled IntelliJ, uninstalled flutter/dart via snap, manually cleared out any and all configuration files in my home hierarchy, and ran both the dnf and flatpak uninstall unused commands. I did multiple reboots during all of that. I then tried to reinstall flutter per this page and it installed correctly (see output end of this comment). However, trying to run
I'll try to continue tomorrow (assuming someone will fix the server problems in the morning), so I'll get back to you once I go through your checklist of things to try out.
|
The https://pub.dev/ site was down for a while but is back now. (pub.dartlang.org redirects to pub.dev) |
@stevemessick So I was able to complete the Looking at the idea.log file it does show that the plugins were loaded ...
There are though a few NoSuchFileException exceptions in the log (61-271), a IOException (326-352), and finally a Throwable assertion about doing work on the Swing UI thread (405-469). I'll attach the log file here for your review. I'm going to try the non-flathub version of IntelliJ next, to see if that makes a difference, then on to your checklist after that. But fundamentally, I would expect the plugin to be usable from the flathub version (everything being equal). |
@stevemessick Tried using the downloaded version of IntelliJ (2020.3.3/#IC-203.7717.56), and just trying to install the default Flutter 54.1.4/Dart 203.7759 plugins (not the 'dev' ones), and neither plugin shows in the 'Languages & Frameworks' section. The kotlin plug does show (just to show that other plugins do get listed). Attaching the idea.log file, has same kind of exceptions I mentioned earlier.
|
@stevemessick I did discover that my original problem, that of the "Platforms" 'Linux' option has gone away with the downloaded version of IntelliJ and Flutter plugin 54.1.4! Using Flutter 55.0.4-dev.3 plugin also does not have the platform problem! I switched back to the flatpak version, and the "Platform" 'Linux' option is again disabled. The downloaded version still works fine. So, for my original issue reporting, its the flatpak version (from the Fedora 33 software store) of IntelliJ that has the problem, not the downloaded one. For the Flutter/Dart plugins not showing the settings menu, BOTH versions do not show it. |
Uploading the log file from the IntelliJ that works properly. Comparing the working and not working log files, there's a descrepancy at the bottom of each log file ...
|
@stevemessick Just a FYI, I'm planning on switching over from Fedora to Ubuntu this weekend tomorrow/Saturday, so if you want me to do any further testing before I do so (so that the environment is the same as when the bug was reported) let me know. After the switch, I'll still be glad to help out in any way I can, assuming that the problem is purely a flatpak problem and not a Fedora 33/flatpak problem (and can be reproduced). |
I'm glad the original issue has been resolved. Since the missing settings tabs involve both Dart and Flutter, I'm pretty sure it has nothing to do with the Flutter plugin. You'll need to check with JetBrains about that. @alexander-doroshko might be able to tell us if he's heard of this problem before. One thing did occur to me: If I read it correctly you install the Dart plugin as a consequence of installing the Flutter plugin. You might try installing Dart, then installing Flutter. To resolve the IntelliJ distribution problem, you'll need to work with the Linux providers. |
@stevemessick @alexander-doroshko I'll leave it up to you of course to close this issue or not, but I would add that you should be sure that the issue is not caused by the plugin coding doing path lookups and getting confused because flatpak installs to a different location (and diff rights?) than the native install does, so that the 'bug' is really with the plugin code and not IntelliJ proper. The plugin itself is not working right when IntelliJ is installed/ran through flatpak (you can't select the 'Linux' option in the plugin dialog), so that would make me thing that the "ball is still in your court", at least for diagnosing the problem to see if its a plugin vs flatpak vs IntelliJ issue. I would also respectively suggest that native and flatpak installs of IntelliJ should both be supported (in case they are not, for whatever reason), and if they are not, then explicitly state that in the README.md, to avoid future headaches. Thanks for your time and efforts, they are appreciated by us all. |
@aromanelli Good points. We're leaving this open for now. I need much better network bandwidth to do any experimentation, so I won't be doing anything until I can get back to the office. Thanks for all the diagnostic info. |
I'm not aware of the problem. As far as I understand, flatpack distribution is not an official one, I mean it is supported not by JetBrains. |
@stevemessick That's fine, I'll just use the native version of IntelliJ for now. If there are any other tests you'd like me to run for you for further diagnosis, let me know. |
@alexander-doroshko That's one hell of a Linux-based social-political can of worms that you're looking to open. If you don't mind, I'm going to back away from the keyboard now, slowly, and dive for cover. :p Your choice of course to support flatpak distributions or not. Just a suggestion, if you don't support, just put that info in the README.md, so that people don't waste their time installing/debugging. |
@stevemessick Wow, ok. That was a great read, TY for sharing the link. Read through all of that, including the links inside of that link. Seems like things have been 'in progress' since 2018. I had just assumed that flatpak would have the same current support as snap from the jetbrains guys in 2021, and that was my bad. Hopefully they give it full support, would be kind of awkward if the more proprietary snap system having better support that the flatpak one. As I mentioned before, I'll just stick with the native installed version for now, until the dust clears. Thanks for your efforts! |
@stevemessick Remembered seeing some of this issue's errors in my logs; maybe this is related to the flatpak/plugin "Linux" disabled situation? |
This isn't something the plugin can fix. It is due to the flatpak installation not including some Linux distro-specific libraries. See flathub/com.jetbrains.IntelliJ-IDEA-Ultimate#58 |
Steps to Reproduce
(When I mention "CLI" below I mean a terminal outside of the IDE.)
I was able to use the
flutter create counter
andflutter run -d linux
commands via the CLI to create a Linux app and run it successfully.I've tried restarting IntelliJ multiple times, and uninstalling/reinstalling the plugin multiple times, after confirming that Flutter was installed correctly (via snap) from the CLI previously, and that the SDKs paths were correct.
I've also did the
flutter config --enable-linux-desktop
on the CLI command successfully.Version info
Fedora 33 Workstation
Gnome 3.38.4
Wayland
IntelliJ IDEA 2020.3.3 (Community Edition)
Build #IC-203.7717.56, built on March 15, 2021
Runtime version: 11.0.10+8-b1145.96 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Flutter plugin version: 55.0.4-dev.3 flutter.dev (from repository: https://plugins.jetbrains.com/plugins/dev/list)
[✓] Flutter (Channel dev, 2.1.0-12.1.pre, on Linux, locale en_US.UTF-8)
• Flutter version 2.1.0-12.1.pre at /home/adrian/snap/flutter/common/flutter
• Framework revision 8264cb3e8a (13 days ago), 2021-03-10 12:37:57 -0800
• Engine revision 711ab3fda0
• Dart version 2.13.0 (build 2.13.0-116.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/adrian/Programming/Android/SDK
• Platform android-30, build-tools 30.0.3
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
• clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
• cmake version 3.10.2
• ninja version 1.8.2
• pkg-config version 0.29.1
[✓] Android Studio (version 4.2)
• Android Studio at /opt/android-studio
• 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
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • Linux
From 'flutter config' command via CLI ...
Settings:
android-sdk: /home/adrian/Programming/Android/SDK
enable-linux-desktop: true
enable-windows-desktop: false
android-studio-dir: /opt/android-studio
The text was updated successfully, but these errors were encountered: