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

Don't try to cleanup folders that don't exist #2210

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

Markus43
Copy link
Contributor

@Markus43 Markus43 commented Jul 18, 2024

The folders android, ios, linux, windows and macos aren't always available after flutter create for plugins. Check if they exist before cleaning them up. This is to avoid runtime errors when trying to change into non-existing folders.

Changes

Fixes #2208

Checklist

  • An issue to be fixed by this PR is listed above.
  • New tests are added to ensure new features are working. Please refer to this page to see how to add a test.
  • ./frb_internal precommit --mode slow (or fast) is run (it internal runs code generator, does auto formatting, etc).
  • If this PR adds/changes features, documentations (in the ./website folder) are updated.
  • CI is passing. Please refer to this page to see how to solve a failed CI.

The folders android, ios, linux, windows and macos aren't always available after flutter create for plugins. Check if they exist before cleaning them up. This is to avoid runtime errors when trying to chane into non-existing folders.
Copy link

welcome bot commented Jul 18, 2024

Hi! Thanks for opening this pull request! 😄

@Markus43
Copy link
Contributor Author

Just to add: On Windows, I don't see macos and ios folders - they are not created with the plugin because they are not supported on windows development hosts. Since I have used flutter config --no-enable-android, the android folder is also not created with the plugin for me. I believe this is also the case for windows and linux folders.

@fzyzcjy fzyzcjy merged commit 09d301b into fzyzcjy:master Jul 19, 2024
135 checks passed
Copy link

welcome bot commented Jul 19, 2024

Hi! Congrats on merging your first pull request! 🎉

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jul 19, 2024

Nice fix!

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jul 19, 2024

@all-contributors please add @Markus43 for code

Copy link
Contributor

@fzyzcjy

I've put up a pull request to add @Markus43! 🎉

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'flutter_rust_bridge_codegen --template plugin' fails with error: path not found
2 participants