Skip to content
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

[Source compatibility suite] Sourcery failing to build - error: cannot find 'fputs' in scope #79798

Open
justice-adams-apple opened this issue Mar 5, 2025 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. source compatibility suite Flag: An issue that surfaced in the source compatibility suite

Comments

@justice-adams-apple
Copy link
Contributor

Description

Sourcery is failing to build with the following error:

Sourcery/.build/checkouts/SourceKitten/Source/SourceKittenFramework/SwiftDocs.swift:35:13: error: cannot find 'fputs' in scope
33 |             )
34 |         } catch let error as Request.Error {
35 |             fputs(error.description, stderr)
   |             `- error: cannot find 'fputs' in scope
36 |             return nil
37 |         } catch {

Reproduction

swift build --disable-sandbox --package-path Sourcery --verbose --configuration debug --build-tests -Xswiftc -swift-version -Xswiftc 5 -Xswiftc -enable-testing

Expected behavior

Expected project to pass

Environment

Apple Swift version 6.2-dev (LLVM 3a02857b159678d, Swift c91e295)
Target: x86_64-apple-macosx10.13

Additional information

https://ci.swift.org/job/swift-main-source-compat-suite-debug/1050/

@justice-adams-apple justice-adams-apple added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Mar 5, 2025
@justice-adams-apple
Copy link
Contributor Author

Updating the project revision to ca46b18d465adb522ce96b7054360a9d67016858 seemingly fixes this, I will open a pr against the source compat suite and tag the project author for review

@justice-adams-apple
Copy link
Contributor Author

This also affects SwiftLint

SwiftLint/.build/checkouts/SourceKitten/Source/SourceKittenFramework/SwiftDocs.swift:27:13: error: cannot find 'fputs' in scope
25 |             )
26 |         } catch let error as Request.Error {
27 |             fputs(error.description, stderr)
   |             `- error: cannot find 'fputs' in scope
28 |             return nil
29 |         } catch {

@compnerd compnerd added source compatibility suite Flag: An issue that surfaced in the source compatibility suite and removed triage needed This issue needs more specific labels labels Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. source compatibility suite Flag: An issue that surfaced in the source compatibility suite
Projects
None yet
Development

No branches or pull requests

2 participants