Skip to content

Bug: invalid index store directory when using swift.split_derived_files_generationΒ #3264

@thiagohmcruz

Description

@thiagohmcruz

Description

Noticed this internally and managed to repro in main => 79f26ec1315531a8459fe95934440cb3ca3c16df.

In the indexing logs I see this failure and confirmed that the .indexstore directory is not present on disk indeed:

Image

Confirmed that the issue happens only if

common --features=swift.split_derived_files_generation

is present in the .bazelrc file.

Also noticed that this seems related to mixed_language_library since the issue goes away if I force the failing target to be a swift_library instead.

Last, it's not clear to me if this is a harmless failure or not as I see normal indexing behaviour (auto-complete, jump to def) working normally even with the .indexstore directory being non-existent.

Reproduction steps

  • Checkout main => 79f26ec1315531a8459fe95934440cb3ca3c16df
  • cd examples/integration
  • Add common --features=swift.split_derived_files_generation to examples/integration/.bazelrc
  • bazel clean --expunge
  • bazel run :xcodeproj-sim_arm64
  • open Integration.xcodeproj
  • Observe the indexing logs

Expected behavior

No indexing errors in the logs

rules_xcodeproj version

79f26ec

Xcode version

26.0.1

Bazel version

repro-ed in both 7.x and 8.x

rules_apple version

4.0.1

rules_swift version

3.1.1

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions