flutter / flutter-intellij

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

Opening a new project window #6163

Open yinkyAde opened 2 years ago

yinkyAde commented 2 years ago

Thanks for the feedback! If your issue is related to the Flutter framework itself, please open an issue at github.com/flutter/flutter.

Steps to Reproduce

I was trying to open a new project to a new window then I go the IDE error then I got this exception

Version info

Android Studio Bumblebee | 2021.1.1 Patch 3 • Flutter plugin io.flutter 67.1.1 • Dart plugin 211.7817

Error getting Flutter SDK information.

Exception

null

com.intellij.serviceContainer.AlreadyDisposedException: Cannot create io.flutter.bazel.WorkspaceCache because container is already disposed: Project(name=kwaratranshealth, containerState=DISPOSE_COMPLETED, componentStore=C:\Users\Aderoju Israel\StudioProjects\kwaratranshealth) (disposed)
    at com.intellij.serviceContainer.ComponentManagerImpl.throwContainerIsAlreadyDisposed(ComponentManagerImpl.kt:522)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:498)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:471)
    at io.flutter.bazel.WorkspaceCache.getInstance(WorkspaceCache.java:83)
    at io.flutter.inspector.InspectorService.lambda$new$5(InspectorService.java:274)
    at io.flutter.utils.StreamSubscription.notify(StreamSubscription.java:43)
    at io.flutter.utils.EventStream.lambda$setValue$0(EventStream.java:78)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:218)
    at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:200)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:787)
    at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:325)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:133)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
    at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:189)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:787)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

flutter doctor

C:\Users\Aderoju Israel>flutter doctor -v [√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.22000.652], locale en-US) • Flutter version 2.10.5 at C:\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5464c5bac7 (4 weeks ago), 2022-04-18 09:55:37 -0700 • Engine revision 57d3bac3dd • Dart version 2.16.2 • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at C:\Users\Aderoju Israel\AppData\Local\Android\sdk X cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details. X Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2021.1) • Android Studio at C:\Program Files\Android\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 11.0.11+9-b60-7590822)

[√] VS Code (version 1.67.0) • VS Code at C:\Users\Aderoju Israel\AppData\Local\Programs\Microsoft VS Code • Flutter extension can be installed from: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (4 available) • SM N950U (mobile) • ce10171ac01f0536047e • android-arm64 • Android 9 (API 28) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.652] • Chrome (web) • chrome • web-javascript • Google Chrome 101.0.4951.64 • Edge (web) • edge • web-javascript • Microsoft Edge 101.0.1210.39

[√] HTTP Host Availability • All required HTTP hosts are available

! Doctor found issues in 2 categories.

stevemessick commented 2 years ago

The code in question was recently changed. Does the problem still occur with the latest version of the Flutter plugin?

yinkyAde commented 2 years ago

Yes, I'm using the latest version of the fluter plugin version 67.1

On Fri, May 13, 2022, 4:32 PM stevemessick @.***> wrote:

The code in question was recently changed. Does the problem still occur with the latest version of the Flutter plugin?

— Reply to this email directly, view it on GitHub https://github.com/flutter/flutter-intellij/issues/6163#issuecomment-1126183256, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7RNZZHP6FB4IZZ7NV4YH3VJZY2NANCNFSM5V3RSUZA . You are receiving this because you authored the thread.Message ID: @.***>

stevemessick commented 2 years ago

Thanks for the reply. I cannot reproduce the problem. Have you opened and closed projects without restarting the IDE? Does this error occur every time you create a new project? How many Android Studio windows do you open?

github-actions[bot] commented 2 years ago

Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll reopen the case if you do. Thanks for your contribution!

yinkyAde commented 2 years ago

No, it doesn't.

On Fri, May 13, 2022, 5:18 PM stevemessick @.***> wrote:

Thanks for the reply. I cannot reproduce the problem. Have you opened and closed projects without restarting the IDE? Does this error occur every time you create a new project? How many Android Studio windows do you open?

— Reply to this email directly, view it on GitHub https://github.com/flutter/flutter-intellij/issues/6163#issuecomment-1126229042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7RNZ4S6UQGZ7L7GMTOTMTVJZ6FXANCNFSM5V3RSUZA . You are receiving this because you authored the thread.Message ID: @.***>