{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/8606","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/8606/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/8606/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/8606/events","html_url":"https://github.com/flutter/flutter/issues/8606","id":212417167,"number":8606,"title":"Errors in powershell script update_dart_sdk ","user":{"login":"jsiedentop","id":23655672,"avatar_url":"https://avatars3.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":530417154,"url":"https://api.github.com/repos/flutter/flutter/labels/%E2%9D%96%20platform-windows","name":"❖ platform-windows","color":"003570","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-07T12:23:29Z","updated_at":"2017-03-07T20:19:56Z","closed_at":null,"body":"I'm on Windows 7 and followed the setup instructions https://github.com/flutter/flutter/wiki/Flutter-on-Windows. I'm not very firm with the power shell but I have experience with flutter on Mac.\r\n\r\nFirst of all, it was not possible to run the powershell script, cause the execution was disabled for safty reasons. I need to run the command `Set-ExecutionPolicy Unrestricted` to continue (Would be a good note to the docs).\r\n\r\nAfter that, I run flutter doctor and got some errors in `flutter\\bin\\internal\\update_dart_sdk.ps1`. The errors are in german, so I think It's not very helpful.\r\n\r\nFirst error (unknown command Start-BitsTransfer):\r\n```\r\nDie Benennung Start-BitsTransfer wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.\r\nBei C:\\d\\Source\\Dev\\flutter\\bin\\internal\\update_dart_sdk.ps1:44 Zeichen:19\r\n+ Start-BitsTransfer <<<<  -Source $dartSdkUrl -Destination $dartSdkZip\r\n    + CategoryInfo          : ObjectNotFound: (Start-BitsTransfer:String) [], ParentContainsErrorRecordException\r\n    + FullyQualifiedErrorId : CommandNotFoundException\r\n```\r\nThe solution for the first error was to add the line `Import-Module BitsTransfer` at the beginning of the script.\r\n\r\nSecond error (could not load Assemply)\r\n```\r\nAdd-Type : Typ kann nicht hinzugefügt werden. Die Assembly \"system.io.compression.filesystem\" konnte nicht gefunden wer\r\nden.\r\nBei C:\\d\\Source\\Dev\\flutter\\bin\\internal\\update_dart_sdk.ps1:47 Zeichen:9\r\n+ Add-Type <<<<  -assembly \"system.io.compression.filesystem\"\r\n    + CategoryInfo          : ObjectNotFound: (system.io.compression.filesystem:String) [Add-Type], Exception\r\n    + FullyQualifiedErrorId : ASSEMBLY_NOT_FOUND,Microsoft.PowerShell.Commands.AddTypeCommand\r\n```\r\nFor the second error I changed line 46:\r\n```\r\n#Add-Type -assembly \"system.io.compression.filesystem\"\r\n[System.Reflection.Assembly]::LoadWithPartialName(\"system.io.compression.filesystem\")\r\n```\r\nI think the `system.io.compression.filesystem` assembly was loaded from .Net Framework 4.5. Maybe it would be good to add a note to the installation instrunctions.\r\n\r\nAfter all, the update_dart_sdk.ps1 runs without errors."},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/284846517","html_url":"https://github.com/flutter/flutter/issues/8606#issuecomment-284846517","issue_url":"https://api.github.com/repos/flutter/flutter/issues/8606","id":284846517,"user":{"login":"goderbauer","id":1227763,"avatar_url":"https://avatars1.githubusercontent.com/u/1227763?v=3","gravatar_id":"","url":"https://api.github.com/users/goderbauer","html_url":"https://github.com/goderbauer","followers_url":"https://api.github.com/users/goderbauer/followers","following_url":"https://api.github.com/users/goderbauer/following{/other_user}","gists_url":"https://api.github.com/users/goderbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/goderbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goderbauer/subscriptions","organizations_url":"https://api.github.com/users/goderbauer/orgs","repos_url":"https://api.github.com/users/goderbauer/repos","events_url":"https://api.github.com/users/goderbauer/events{/privacy}","received_events_url":"https://api.github.com/users/goderbauer/received_events","type":"User","site_admin":false},"created_at":"2017-03-07T20:19:55Z","updated_at":"2017-03-07T20:19:55Z","body":"@jsiedentop About the `flutter doctor` crash you're reporting: Is that happening every single time you run `flutter doctor`? Or was that just a one-time issue?\r\n\r\n/cc @zanderso Any idea about the dart crash when writing to stdout (see stack-trace above)?"}}
{"actor":{"display_login":"goderbauer"}}