Skip to content
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

flutter_rust_bridge_codegen integrate Error: Command execution failed #2481

Closed
zzyycobra1234 opened this issue Jan 6, 2025 · 6 comments
Closed
Labels
awaiting Waiting for responses, PR, further discussions, upstream release, etc bug Something isn't working

Comments

@zzyycobra1234
Copy link

zzyycobra1234 commented Jan 6, 2025

E:\Projects\flutterProjects>flutter create new_appp
Creating project new_appp...
Resolving dependencies in new_appp...
Downloading packages...
Got dependencies in new_appp.
Wrote 130 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

$ cd new_appp
$ flutter run

Your application code is in new_appp\lib\main.dart.

E:\Projects\flutterProjects>cd new_appp

E:\Projects\flutterProjects\new_appp>flutter_rust_bridge_codegen integrate
[2025-01-07T03:15:15.849Z INFO C:\Users\zhou.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\flutter_rust_bridge_codegen-2.7.0\src\library\integration\integrator.rs:37] Overlay template onto project
[2025-01-07T03:15:15.882Z INFO C:\Users\zhou.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\flutter_rust_bridge_codegen-2.7.0\src\library\integration\integrator.rs:65] Modify file permissions
[2025-01-07T03:15:15.883Z INFO C:\Users\zhou.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\flutter_rust_bridge_codegen-2.7.0\src\library\integration\integrator.rs:68] Add pub dependencies
[2025-01-07T03:15:15.884Z INFO C:\Users\zhou.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\flutter_rust_bridge_codegen-2.7.0\src\library\commands\flutter.rs:37] Execute flutter pub add rust_lib_new_appp --path=rust_builder (this may take a while)
[2025-01-07T03:15:16.375Z WARN C:\Users\zhou.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\flutter_rust_bridge_codegen-2.7.0\src\library\commands\command_runner.rs:153] command="powershell" "-noprofile" "-command" "& "fvm" "--version"" stdout= stderr=& : �޷�����fvm����ʶ��Ϊ cmdlet���������ű��ļ�������г�������ơ��������Ƶ�ƴд���������·������ȷ��·����ȷ��Ȼ
������һ�Ρ�
����λ�� ��:1 �ַ�: 3

  • & "fvm" "--version"
  • + CategoryInfo          : ObjectNotFound: (fvm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    
    
    

[2025-01-07T03:15:16.376Z INFO C:\Users\zhou.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\flutter_rust_bridge_codegen-2.7.0\src\library\commands\fvm.rs:15] Has .fvmrc but no fvm binary installation, thus skip using fvm.
[2025-01-07T03:15:19.089Z WARN C:\Users\zhou.cargo\registry\src\mirrors.ustc.edu.cn-12df342d903acd47\flutter_rust_bridge_codegen-2.7.0\src\library\commands\command_runner.rs:153] command="powershell" "-noprofile" "-command" "& "flutter" "pub" "add" "rust_lib_new_appp" "--path=rust_builder"" stdout=Resolving dependencies...
Downloading packages...
async 2.11.0 (2.12.0 available)
boolean_selector 2.1.1 (2.1.2 available)
characters 1.3.0 (1.4.0 available)
clock 1.1.1 (1.1.2 available)
collection 1.19.0 (1.19.1 available)
fake_async 1.3.1 (1.3.2 available)
leak_tracker 10.0.7 (10.0.8 available)
leak_tracker_flutter_testing 3.0.8 (3.0.9 available)
matcher 0.12.16+1 (0.12.17 available)
material_color_utilities 0.11.1 (0.12.0 available)
meta 1.15.0 (1.16.0 available)
path 1.9.0 (1.9.1 available)

  • plugin_platform_interface 2.1.8
  • rust_lib_new_appp 0.0.1 from path rust_builder
    source_span 1.10.0 (1.10.1 available)
    stack_trace 1.12.0 (1.12.1 available)
    stream_channel 2.1.2 (2.1.3 available)
    string_scanner 1.3.0 (1.4.1 available)
    term_glyph 1.2.1 (1.2.2 available)
    test_api 0.7.3 (0.7.4 available)
    vm_service 14.3.0 (15.0.0 available)
    Changed 2 dependencies!
    19 packages have newer versions incompatible with dependency constraints.
    Try flutter pub outdated for more information.
    stderr=Building with plugins requires symlink support.

Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.

Error: Command execution failed: Building with plugins requires symlink support.

Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.

Stack backtrace:
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14: BaseThreadInitThunk
15: RtlUserThreadStart

@zzyycobra1234 zzyycobra1234 added the bug Something isn't working label Jan 6, 2025
Copy link

welcome bot commented Jan 6, 2025

Hi! Thanks for opening your first issue here! 😄

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jan 6, 2025

Hi, suppose your project is in E:\Projects\flutterProjects\MyProject, then maybe try to use that folder instead of parent folder and see whether it works

@fzyzcjy fzyzcjy added the awaiting Waiting for responses, PR, further discussions, upstream release, etc label Jan 6, 2025
@zzyycobra1234
Copy link
Author

Sorry, there was a minor problem with the previous log. I've already updated it.

Hi, suppose your project is in E:\Projects\flutterProjects\MyProject, then maybe try to use that folder instead of parent folder and see whether it works

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jan 7, 2025

OK looks like the log says something:

Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.

Could you please follow the log and see whether it works

@zzyycobra1234
Copy link
Author

OK looks like the log says something:

Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.

Could you please follow the log and see whether it works

o~,Thank you

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jan 8, 2025

You are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting Waiting for responses, PR, further discussions, upstream release, etc bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants