question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-gen a run config for imported projects with a `lib/main.dart`

See original GitHub issue

Opening 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

  1. Create a new project: flutter create ijtest
  2. Delete IJ metadata: cs ijtest; rm ijtest.iml; rm -rf .idea
  3. 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:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

20reactions
ajharry69commented, Feb 26, 2019

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

1reaction
devoncarewcommented, Feb 15, 2017

Auto-generation if lib/main.dart exists sounds good -

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found