Skip to content

Comments

Add genrules to Example project#19

Merged
rockbruno merged 2 commits intospotify:mainfrom
josh-arnold-1:josh/add-gen-rule-to-example-proj-2
Jul 17, 2025
Merged

Add genrules to Example project#19
rockbruno merged 2 commits intospotify:mainfrom
josh-arnold-1:josh/add-gen-rule-to-example-proj-2

Conversation

@josh-arnold-1
Copy link
Contributor

  • Add an example GenerateDummySwiftFile genrule
  • Update HelloWorld to use 'expand_template_rule'

This genrule actually breaks indexing! You can see SourceKit LSP tries to index the genrule itself...

[11:02:04 AM] 🟨🟫⬛️ Indexing /Users/.../sourcekit-bazel-bsp/Example/HelloWorld/GenerateDummySwiftFile
[11:02:04 AM] 🟨🟫⬛️ clang: error: no input files
[11:02:04 AM] 🟨🟫⬛️ Finished with exit code 1 in 0.00619425 seconds

I'm not sure how to fix this — any help would be appreciated, thanks!
Add another example that causing this indexing error to occur

[11:16:39 AM] 🟪🟩⬛️ clang: error: no input files
[11:16:39 AM] 🟨⬜️🟨 clang: error: no input files
[11:16:39 AM] 🟪🟩⬛️ Finished with exit code 1 in 0.009771333 seconds
[11:16:39 AM] 🟨⬜️🟨 Finished with exit code 1 in 0.00974475 seconds
@josh-arnold-1 josh-arnold-1 requested a review from a team as a code owner July 17, 2025 13:33
@josh-arnold-1 josh-arnold-1 changed the title josh/add gen rule to example proj 2 Add example genrules that used to break SourceKit LSP's indexing Jul 17, 2025
@josh-arnold-1 josh-arnold-1 changed the title Add example genrules that used to break SourceKit LSP's indexing Add genrules to Example project Jul 17, 2025
@rockbruno rockbruno merged commit 762f604 into spotify:main Jul 17, 2025
1 check passed
@josh-arnold-1 josh-arnold-1 deleted the josh/add-gen-rule-to-example-proj-2 branch September 6, 2025 13:16
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