Skip build issues don't necessarily go away when you turn on `SKIP_ACTION = none` and `SKIP_ZERO = 1`
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.2k
- Forks
- 106
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 1
Description
Checkout https://github.com/dfabulich/skip-none-repro which includes a Swift compilation failure.
To repro
git switch initial-commit- Build the project in Xcode. It will build without error.
git switch compile-failure(adding a compile failure)- Build the project in Xcode. The Swift compiler will flag the failures and the Skip transpiler will flag them, too, with two errors and a warning.
/private/tmp/tp/skip-none-repro/Sources/SkipNoneRepro/ContentView.swift:47:24 Skip is unable to determine the owning type for member 'footnote'. This often occurs when other issues prevent Skip from matching the surrounding API call, and it may resolve when those issues are fixed. Or add the owning type explicitly (e.g. MyType.footnote)
/private/tmp/tp/skip-none-repro/Sources/SkipNoneRepro/ContentView.swift:47:43 Skip is unable to determine the owning type for member 'regular'. This often occurs when other issues prevent Skip from matching the surrounding API call, and it may resolve when those issues are fixed. Or add the owning type explicitly (e.g. MyType.regular)
/private/tmp/tp/skip-none-repro/Sources/SkipNoneRepro/ContentView.swift:48:18 Skip is unable to match this API call to determine whether it results in a View. Consider adding additional type information
git switch main(settingSKIP_ACTION=noneandSKIP_ZERO=1)- Build the project in Xcode.
Expected: Since Skip is disabled, the Skip errors should go away
Actual: The Skip errors remain
- "Clear all issues" and build.
Expected: Since Skip is disabled, the Skip errors should not return
Actual: The Skip errors come back.
The only workaround I can find to make the Skip errors go away is to Clean Build Folder, which then takes a long time to rebuild.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the skip-none-repro repository, comparing the initial-commit, compile-failure, and main branches, especially Sources/SkipNoneRepro/ContentView.swift. Reproduce the Xcode builds with SKIP_ACTION=none and SKIP_ZERO=1, including clearing issues, then trace how the Skip errors persist. Done means disabled Skip diagnostics do not return without requiring Clean Build Folder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100