Skip to content

vm-service crashes if path to flutter starts with two slashes (/) #7279

@sethladd

Description

@sethladd

http://stackoverflow.com/questions/41187802/issue-building-flutter-on-a-mac

Flutter was working just fine a few weeks ago, however it appears to be broken on my system. I cleaned my existing install and re-cloned and installed flutter, but it seems to fail with the following problem:

    Akshays-MacBook-Pro-2:~ akshaydashrath$ flutter doctor
    Downloading Dart SDK 1.21.0...
    #################################################################100.0%
    Building flutter tool...
    vm-service: Error: Unhandled exception:
    Unsupported operation: Cannot extract a non-Windows file path from a 
    file URI with an authority
    \#0      _SimpleUri._toFilePath (dart:core/uri.dart:4423)
    \#1      _SimpleUri.toFilePath (dart:core/uri.dart:4417)
    \#2      _loadFile (loader.dart:407:26)
    \#3      _handleResourceRequest (loader.dart:510:5)
    \#4      _processLoadRequest (loader.dart:941:7)
    \#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

I've recently updated MacOS to 10.12.2 apart from that I can't identify any other changes I've made that could affect the system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: regressionIt was better in the past than it is nowtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions