-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
demo运行没效果(Problem running the aop project) #26
Comments
请依次确认一下步骤:
|
@kangwang1988 遇到类似的问题 |
--verbosity=warning 这个命令参数是不是已经过期了?在/Users/Ivonhoe/Flutter/flutter/.pub-cache/git/aspectd-481463039cad1205ee94738b564f83a386165cfe 目录底下执行 flutter pub get显示: ### flutter version -v [✓] Flutter (Channel master, v1.10.15-pre.271, on Mac OS X 10.13.6 17G7024, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [!] Xcode - develop for iOS and macOS (Xcode 10.1) [✓] Android Studio (version 3.5) [!] IntelliJ IDEA Ultimate Edition (version 2019.2.1) [✓] VS Code (version 1.39.2) [✓] Connected device (1 available) |
@Ivonhoe 没有过期,你所看到的正常那个的。 |
@kangwang1988 在.pub-cache/git/aspectd-481463039cad1205ee94738b564f83a386165cfe目录下执行flutter pub get是成功的,但是有红色警告。执行pub get 一直提示Resolving dependencies.... |
--verbosity Control output verbosity.
[all] Show all output including internal tracing messages.
[error] Show only errors.
[io] Also show IO operations.
[normal] Show errors, warnings, and user messages.
[solver] Show steps during version resolution.
[warning] Show only errors and warnings.
-v, --verbose Shortcut for "--verbosity=all". 试试 pub get --verbosity=all 看看卡在哪里了。 |
flutter1.9.1版本 Falling back to three-way merge... |
@kangwang1988 |
@kangwang1988 1.7.8可以了。 |
@kangwang1988 第3步没有生成,前面的步骤可以了 |
@hhh123hh 你的dart-sdk完整获取下来了么? |
flutter_windows_v1.7.8+hotfix.4-stable\flutter.pub-cache\git\aspectd-481463039cad1205ee94738b564f83a386165cfe\snapshot这个文件夹下面是空的 |
@hhh123hh 有一个逻辑,就是patch后的flutter工具会去修改你的aspectd中pubspec.yaml里面的依赖 |
@hhh123hh 可能我没说明白,我说的是整个dart sdk的源代码,而不是你现在看到的dart-sdk对外提供的内容,这部分flutter自动下载的。你应该关注的目录是各种依赖下载后的cache目录,在windows10我的设备上,我看到的目录是: C:\Users\KyleWong\AppData\Roaming\Pub\Cache\hosted |
@hhh123hh dart sdk是通过git引入的,所以你应该要看hosted的同级目录下的git文件夹。 |
I've received several reports about the failure when running demo project provided in aspectd package. There are several things I would like to share. a. Version issue I'm trying to keep aspectd compatible with flutter in the master branch. b. Diagnosing procedures with aspectd(master) and flutter(master). b.1 Please make sure that you're using the latest commit of aspectd and flutter b.2 Patch the flutter git repository with the patch provided in aspectd: git apply --3way /Users/kylewong/Codes/Flutter/alibaba-flutter/aspectd/0001-aspectd.patch b.3 Remove the flutter tools snapshot and rebuild it kylewong@KyleWongdeMacBook-Pro flutter % rm bin/cache/flutter_tools.stamp
kylewong@KyleWongdeMacBook-Pro flutter % bin/flutter doctor -v
Building flutter tool... b.4 Upgrade the dependencies for package example(aspectd/example) and aspectd_impl(aspectd/example/aspectd_impl) kylewong@KyleWongdeMacBook-Pro example % pwd
/Users/kylewong/Codes/Flutter/alibaba-flutter/aspectd/example
kylewong@KyleWongdeMacBook-Pro example % /Users/kylewong/Codes/Flutter/alibaba-flutter/GithubMaster/flutter/bin/flutter packages upgrade
Running "flutter pub upgrade" in example... 2.5s
kylewong@KyleWongdeMacBook-Pro example % cd aspectd_impl
kylewong@KyleWongdeMacBook-Pro aspectd_impl % /Users/kylewong/Codes/Flutter/alibaba-flutter/GithubMaster/flutter/bin/flutter packages upgrade
Running "flutter pub upgrade" in aspectd_impl... 2.7s b.5 Run flutter in the example folder kylewong@KyleWongdeMacBook-Pro example % pwd
/Users/kylewong/Codes/Flutter/alibaba-flutter/aspectd/example
kylewong@KyleWongdeMacBook-Pro example % /Users/kylewong/Codes/Flutter/alibaba-flutter/GithubMaster/flutter/bin/flutter run --release --verbose When b.5 is executed and the aop code is not working as expected, you should check following steps below: b.6 The pubspec.yaml is expected to specifying the dart-sdk dependency corresponding to the dart version use in your flutter repo. # dart-sdk using by flutter repo
kylewong@KyleWongdeMacBook-Pro example % cat /Users/kylewong/Codes/Flutter/alibaba-flutter/GithubMaster/flutter/bin/cache/dart-sdk/revision
d45c3d15cb3cea0104a87697c085259666eec528(It could vary on different flutter version) b.7 The dart-sdk(git repo instead of the flutter/bin/cache/dart-sdk) is expected to be fetched successfully in git form Pay attention that the pub-cache repo could vary on different operating system.b.8 The aspectd/pubspec.lock is expected to be deleted and regenerated automatically. b.9 The aspectd/snapshot/aspectd.dart.snapshot is expected to be generated If not, please run command below to see what's wrong with it. kylewong@KyleWongdeMacBook-Pro aspectd % /Users/kylewong/Codes/Flutter/alibaba-flutter/GithubMaster/flutter/bin/cache/dart-sdk/bin/dart --snapshot=snapshot/aspectd.dart.snapshot tool/starter.dart b.10 Paste the full log for commands below so I will check what's happening: kylewong@KyleWongdeMacBook-Pro aspectd % cd example
kylewong@KyleWongdeMacBook-Pro example % /Users/kylewong/Codes/Flutter/alibaba-flutter/GithubMaster/flutter/bin/flutter doctor -v
kylewong@KyleWongdeMacBook-Pro example % /Users/kylewong/Codes/Flutter/alibaba-flutter/GithubMaster/flutter/bin/flutter run --release --verbose |
FYI @maheshmnj |
Thanks for the info I will try the above and I will let you know |
@kangwang1988 heres my
|
Duplicate of #5 |
demo运行只打了这一行log
The text was updated successfully, but these errors were encountered: