-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Could not get cursor info - Analyze error (with Xcode 12) #3365
Comments
Adding example |
Thanks for reporting this so quickly after release. I’ll look into what might not be working for your project. |
I have tried older Swiftlint version (0.39.2) and result is the same. I worry the reason is Xcode 12, I am pretty sure analyze was working fine before Xcode update. |
Yes, I'm digging into this. It's an Xcode 12 issue, but the project you shared has also highlighted that we're incorrectly marking some SwiftUI declarations as unused, but they're used by the tooling or runtime (e.g. |
When you get a chance could you please try the master branch on your projects to see if everything works as you'd expect? Thanks! |
Hi. I can confirm it works now fine. No errors / warnings and |
New Issue Checklist
Describe the bug
Running
swiftlint analyze
does not detect issues, but shows errorCould not get cursor info
. It can be reproduced with very simple freshly generated Xcode project (I have created SwiftlintExample project and added AnalyzeClass.swift with unused import and unused class to trigger detection).$ xcodebuild -project SwiftlintExample.xcodeproj -scheme SwiftlintExample > xcodebuild.log
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.40.3If so, paste their relative paths and respective contents.
xcodebuild -version
)? Xcode 12.0 / Build version 12A7209echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: