Skip to content
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

Possible flutter plugin crash #46356

Closed
ghost opened this issue Jun 14, 2021 · 10 comments
Closed

Possible flutter plugin crash #46356

ghost opened this issue Jun 14, 2021 · 10 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.

Comments

@ghost
Copy link

ghost commented Jun 14, 2021

@the-ginger-geek commented on Jun 9, 2021, 2:29 PM UTC:

Not sure if there is already an issue for this, I couldn't find one.

I can recreate the bug when running commands in this order, in the IDE terminal, sometimes it happens when only running the build_runner command. The exact same thing happens on VS Code when following the below steps.

Steps to reproduce

  1. run flutter pub run build_runner build --delete-conflicting-outputs
  2. run flutter clean
  3. run flutter pub get
screen-recording-2021-06-09-at-160926_EfI52XKt.mov

Version info

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.1, on macOS 11.4 20F71 darwin-x64, locale en-GB)
• Flutter version 2.2.1 at /Users/mukuru/development/flutter
• Framework revision 02c026b03c (13 days ago), 2021-05-27 12:24:44 -0700
• Engine revision 0fdb562ac8
• Dart version 2.13.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/mukuru/Library/Android/sdk
• Platform android-S, build-tools 30.0.3
• Java binary at: /Applications/Android Studio 4.2 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.

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

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

[✓] Android Studio (version 4.2)
• Android Studio at /Applications/Android Studio 4.2 Preview.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
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] Android Studio (version 4.1)
• Android Studio at /Applications/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
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 57.0.5
• Dart plugin version 211.7233

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

[✓] Connected device (4 available)
• iPhone 12 (mobile) • 72346AAE-1AA5-4496-AE43-77940685EB36 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 11.4 20F71 darwin-x64

• No issues found!


IntelliJ version

IntelliJ IDEA 2021.1.2 (Community Edition)
Build #IC-211.7442.40, built on June 1, 2021
Runtime version: 11.0.11+9-b1341.57 x86_64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
macOS 11.4
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
Registry: ide.balloon.shadow.size=0
Non-Bundled Plugins: com.mallowigi (36.0), com.xinkun.theme.md (1.7.12), Dart (211.7233), org.toml.lang (0.2.148.3911-211), io.flutter (57.0.5), Docker (211.7442.9), org.jetbrains.kotlin (211-1.5.10-release-891-IJ7142.45), pl.pszklarska.pubversionchecker (1.2.5), com.chrisrm.idea.MaterialThemeUI (6.6.0)
Kotlin: 211-1.5.10-release-891-IJ7142.45

This issue was moved by stevemessick from flutter/flutter-intellij#5558.

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@stevemessick commented on Jun 9, 2021, 10:21 PM UTC:

@the-ginger-geek Do you have a sample project that will reproduce this issue? I have not been able to reproduce it.

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@the-ginger-geek commented on Jun 10, 2021, 7:18 AM UTC:

@stevemessick I'll have to set up a project similar to the one I'm using when I get some time, my source is fintech stuff so I can't really share this specific source code.

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@the-ginger-geek commented on Jun 10, 2021, 11:21 AM UTC:

@stevemessick Here's a link to one of my repositories that I could reproduce it on

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@the-ginger-geek commented on Jun 10, 2021, 11:34 AM UTC:

Something else I noticed, if the project is open in another IDE, IE VS Code the exact same thing happens to that instance. I have to close both IDEs and open them again to get them back to a working state. Either both plugins have a bug or this is not a plugin issue.

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@stevemessick commented on Jun 10, 2021, 1:37 PM UTC:

@the-ginger-geek Thanks for the link. Yeah, I'm pretty sure this isn't a plugin issue, I'm just trying to figure out where to re-route it. It might be the Dart SDK or possibly the Flutter tool. So, having a repro case should help me determine where to move it to.

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@stevemessick commented on Jun 10, 2021, 8:26 PM UTC:

@the-ginger-geek I'm not able to reproduce this yet. I cloned farcon using 2021.1.2 (same as yours). Then I ran those three commands in the Terminal tool window. Everything was fine. I did notice one difference. After doing flutter clean my editor was marked up with errors. In your video, I did not see that happen. That suggests the analyzer may have been disconnected. Could you attach a screen shot of the Dart Analysis tool window content after doing flutter clean but before the final command?

Also, after running the final command (when your editor is lifeless) does restarting the Dart analysis server restore editor functionality? In the Dart Analysis tool window, it is the red circular arrows button at the top of the tool bar on the left side.

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@the-ginger-geek commented on Jun 11, 2021, 6:07 AM UTC:

Yes restarting the dart analysis server brings it back to life! I don't see the editor highlighting errors but it does appear in the console. If I subsequently run pub get then everything is working again.

@ghost
Copy link
Author

ghost commented Jun 14, 2021

@stevemessick commented on Jun 14, 2021, 8:49 PM UTC:

Thanks for the additional info, @the-ginger-geek. This looks like an analyzer issue, so I'll move it to that repo.

@mraleph mraleph added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Jun 15, 2021
@devoncarew
Copy link
Member

Thanks for the report! This sounds like #45996. That's been fixed and just recently merged into stable (Flutter 2.13.3). Can you update to the latest and see if that resolves the issue?

If not, you might re-test in either the beta or the dev channels.

@the-ginger-geek
Copy link

Issue has been resolved thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
Projects
None yet
Development

No branches or pull requests

3 participants