Skip to content

Cannot load script if it starts with two slashes //absolute/path/to/file.dart #28143

@akshaydashrath

Description

@akshaydashrath

My flutter setup broke and the only change to my system was updating the OS. The problem appears to be in the Dart VM, ref: https://github.com/dart-lang/sdk/blob/master/runtime/bin/vmservice/loader.dart#L407

 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)

My related post on stackoverflow: http://stackoverflow.com/questions/41187802/issue-building-flutter-on-a-mac?noredirect=1#comment69577716_41187802

Dart Version: 1.21.0
OS: Mac OS 10.12.2

Note: using older versions of dart resulted in the same problem

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions