You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[pigeon] StandardFileSystem only supports file:* and data:* URIs #68196
[√] Flutter (Channel stable, 1.20.4, on Microsoft Windows [Version 10.0.18362.1139], locale zh-CN)
• Flutter version 1.20.4 at D:\SoftWare\Flutter\flutter-1.20.4
• Framework revision fba99f6cf9 (4 weeks ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at D:\SoftWare\Android\SDK
• Platform android-29, build-tools 29.0.3
• Java binary at: D:\SoftWare\Android\AndroidStudio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed
instructions.
[√] Android Studio (version 4.0)
• Android Studio at D:\SoftWare\Android\AndroidStudio
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[code sample]
pigeons/message.dart
import 'package:pigeon/pigeon.dart';
class SearchRequest {
String query;
}
class SearchReply {
String result;
}
@HostApi()
abstract class Api {
SearchReply search(SearchRequest request);
}
Hi @ipipip1735
Looks like you have a special character in your path
Can you please change your path and try again?
I am not getting the same error using your code repository
Declare dart API for platform(Android / iOS) in .dart file
there is an error using flutter pub run pigeon.
in windows 10, flutter pub run pigeon creates a .dart file in Windows's temporary directory.
it seems that import absolute path is incorrect syntax in temp .dart created.
compiler says StandardFileSystem only supports file:* and data:* URIs
there is no example using import absolute path in doc
i try to use / as Path Delimiter, but it doesn't work.
@creativecreatorormaybenot don't worry about it, we need to get Windows CI tests at some point. Not your fault we don't have those yet. I'll get a windows machine setup later today, I'm sure it's something silly.
PR is up for review that fixes this. It turns out that Dart on windows didn't like import statements that use backslashes. I would have expected that to work. It might be that different versions of dart behave differently.
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.
Activity
TahaTesser commentedon Oct 15, 2020
Hi @ipipip1735
Can you please provide your
flutter doctor -vandflutter run --verboselogs, and a minimal complete reproducible code sample?Thank you
ipipip1735 commentedon Oct 15, 2020
flutter doctor -v
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[code sample]
pigeons/message.dart
[Reproducible Example]
https://github.com/ipipip1735/one.git
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[Error]
TahaTesser commentedon Oct 16, 2020
Hi @ipipip1735

Looks like you have a special character in your path
Can you please change your path and try again?
I am not getting the same error using your code repository
ipipip1735 commentedon Oct 16, 2020
Create flutter plugin

Declare dart API for platform(Android / iOS) in .dart file
there is an error using
flutter pub run pigeon.in windows 10,
flutter pub run pigeoncreates a .dart file in Windows's temporary directory.it seems that
import absolute pathis incorrect syntax in temp .dart created.compiler says
StandardFileSystem only supports file:* and data:* URIsthere is no example using
import absolute pathin doci try to use

/as Path Delimiter, but it doesn't work.ipipip1735 commentedon Oct 16, 2020
in youtube, i find no video about making API files for android/iOS with pigeon. it seems that pigeon isn't a well-known plugin.
TahaTesser commentedon Oct 19, 2020
Trying on WIndows, I am getting the following error with your project
Same as here #67227 (comment)
CC @gaaclarke
creativecreatorormaybenot commentedon Oct 19, 2020
I am wondering if I introduced this 🤔
I find it strange that the implementation was working for me on Windows when I made #216, however, now I also see this error.
gaaclarke commentedon Oct 19, 2020
@creativecreatorormaybenot don't worry about it, we need to get Windows CI tests at some point. Not your fault we don't have those yet. I'll get a windows machine setup later today, I'm sure it's something silly.
gaaclarke commentedon Oct 19, 2020
PR is up for review that fixes this. It turns out that Dart on windows didn't like import statements that use backslashes. I would have expected that to work. It might be that different versions of dart behave differently.
gaaclarke commentedon Oct 20, 2020
published fix in 0.1.13
ipipip1735 commentedon Oct 20, 2020
if the same issue still exists when you update the lastest pigeon, also try to the following way.
1.locate pigeon.dart.
on windows:
Your FlutterSDK\.pub-cache\hosted\pub.dartlang.org\pigeon-0.1.13\bin\pigeon.dart2.modify pigeon.dart with hard code.
from:
to:
here, absolute path begins with
/. such as:import '/E:/Program/AndroidStudio/Flutter/FTA/flutter_plugin_one/pigeons/message.dart';run
flutter cleanre-add dependency in pubspec.yaml, then
flutter pub getif
ios/Runner/and./android/app/doesn't exist in skeleton files, make folders.iOS:
ios/RunnerAndroid:
android/src/main/java/dev/flutter/pigeon/run the following command:
updating to 0.1.13 doesn't work for me, so i have to use hard code.
hope this is helpful to you.
gaaclarke commentedon Oct 20, 2020
@ipipip1735 I think there were 2 issues, only one got fixed.
Can you verify that pigeon works if the input file is on the same drive as your temp directory (probably c:)? We have an issue for that here #68583
github-actions commentedon Aug 11, 2021
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 -vand a minimal reproduction of the issue.