Auto-gen a run config for imported projects with a `lib/main.dart`
See original GitHub issueOpening projects with no IntelliJ metadata is a lot better with the recent fixes. Code analysis works as expected!
However, the project still has no run config, and adding one is a number of steps, incl. having to know some specific paths. Should we consider always adding a run config if there are none?
Steps to Reproduce
- Create a new project:
flutter create ijtest
- Delete IJ metadata:
cs ijtest; rm ijtest.iml; rm -rf .idea
- Open project:
idea .
-> Project analyses but cannot be run
Version info
Running flutter doctor...
[✓] Flutter (on Mac OS, channel master)
• Flutter at /Users/mit/dev/github/flutter
• Framework revision 77e53016f2 (2 hours ago), 2017-02-15 09:27:05
• Engine revision b64c88766d
• Tools Dart version 1.22.0-dev.10.6
[✓] Android toolchain - develop for Android devices (Android SDK 25.0.0)
• Android SDK at /Users/mit/Library/Android/sdk
• Platform android-25, build-tools 25.0.0
• ANDROID_HOME = /Users/mit/Library/Android/sdk
• Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.2.1, Build version 8C1002
• ios-deploy 1.9.0
[✓] IntelliJ IDEA Ultimate Edition (version 2016.3.4)
• Dart plugin version 163.13137
• Flutter plugin version 0.1.9.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to properly import Open Source projects in Flutter?
Launching lib\main.dart on SM G960F in debug mode. ... Finished with error: Please review your Gradle project setup in the android/ folder.
Read more >web_ffi | Dart Package - Pub.dev
The proxy_ffi is a simple dart file inside your project. It will conditionally import web_ffi or dart:ffi based on your platform and export...
Read more >Creating packages - Dart
Learn how to create library packages in Dart. ... Some packages have separate libraries that are meant to be imported with a prefix,...
Read more >flutter/flutter - Gitter
and it only seems to compile at ll if there's a lib/main.dart file - e.g. flutter run example/main.dart just errors out saying it...
Read more >A Carousel in That Allows one to Reorder The Contents - Morioh
In your Flutter project, add the package to your dependencies ... example/lib/main.dart import 'dart:math'; import 'package:flutter/material.dart'; import ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Kindly try going to tools>> flutter>> flutter packages get >>enter your flutter sdk path >>finish as suggested by @omar1betar from here https://github.com/flutter/flutter-intellij/issues/943
Auto-generation if lib/main.dart exists sounds good -