Skip to content

[Frontend] Allow missing files when allowing compiler errors #36105

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

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

bnbarham
Copy link
Contributor

As with other compilation errors, we want to generate the swiftmodule
regardless.

@bnbarham bnbarham requested review from rintaro and CodaFi February 23, 2021 06:06
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

@rintaro this changes the old SourceKit behaviour slightly - ie. it now allows an empty primary file as well. I know this is useless for SourceKit itself, but I figured it's one less branch to maintain and doesn't cause any test failures that I saw. Does that seem okay to you?

@bnbarham bnbarham force-pushed the allow-missing-files branch from 76000a8 to 42ea4d1 Compare February 23, 2021 23:24
@bnbarham
Copy link
Contributor Author

Apparently the error on windows has a lower case, I've just changed the tests to check for just "error opening input file" instead.

@swift-ci please test

As with other compilation errors, we want to generate the swiftmodule
regardless.
@bnbarham bnbarham force-pushed the allow-missing-files branch from 42ea4d1 to bb9dd3a Compare February 24, 2021 04:13
@bnbarham
Copy link
Contributor Author

I missed two of the error checks :(

@swift-ci please test Windows platform

@bnbarham
Copy link
Contributor Author

@swift-ci please smoke test

@bnbarham
Copy link
Contributor Author

@swift-ci please smoke test Linux platform

@bnbarham bnbarham merged commit 751cd38 into swiftlang:main Feb 24, 2021
@bnbarham bnbarham deleted the allow-missing-files branch February 24, 2021 09:22
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.

3 participants