Skip to content

[pigeon] 0.1.13 Windows only supports file:* and data:* URIs #68583

Closed
flutter/packages
#233

Description

Steps to Reproduce

@gaaclarke I tried to run pigeon: 0.1.13 after your flutter/packages#230 fix PR. However, the issue still appears for me - now just a little bit different 😅

D:\creativecreatorormaybenot\microphone\microphone>flutter pub run pigeon --input D:/creativecreatorormaybenot/microphone/microphone/pigeons/messages.dart
Unhandled exception:
IsolateSpawnException: Unable to spawn isolate: /C:/..AppData/Local/Temp/ec1294b4/_pigeon_temp_.dart:1:8: Error: Error when reading 'd:/creativecreatorormaybenot/microphone/microphone/pigeons/messages.dart': StandardFileSystem only supports file:*
 and data:* URIs
import 'D:\/creativecreatorormaybenot/microphone/microphone/pigeons/messages.dart';
       ^
Instance of '_StringStackTrace'pub finished with exit code 255

I am not sure if it is D:\/ or something else, however, I bet that it is because the import is an absolute path for me.

Versions

pigeon: 0.1.13
Flutter 1.23.0-18.0.pre • channel dev
Dart 2.11.0 (build 2.11.0-213.0.dev)

beta

As you can see above, this happened on the dev channel. I will try on a different machine running beta and test it there as well.

Activity

  1. creativecreatorormaybenot commented on Oct 20, 2020

    @creativecreatorormaybenot
    ContributorAuthor

    Tested again on a different Windows machine running beta:

    Flutter 1.23.0-18.1.pre • channel beta
    Dart 2.11.0 (build 2.11.0-213.1.beta)
    

    I have the same issue there.

  2. gaaclarke commented on Oct 20, 2020

    @gaaclarke
    Member

    When we first had this problem i suspected the windows drives might be a problem. If your source file is on drive D and the temp directory is on drive C I'm not sure that windows can make a relative path that would hop drives and that Dart would recognize. We can probably just eliminate the usage of the temp directory. Thanks for the heads up.

  3. creativecreatorormaybenot commented on Oct 23, 2020

    @creativecreatorormaybenot
    ContributorAuthor

    I can confirm that this has been fixed in 0.1.14.

  4. github-actions commented on Aug 10, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.platform-windowsBuilding on or for Windows specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions