-
Notifications
You must be signed in to change notification settings - Fork 324
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
Cannot run flutter project in a subdirectory #801
Comments
Thanks for the report! Currently we do expect to have one flutter project per IntelliJ module. So, your IntelliJ project can have one or more modules; each modules would have one flutter project, with the We could potentially support other configurations (multiple flutter projects per IntelliJ module), but we find the above solution to be simple, and the convention means that less configuration is required. If you open the directory containing |
I see. The "one project having multiple flutter module" model may not work very well for our situation. We have a project root directory, which contains various dev tools, test data, regular Dart packages, as well as flutter projects importing those Dart packages. I was hoping to run the flutter projects by just adding a new run configuration of type "Flutter" and specifying the main.dart and working directory. And yes, if I open the flutter project directory as the root, then running the app seems to work fine. |
OK, that's good data, thanks for letting us know. Not certain that we'll address this, but something we'll consider as we go. |
I think this is a blocker for using IntelliJ effectively in the Fuchsia tree. It will probably matter less once we have an SDK and do more development outside of the Fuchsia tree. |
@ianloic, what's the best guide for getting set up to develop against the Fuchsia tree? I'd like to see what the layout of the source tree looks like. |
Working reworking how we define Flutter modules in IntelliJ for the upcoming plugin release - it may help out with this issue. |
Unsure if the issue linked to the same but Google/GitHub search ended up here. pasting my issue below
Digging more into the issue:
I've tried bunch solution like cleaning up the build folders, Had been struggling with same from the last couple of days without any solution. |
I Have the same problem. |
@faisalmohd83 @maelfosso any of you got solution ? I'm having same issue. |
Sorry guys, I've moved out of the project for a while. |
Steps to Reproduce
Open a parent directory which contains a flutter project in a subdirectory.
Create a run configuration with Flutter, and specify the the
subdir/lib/main.dart
as its entry point.After creating this run configuration, it cannot be used to actually run, because the run button is disabled.
Version info
The text was updated successfully, but these errors were encountered: