flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.98k stars 317 forks source link

Flutter New Project Action Not Exist #1397

Closed putraxor closed 6 years ago

putraxor commented 6 years ago

Steps to Reproduce

Flutter New Project Action menu is not exist on Android Studio 3.0 beta 7 flutter

Version info

[✓] Flutter (on Linux, locale en_US.UTF-8, channel master) • Flutter at /home/putraxor/flutter • Framework revision 51e4e9f9a5 (3 days ago), 2017-10-10 17:41:25 -0700 • Engine revision 2a84f18c79 • Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2) • Android SDK at /home/putraxor/android_sdk_linux • Platform android-26, build-tools 26.0.2 • ANDROID_HOME = /home/putraxor/android_sdk_linux • Java binary at: /home/putraxor/CODING/AndroidStudioBeta3/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] Android Studio (version 2.3) • Android Studio at /home/putraxor/android-studio • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 3.0) • Android Studio at /home/putraxor/CODING/AndroidStudioBeta3/android-studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.2) • Flutter plugin version 17.0 • Dart plugin version 172.3968.27

[✓] IntelliJ IDEA Ultimate Edition (version 2017.1) • Flutter plugin version 16.0 • Dart plugin version 171.4694.29

[✓] Connected devices • None

devoncarew commented 6 years ago

Hmm, is other Flutter UI contributed? You should see a Tools > Flutter menu, and the flutter plugin should be visible in the list of plugins in the preferences page. You may also check the IntelliJ log for suspicious exceptions.

/cc @stevemessick

stevemessick commented 6 years ago

I just verified that the New Flutter Project menu item is present in my beta 7 IDE. I notice you have older versions in other IntelliJ installations. If you somehow installed a version prior to 18 of the Flutter plugin you wouldn't see that menu item. Do you see the Flutter device picker on your tool bar? It would be under the menu in the screen shot.

putraxor commented 6 years ago

Yes, everything work fine just like on idea/webstorm plugin. Let me try updating it in idea too

putraxor commented 6 years ago

New Flutter Project still absent, I have updated Flutter plugin on IDEA and reinstall Plugin on Android Studio Beta 7, there is no exception on idea.log

Flutter Doctor [✓] Flutter (on Linux, locale en_US.UTF-8, channel master) • Flutter at /home/putraxor/flutter • Framework revision 51e4e9f9a5 (4 days ago), 2017-10-10 17:41:25 -0700 • Engine revision 2a84f18c79 • Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2) • Android SDK at /home/putraxor/android_sdk_linux • Platform android-26, build-tools 26.0.2 • ANDROID_HOME = /home/putraxor/android_sdk_linux • Java binary at: /home/putraxor/CODING/AndroidStudioBeta3/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] Android Studio (version 2.3) • Android Studio at /home/putraxor/android-studio • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 3.0) • Android Studio at /home/putraxor/CODING/AndroidStudioBeta3/android-studio • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.2) • Flutter plugin version 18.1 • Dart plugin version 172.3968.27

[✓] Connected devices • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

idea.log

