Skip to content

Add a few more arguments to allow errors during indexing #1384

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 31, 2024

I noticed that we were missing a bunch more arguments (in particular for clang index invocations), while diagnosing rdar://129071600, which is fixed by passing -experimental-allow-module-with-compiler-errors to the Swift index invocations.

rdar://129071600

I noticed that we were missing a bunch more arguments (in particular for clang index invocations), while diagnosing rdar://129071600, which is fixed by passing `-experimental-allow-module-with-compiler-errors` to the Swift index invocations.

rdar://129071600
@ahoppen ahoppen requested review from bnbarham and hamishknight May 31, 2024 22:39
@ahoppen ahoppen requested a review from benlangmuir as a code owner May 31, 2024 22:39
@ahoppen
Copy link
Member Author

ahoppen commented May 31, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 44c60a2 into swiftlang:main Jun 1, 2024
3 checks passed
@ahoppen ahoppen deleted the allow-modules-with-errors-when-indexing branch June 1, 2024 04:24
Comment on lines -433 to -437
let removeFrontendFlags = [
"-experimental-skip-non-inlinable-function-bodies",
"-experimental-skip-all-function-bodies",
]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to remove these for indexing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They would presumably only be there if we added them, which we're currently. not. Probably doesn't hurt to keep anyway though.


func testImportPreparedModuleWithFunctionBodiesSkipped() async throws {
// This test case was crashing the indexing compiler invocation for Client if Lib was built for index preparation
// (using `-enable-library-evolution -experimental-skip-all-function-bodies -experimental-lazy-typecheck`) but x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x?

Comment on lines -433 to -437
let removeFrontendFlags = [
"-experimental-skip-non-inlinable-function-bodies",
"-experimental-skip-all-function-bodies",
]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They would presumably only be there if we added them, which we're currently. not. Probably doesn't hurt to keep anyway though.

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