-
Notifications
You must be signed in to change notification settings - Fork 716
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
Fix FFI example fails to find dependent package test_utils
#3894
Comments
Hi @igouy, thanks again for opening an issue. I'm curious, did you just install the linked files in the instructions? Currently they are meant as more of an example to loosely follow and understand, not necessarily as a template. Therefore for testing purposes, it require files elsewhere in the samples repository. I'm thinking we can make it clear it, that to test this example, you should start by cloning the samples repository and working on it from there. That way no files are missed and its easier than downloading files one by one. Then adding a comment in the For your purposes, if you don't want to clone the entire I'll work on those improvements, thanks again! |
Yes I (not ironically) "literally" followed the instructions.
It's hello world! Make it so I can copy and paste stuff into a terminal window and it just works. |
Thanks for clarifying! I'll see if we can move everything within the directory to avoid the external directory dependency, making it easier to just copy and paste from the sample you want to use. |
@johnpryan : This looks like an error with the sample in the pubspec.yaml at line 22. It points to |
test_utils
The test_utils package is used for testing the sample. There might be a better way to test the sample without causing confusion. |
test_utils
test_utils
Fixes #3894 Expands on this issue by updating links to code examples, updating style
Page URL
https://dart.dev/guides/libraries/c-interop#building-and-running
Page source
No response
Describe the problem
Expected fix
I expect "an example of building the dynamic library and executing the Dart app" to work when followed.
The "hello_world example has the following files" does not mention "../test_utils"
Additional context
No response
The text was updated successfully, but these errors were encountered: