{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/21495","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/21495/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/21495/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/21495/events","html_url":"https://github.com/flutter/flutter/issues/21495","id":357722904,"node_id":"MDU6SXNzdWUzNTc3MjI5MDQ=","number":21495,"title":"Everytime I try running flutter I get an OS error","user":{"login":"nikhileshp","id":22638724,"node_id":"MDQ6VXNlcjIyNjM4NzI0","avatar_url":"https://avatars0.githubusercontent.com/u/22638724?v=4","gravatar_id":"","url":"https://api.github.com/users/nikhileshp","html_url":"https://github.com/nikhileshp","followers_url":"https://api.github.com/users/nikhileshp/followers","following_url":"https://api.github.com/users/nikhileshp/following{/other_user}","gists_url":"https://api.github.com/users/nikhileshp/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhileshp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhileshp/subscriptions","organizations_url":"https://api.github.com/users/nikhileshp/orgs","repos_url":"https://api.github.com/users/nikhileshp/repos","events_url":"https://api.github.com/users/nikhileshp/events{/privacy}","received_events_url":"https://api.github.com/users/nikhileshp/received_events","type":"User","site_admin":false},"labels":[{"id":762054188,"node_id":"MDU6TGFiZWw3NjIwNTQxODg=","url":"https://api.github.com/repos/flutter/flutter/labels/a:%20first%20hour","name":"a: first hour","color":"38d8c8","default":false},{"id":283479343,"node_id":"MDU6TGFiZWwyODM0NzkzNDM=","url":"https://api.github.com/repos/flutter/flutter/labels/severe:%20crash","name":"severe: crash","color":"900000","default":false},{"id":283480100,"node_id":"MDU6TGFiZWwyODM0ODAxMDA=","url":"https://api.github.com/repos/flutter/flutter/labels/tool","name":"tool","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-09-06T15:59:38Z","updated_at":"2018-09-06T18:48:57Z","closed_at":null,"author_association":"NONE","body":"Flutter is always struggling to upgrade its packages. \r\n\r\n```\r\nC:\\flutter\\flutter_app>flutter packages upgrade -v\r\nfatal: Not a git repository (or any of the parent directories): .git\r\nBuilding flutter tool...\r\nRunning pub upgrade...\r\n[  +31 ms] executing: [C:\\Users\\Nick\\flutter\\] git rev-parse --abbrev-ref --symbolic @{u}\r\n[  +76 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}\r\n[   +1 ms] origin/beta\r\n[        ] executing: [C:\\Users\\Nick\\flutter\\] git rev-parse --abbrev-ref HEAD\r\n[  +45 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD\r\n[   +1 ms] beta\r\n[        ] executing: [C:\\Users\\Nick\\flutter\\] git ls-remote --get-url origin\r\n[  +38 ms] Exit code 0 from: git ls-remote --get-url origin\r\n[   +9 ms] https://github.com/flutter/flutter.git\r\n[        ] executing: [C:\\Users\\Nick\\flutter\\] git log -n 1 --pretty=format:%H\r\n[  +38 ms] Exit code 0 from: git log -n 1 --pretty=format:%H\r\n[   +1 ms] 3b309bda072a6b326e8aa4591a5836af600923ce\r\n[   +7 ms] executing: [C:\\Users\\Nick\\flutter\\] git log -n 1 --pretty=format:%ar\r\n[  +37 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar\r\n[   +1 ms] 9 days ago\r\n[        ] executing: [C:\\Users\\Nick\\flutter\\] git describe --match v*.*.* --first-parent --long --tags\r\n[  +41 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags\r\n[   +1 ms] v0.7.3-0-g3b309bda0\r\n[ +170 ms] Running \"flutter packages upgrade\" in flutter_app...\r\n[  +10 ms] executing: [C:\\flutter\\flutter_app\\] C:\\Users\\Nick\\flutter\\bin\\cache\\dart-sdk\\bin\\pub.bat --verbosity=warning --verbose upgrade --no-precompile\r\n[+16555 ms] Cannot open file, path = '.\\pubspec.lock' (OS Error: Access is denied.\r\n[   +1 ms] , errno = 5)\r\n[  +46 ms] Running \"flutter packages upgrade\" in flutter_app... (completed)\r\n[  +15 ms] \"flutter upgrade\" took 16,687ms.\r\npub upgrade failed (66)\r\n\r\n#0      throwToolExit (package:flutter_tools/src/base/common.dart:26:3)\r\n#1      pub (package:flutter_tools/src/dart/pub.dart:170:5)\r\n<asynchronous suspension>\r\n#2      pubGet (package:flutter_tools/src/dart/pub.dart:104:13)\r\n<asynchronous suspension>\r\n#3      PackagesGetCommand._runPubGet (package:flutter_tools/src/commands/packages.dart:59:11)\r\n<asynchronous suspension>\r\n#4      PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:82:11)\r\n<asynchronous suspension>\r\n#5      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:356:18)\r\n#6      _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)\r\n#7      _rootRunUnary (dart:async/zone.dart:1132:38)\r\n#8      _CustomZone.runUnary (dart:async/zone.dart:1029:19)\r\n#9      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)\r\n#10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)\r\n#11     Future._propagateToListeners (dart:async/future_impl.dart:671:32)\r\n#12     Future._complete (dart:async/future_impl.dart:476:7)\r\n#13     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)\r\n#14     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)\r\n#15     _rootRun (dart:async/zone.dart:1124:13)\r\n#16     _CustomZone.run (dart:async/zone.dart:1021:19)\r\n#17     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)\r\n#18     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)\r\n#19     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)\r\n#20     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)\r\n#21     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)\r\n```\r\n\r\nflutter doctor -v\r\n\r\n```\r\nC:\\flutter\\flutter_app>flutter doctor -v\r\nfatal: Not a git repository (or any of the parent directories): .git\r\nBuilding flutter tool...\r\nRunning pub upgrade...\r\n[√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 10.0.17134.228], locale en-US)\r\n    • Flutter version 0.7.3 at C:\\Users\\Nick\\flutter\r\n    • Framework revision 3b309bda07 (9 days ago), 2018-08-28 12:39:24 -0700\r\n    • Engine revision af42b6dc95\r\n    • Dart version 2.1.0-dev.1.0.flutter-ccb16f7282\r\n\r\n[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)\r\n    • Android SDK at C:\\Users\\Nick\\AppData\\Local\\Android\\sdk\r\n    • Android NDK location not configured (optional; useful for native profiling support)\r\n    • Platform android-28, build-tools 28.0.2\r\n    • Java binary at: C:\\Program Files\\Android\\Android Studio\\jre\\bin\\java\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)\r\n    • All Android licenses accepted.\r\n\r\n[√] Android Studio (version 3.1)\r\n    • Android Studio at C:\\Program Files\\Android\\Android Studio\r\n    • Flutter plugin version 28.0.1\r\n    • Dart plugin version 173.4700\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)\r\n\r\n[√] IntelliJ IDEA Community Edition (version 2018.2)\r\n    • IntelliJ at C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2018.2.3\r\n    • Flutter plugin version 28.0.4\r\n    • Dart plugin version 182.4323.44\r\n\r\n[√] Connected devices (1 available)\r\n    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.0 (API 24) (emulator)\r\n\r\n• No issues found!\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/419202140","html_url":"https://github.com/flutter/flutter/issues/21495#issuecomment-419202140","issue_url":"https://api.github.com/repos/flutter/flutter/issues/21495","id":419202140,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTIwMjE0MA==","user":{"login":"nikhileshp","id":22638724,"node_id":"MDQ6VXNlcjIyNjM4NzI0","avatar_url":"https://avatars0.githubusercontent.com/u/22638724?v=4","gravatar_id":"","url":"https://api.github.com/users/nikhileshp","html_url":"https://github.com/nikhileshp","followers_url":"https://api.github.com/users/nikhileshp/followers","following_url":"https://api.github.com/users/nikhileshp/following{/other_user}","gists_url":"https://api.github.com/users/nikhileshp/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhileshp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhileshp/subscriptions","organizations_url":"https://api.github.com/users/nikhileshp/orgs","repos_url":"https://api.github.com/users/nikhileshp/repos","events_url":"https://api.github.com/users/nikhileshp/events{/privacy}","received_events_url":"https://api.github.com/users/nikhileshp/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T18:48:57Z","updated_at":"2018-09-06T18:48:57Z","author_association":"NONE","body":"I found a temporary solution. When I run the same command on Power Shell as an administrator it doesn't show any error."}}
{"actor":{"display_login":"nikhileshp"}}