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

Dart: fix compilation error caused by missing includes for async functions #1650

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

pwrobeldev
Copy link
Contributor

FfiCppIncludeResolver class was not resolving includes correctly,
because certain includes were missing. Sadly, the problem was not
visible because of the order of includes in unity file.

This change:

  • adjusted functional tests to reproduce the compilation error caused by missing includes
  • implemented fix in FfiCppIncludeResolver
  • Adjusted smoke tests

FfiCppIncludeResolver class was not resolving includes correctly,
because certain includes were missing. Sadly, the problem was not
visible because of the order of includes in unity file.

This commit changes namespace in 'Async.lime' to force the early
inclusion of files related to async tests in unity file.

This way the compilation error is visible. In next commits it
will be resolved

Signed-off-by: Patryk Wrobel <[email protected]>
Certain includes were missing. It was confirmed via functional tests.
This change adjusts the class, which resolves includes for FFI code
to fix the problem.

Smoke tests have been also adjusted.

Signed-off-by: Patryk Wrobel <[email protected]>
Signed-off-by: Patryk Wrobel <[email protected]>
@pwrobeldev
Copy link
Contributor Author

Note to reviewers: the functional tests failed for the reproducer (visible in history).

@pwrobeldev pwrobeldev merged commit 2074677 into master Feb 11, 2025
19 checks passed
@pwrobeldev pwrobeldev deleted the pwrobeldev/dart-missing-includes-for-async branch February 11, 2025 09:44
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.

2 participants