{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter-intellij/issues/466","repository_url":"https://api.github.com/repos/flutter/flutter-intellij","labels_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/466/comments","events_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/466/events","html_url":"https://github.com/flutter/flutter-intellij/issues/466","id":190981902,"number":466,"title":"IntelliJ opens example project without Flutter module","user":{"login":"jsiedentop","id":23655672,"avatar_url":"https://avatars.githubusercontent.com/u/23655672?v=3","gravatar_id":"","url":"https://api.github.com/users/jsiedentop","html_url":"https://github.com/jsiedentop","followers_url":"https://api.github.com/users/jsiedentop/followers","following_url":"https://api.github.com/users/jsiedentop/following{/other_user}","gists_url":"https://api.github.com/users/jsiedentop/gists{/gist_id}","starred_url":"https://api.github.com/users/jsiedentop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsiedentop/subscriptions","organizations_url":"https://api.github.com/users/jsiedentop/orgs","repos_url":"https://api.github.com/users/jsiedentop/repos","events_url":"https://api.github.com/users/jsiedentop/events{/privacy}","received_events_url":"https://api.github.com/users/jsiedentop/received_events","type":"User","site_admin":false},"labels":[{"id":414053716,"url":"https://api.github.com/repos/flutter/flutter-intellij/labels/bug","name":"bug","color":"ee0701","default":true},{"id":499907176,"url":"https://api.github.com/repos/flutter/flutter-intellij/labels/high%20priority","name":"high priority","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/flutter/flutter-intellij/milestones/14","html_url":"https://github.com/flutter/flutter-intellij/milestone/14","labels_url":"https://api.github.com/repos/flutter/flutter-intellij/milestones/14/labels","id":2139814,"number":14,"title":"0.1.7","description":"","creator":{"login":"devoncarew","id":1269969,"avatar_url":"https://avatars.githubusercontent.com/u/1269969?v=3","gravatar_id":"","url":"https://api.github.com/users/devoncarew","html_url":"https://github.com/devoncarew","followers_url":"https://api.github.com/users/devoncarew/followers","following_url":"https://api.github.com/users/devoncarew/following{/other_user}","gists_url":"https://api.github.com/users/devoncarew/gists{/gist_id}","starred_url":"https://api.github.com/users/devoncarew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devoncarew/subscriptions","organizations_url":"https://api.github.com/users/devoncarew/orgs","repos_url":"https://api.github.com/users/devoncarew/repos","events_url":"https://api.github.com/users/devoncarew/events{/privacy}","received_events_url":"https://api.github.com/users/devoncarew/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":11,"state":"open","created_at":"2016-11-16T16:56:58Z","updated_at":"2016-12-14T00:52:32Z","due_on":"2016-12-15T00:00:00Z","closed_at":null},"comments":7,"created_at":"2016-11-22T12:04:55Z","updated_at":"2016-12-14T01:14:10Z","closed_at":null,"body":"When I open one of the flutter examples in IntelliJ (tested with hello_world, hello_service and gallery), the IDE loads the Dart module but no Flutter module. \r\n\r\nIn the _Modul Settings_ (_context menu on the root node in the project tree -> Open Module Settings_) Is one problem listed: \"_Project hello_world: project SDK is not defined_\". I did't find a way to activate the Flutter Module in the IDE. \r\n\r\n1. There should be a a way, to activate Flutter Support in the IDE\r\n2. The IDE should recognize, that the Flutter module needs to be loaded. Maybe update the Flutter plugin or add a _flutter.yaml_ file in the example projects.\r\n\r\n**Informations to reproduce the issue and a workaround to activate the Flutter support:**\r\n1. Get the hello_world example:\r\n> https://github.com/flutter/flutter/tree/b9bff6a912c62c9dae5eddbaef80927655b769d7/examples/hello_world\r\n\r\n2. Open the example project in IntelliJ\r\n\r\n3. Click on \"_Get dependencies_\" in the \"_'Pub get' has not been run_\" message\r\n\r\n4. The following error appear:\r\n```\r\nWorking dir: /Users/jonas/dart/hello_world\r\n/Users/jonas/Library/flutter/bin/cache/dart-sdk/bin/pub get\r\nResolving dependencies...\r\nThe Flutter SDK is not available.\r\nDepended on by:\r\n- hello_services \r\nProcess finished with exit code 69\r\n```\r\n\r\n5. Close IntelliJ and create the file _flutter.yaml_ with this content:\r\n```\r\nname: hello_world\r\nuses-material-design: true\r\n```\r\n\r\n6. Restart IntelliJ with the hello_world example.\r\n\r\n7. The message \"_'hello_world' is not a Flutter module, devide debugging is not fully supported._\" appear. \r\n\r\n8. Click on _Change module type to Flutter and reload project_\r\n\r\n9. Run the pub action _Get dependencies_ (Should work fine without error).\r\n\r\n**Flutter doctor output:**\r\n\r\n```\r\n$ flutter doctor\r\n\r\n[✓] Flutter (on M.ac OS, channel master)\r\n\r\n    • Flutter at /Users/jonas/Library/flutter\r\n\r\n    • Framework revision a0c567f751 (5 hours ago), 2016-11-21 20:17:41\r\n\r\n    • Engine revision cea5ed2b9b\r\n\r\n    • Tools Dart version 1.21.0-dev.6.0\r\n\r\n\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK 25.0.0)\r\n\r\n    • Android SDK at /Users/jonas/Library/Android/sdk\r\n\r\n    • Platform android-25, build-tools 25.0.0\r\n\r\n    • Java(TM) SE Runtime Environment (build 1.8.0_111-b14)\r\n\r\n\r\n\r\n[✓] iOS toolchain - develop for iOS devices (Xcode 8.1)\r\n\r\n    • XCode at /Applications/Xcode.app/Contents/Developer\r\n\r\n    • Xcode 8.1, Build version 8B62\r\n\r\n\r\n\r\n[✓] IntelliJ IDEA Community Edition (version 2016.2.5)\r\n\r\n    • Dart plugin installed\r\n\r\n    • Flutter plugin installed\r\n\r\n\r\n\r\n[✓] Connected devices\r\n\r\n    • SM N9005 • eb53b4f0 • android-arm • Android 5.0 (API 21)\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter-intellij/issues/comments/266913314","html_url":"https://github.com/flutter/flutter-intellij/issues/466#issuecomment-266913314","issue_url":"https://api.github.com/repos/flutter/flutter-intellij/issues/466","id":266913314,"user":{"login":"pq","id":67586,"avatar_url":"https://avatars.githubusercontent.com/u/67586?v=3","gravatar_id":"","url":"https://api.github.com/users/pq","html_url":"https://github.com/pq","followers_url":"https://api.github.com/users/pq/followers","following_url":"https://api.github.com/users/pq/following{/other_user}","gists_url":"https://api.github.com/users/pq/gists{/gist_id}","starred_url":"https://api.github.com/users/pq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pq/subscriptions","organizations_url":"https://api.github.com/users/pq/orgs","repos_url":"https://api.github.com/users/pq/repos","events_url":"https://api.github.com/users/pq/events{/privacy}","received_events_url":"https://api.github.com/users/pq/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T01:14:10Z","updated_at":"2016-12-14T01:14:10Z","body":"Butterbar verified.\r\n\r\n![screen shot 2016-12-13 at 5 00 07 pm](https://cloud.githubusercontent.com/assets/67586/21165931/3cee57ea-c157-11e6-9845-86e77a05d6d8.png)\r\n\r\nAnd the action works.\r\n\r\nHowever it appears to be updating files in the `.idea` subdir and I don't think we want to commit those.\r\n\r\n![screen shot 2016-12-13 at 5 13 29 pm](https://cloud.githubusercontent.com/assets/67586/21165978/7514729e-c157-11e6-8819-f66faa7fb855.png)\r\n\r\nWill look a little more tomorrow.  (Ideas welcome in the meantime, though!)\r\n\r\n"}}
{"actor":{"display_login":"pq"}}