2017-10-14 23:26:49,315 [entQueue-0]   INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Dart (171.4424), Databinding Support (1.1.0), Flutter (18.1), GitLab Projects (1.4.7), Kotlin (1.1.51-release-Studio3.0-1) 
2017-10-14 23:26:49,315 [entQueue-0]   INFO - llij.ide.plugins.PluginManager - Disabled plugins: Android APK Support (1.0), Android Games (1.0), Android NDK Support (1.0), CVS Integration (11), Firebase Testing (1.0), GitHub (171.4249.39), Settings Repository (171.4249.39), Subversion Integration (1.1) 
2017-10-14 23:26:49,908 [entQueue-0]   INFO - ij.components.ComponentManager - com.intellij.openapi.components.impl.ServiceManagerImpl initialized in 78 ms 
2017-10-14 23:26:49,933 [entQueue-0]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=969 
2017-10-14 23:26:49,964 [entQueue-0]   INFO - ij.components.ComponentManager - com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl initialized in 45 ms 
2017-10-14 23:26:49,968 [entQueue-0]   INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /home/putraxor/CODING/AndroidStudioBeta3/android-studio/bin/fsnotifier64 
2017-10-14 23:26:49,975 [entQueue-0]   INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational. 
2017-10-14 23:26:49,975 [entQueue-0]   INFO - ij.components.ComponentManager - com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl initialized in 56 ms 
2017-10-14 23:26:49,980 [entQueue-0]   INFO - ij.components.ComponentManager - com.intellij.openapi.vfs.PlatformVirtualFileManager initialized in 64 ms 
2017-10-14 23:26:50,070 [entQueue-0]   INFO - ij.components.ComponentManager - com.intellij.openapi.util.registry.RegistryState initialized in 27 ms 
2017-10-14 23:26:50,149 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.internal.statistic.persistence.UsageStatisticsPersistenceComponent initialized in 73 ms 
2017-10-14 23:26:50,150 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.internal.statistic.updater.SendStatisticsComponent initialized in 80 ms 
2017-10-14 23:26:50,314 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl initialized in 161 ms 
2017-10-14 23:26:50,341 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.keymap.impl.KeymapManagerImpl initialized in 21 ms 
2017-10-14 23:26:50,509 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.actionSystem.impl.ActionManagerImpl initialized in 190 ms 
2017-10-14 23:26:50,520 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.editor.impl.EditorFactoryImpl initialized in 202 ms 
2017-10-14 23:26:50,593 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.ide.ui.laf.LafManagerImpl initialized in 59 ms 
2017-10-14 23:26:50,612 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.internal.statistic.persistence.ApplicationStatisticsPersistenceComponent initialized in 14 ms 
2017-10-14 23:26:50,710 [elease-b06]   INFO - til.net.ssl.CertificateManager - Default SSL context initialized 
2017-10-14 23:26:50,711 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.util.net.ssl.CertificateManager initialized in 89 ms 
2017-10-14 23:26:50,774 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.ide.SystemHealthMonitor initialized in 63 ms 
2017-10-14 23:26:50,784 [d thread 2]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 
2017-10-14 23:26:50,788 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.wm.impl.FocusManagerImpl initialized in 11 ms 
2017-10-14 23:26:50,807 [elease-b06]   INFO - gs.impl.UpdateCheckerComponent - channel: eap 
2017-10-14 23:26:50,827 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.updateSettings.impl.UpdateCheckerComponent initialized in 24 ms 
2017-10-14 23:26:50,956 [elease-b06]   INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:123 
2017-10-14 23:26:50,959 [elease-b06]   INFO - il.indexing.FileBasedIndexImpl - Index scheduled:2 
2017-10-14 23:26:50,959 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.util.indexing.FileBasedIndexImpl initialized in 130 ms 
2017-10-14 23:26:50,982 [elease-b06]   INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:17 
2017-10-14 23:26:50,982 [elease-b06]   INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0 
2017-10-14 23:26:50,982 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.psi.stubs.StubIndexImpl initialized in 23 ms 
2017-10-14 23:26:51,004 [elease-b06]   INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found 
2017-10-14 23:26:51,005 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.ide.script.IdeStartupScripts initialized in 14 ms 
2017-10-14 23:26:51,036 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.vcs.changes.actions.migrate.MigrateDiffApplicationComponent initialized in 14 ms 
2017-10-14 23:26:51,063 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.util.xml.impl.JavaDomApplicationComponent initialized in 12 ms 
2017-10-14 23:26:51,222 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.components.impl.ServiceManagerImpl initialized in 23 ms 
2017-10-14 23:26:51,294 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl initialized in 21 ms 
2017-10-14 23:26:51,306 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.compiler.CompilerConfigurationImpl initialized in 11 ms 
2017-10-14 23:26:51,413 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.execution.impl.RunManagerImpl initialized in 106 ms 
2017-10-14 23:26:51,413 [d thread 2]   INFO - pl$FileIndexDataInitialization - Initialization done:454 
2017-10-14 23:26:51,428 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.openapi.vcs.impl.ProjectLevelVcsManagerImpl initialized in 15 ms 
2017-10-14 23:26:51,466 [d thread 2]   INFO - exImpl$StubIndexInitialization - Initialization done:52 
2017-10-14 23:26:51,470 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.profile.codeInspection.ProjectInspectionProfileManager initialized in 42 ms 
2017-10-14 23:26:51,482 [elease-b06]   INFO - ij.components.ComponentManager - com.intellij.debugger.impl.DebuggerManagerImpl initialized in 11 ms 
2017-10-14 23:26:51,494 [elease-b06]   INFO - ij.components.ComponentManager - com.android.tools.idea.databinding.DataBindingProjectComponent initialized in 11 ms 
2017-10-14 23:26:51,494 [elease-b06]   INFO - ellij.project.impl.ProjectImpl - 18 project components initialized in 345 ms 
2017-10-14 23:26:52,620 [elease-b06]   INFO - ij.components.ComponentManager - com.android.tools.idea.AndroidInitialConfigurator initialized in 1556 ms 
2017-10-14 23:26:52,641 [elease-b06]   INFO - ij.components.ComponentManager - org.jetbrains.kotlin.idea.PluginStartupComponent initialized in 16 ms 
2017-10-14 23:26:52,642 [elease-b06]   INFO - plication.impl.ApplicationImpl - 86 application components initialized in 3911ms 
2017-10-14 23:26:52,652 [elease-b06]   INFO - .intellij.idea.IdeaApplication - App initialization took 4734 ms 
2017-10-14 23:26:53,243 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.openapi.wm.impl.ToolWindowManagerImpl initialized in 14 ms 
2017-10-14 23:26:53,279 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.openapi.fileEditor.impl.PsiAwareFileEditorManagerImpl initialized in 19 ms 
2017-10-14 23:26:53,314 [d thread 1]   INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@5c89792e 
2017-10-14 23:26:53,354 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.openapi.vcs.changes.ChangesViewManager initialized in 59 ms 
2017-10-14 23:26:53,381 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.openapi.vcs.changes.ChangeListManagerImpl initialized in 88 ms 
2017-10-14 23:26:53,384 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.openapi.vcs.changes.VcsDirtyScopeManagerImpl initialized in 91 ms 
2017-10-14 23:26:53,397 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.codeInsight.daemon.impl.DaemonListeners initialized in 115 ms 
2017-10-14 23:26:53,421 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.codeInsight.daemon.impl.GeneralHighlightingPassFactory initialized in 19 ms 
2017-10-14 23:26:53,446 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.codeInsight.navigation.CtrlMouseHandler initialized in 11 ms 
2017-10-14 23:26:53,519 [d thread 5]   INFO - CompilerWorkspaceConfiguration - Available processors: 8 
2017-10-14 23:26:53,600 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.execution.impl.RunManagerImpl initialized in 69 ms 
2017-10-14 23:26:53,637 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.openapi.vcs.changes.shelf.ShelvedChangesViewManager initialized in 26 ms 
2017-10-14 23:26:53,717 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.xdebugger.impl.XDebuggerManagerImpl initialized in 69 ms 
2017-10-14 23:26:53,745 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.execution.scratch.JavaScratchCompilationSupport initialized in 11 ms 
2017-10-14 23:26:53,799 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.remoteServer.util.importProject.CloudGitRemoteDetector initialized in 48 ms 
2017-10-14 23:26:53,829 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.coverage.CoveragePluginDataManagerImpl initialized in 29 ms 
2017-10-14 23:26:53,867 [d thread 5]   INFO - ij.components.ComponentManager - com.intellij.tasks.impl.TaskManagerImpl initialized in 37 ms 
2017-10-14 23:26:53,884 [d thread 5]   INFO - ij.components.ComponentManager - com.android.tools.idea.gradle.project.AndroidGradleProjectComponent initialized in 11 ms 
2017-10-14 23:26:53,901 [d thread 5]   INFO - ellij.project.impl.ProjectImpl - 142 project components initialized in 852 ms 
2017-10-14 23:26:53,993 [d thread 2]   INFO - ij.components.ComponentManager - com.intellij.openapi.roots.impl.ModuleRootManagerComponent initialized in 67 ms 
2017-10-14 23:26:53,993 [d thread 3]   INFO - ij.components.ComponentManager - com.intellij.openapi.roots.impl.ModuleRootManagerComponent initialized in 67 ms 
2017-10-14 23:26:54,027 [d thread 3]   INFO - ij.components.ComponentManager - com.intellij.facet.FacetManagerImpl initialized in 33 ms 
2017-10-14 23:26:54,030 [d thread 5]   INFO - le.impl.ModuleManagerComponent - 2 module(s) loaded in 127 ms 
2017-10-14 23:26:54,769 [d thread 1]   INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@2c81662a 
2017-10-14 23:26:54,955 [d thread 1]   INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@6ecb17f0 
2017-10-14 23:26:55,179 [d thread 1]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 76ms; general responsiveness: ok; EDT responsiveness: ok 
2017-10-14 23:26:55,582 [d thread 1]   INFO -       ScriptTemplatesProviders - [kts] loading script definitions [] using cp:  
2017-10-14 23:26:55,586 [d thread 1]   INFO -       ScriptTemplatesProviders - Templates provider KotlinCompilerScriptTemplatesSettings is invalid:  
2017-10-14 23:26:55,620 [d thread 1]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /home/putraxor/CODING/AndroidStudioBeta3/android-studio/jre 
2017-10-14 23:26:55,621 [d thread 1]   INFO -       ScriptTemplatesProviders - Templates provider Gradle Kotlin DSL is invalid: Unable to get Gradle home directory 
2017-10-14 23:26:55,621 [d thread 1]   INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /home/putraxor/CODING/AndroidStudioBeta3/android-studio/jre 
2017-10-14 23:26:55,621 [d thread 1]   INFO -       ScriptTemplatesProviders - Templates provider Gradle Script Kotlin is invalid: Unable to get Gradle home directory 
2017-10-14 23:26:55,621 [d thread 1]   INFO -       ScriptTemplatesProviders - [kts] loading script definitions [kotlin.script.templates.standard.ScriptTemplateWithArgs] using cp:  
2017-10-14 23:26:56,418 [d thread 8]   INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #1: /home/putraxor/flutter/bin/flutter daemon 
2017-10-14 23:26:56,662 [d thread 5]   INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 1638 
2017-10-14 23:26:56,748 [d thread 8]   INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #2: /home/putraxor/flutter/bin/flutter daemon 
2017-10-14 23:26:57,644 [d thread 5]   INFO - tartup.impl.StartupManagerImpl - ProjectOpenActivity run in 907 
2017-10-14 23:26:57,814 [elease-b06]   INFO - tartup.impl.StartupManagerImpl - /home/putraxor/CODING/Flutter-Learn/firestore/.idea case-sensitivity: expected=true actual=true 
2017-10-14 23:26:58,806 [elease-b06]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 5855 ms 
2017-10-14 23:26:59,270 [d thread 1]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 4089ms; general responsiveness: ok; EDT responsiveness: 1/4 sluggish 
2017-10-14 23:27:02,356 [elease-b06]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2017-10-14 23:27:02,412 [d thread 3]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 4ms; general responsiveness: ok; EDT responsiveness: ok 
2017-10-14 23:27:02,474 [d thread 3]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 62ms; general responsiveness: ok; EDT responsiveness: ok 
2017-10-14 23:27:04,414 [elease-b06]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2017-10-14 23:27:04,441 [d thread 9]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 1ms; general responsiveness: ok; EDT responsiveness: ok 
2017-10-14 23:27:04,538 [d thread 9]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 96ms; general responsiveness: ok; EDT responsiveness: ok 
stevemessick commented 6 years ago

I tried to reproduce this problem using Linux. Everything worked as expected. I notice that your New sub-menu has 13 items on it. Mine has 19 (including Flutter) and I took only the standard install options. One difference is that I used RC 1 instead of beta 7 of Android Studio 3.0.

Please try this with a clean install of Android Studio 3.0 RC 1, without importing previous settings, and using only the defaults. If that doesn't work I suggest contacting your Linux sysadmin. When you do a clean install, the first thing you should see after launching Android Studio is the Welcome screen. The second item on it should be "Start a new Flutter project".

Edit: I forgot to mention you can add plugins from the Welcome screen. It is on the Configure tool at the bottom of the Welcome screen. You'll need to add Flutter before it shows up in the Welcome screen.

stevemessick commented 6 years ago

I was able to reproduce this problem. You have some disabled plugins:

Disabled plugins: Android APK Support (1.0), Android Games (1.0), Android NDK Support (1.0), CVS Integration (11), Firebase Testing (1.0), GitHub (171.4249.39), Settings Repository (171.4249.39), Subversion Integration (1.1) 

Enable the first three to restore functionality.