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

Very high CPU usage after adding the plugin to my Swift Package #4

Closed
vrijmaCoffeeIT opened this issue Sep 16, 2022 · 4 comments
Closed

Comments

@vrijmaCoffeeIT
Copy link

Whenever I add the Swift Package Plugin to my Swift Package Xcode CPU maxes out and I basically can't edit any code anymore because it lags constantly. I have found other people having the same issue with other Plugins as well.

For instance here with SwiftGenPlugin
SwiftGen/SwiftGenPlugin#2

In this issue someone refers to issues with this SwiftLintPlugin as well. They say it might have something to do with a remote artifactbundle. I don't know what that means and how to resolve the issue. Unfortunately this means for me that the plugin currently is unusable.

I have tested it and the plugin itself works fine. I am seeing al my linting issues in Xcode properly whenever I build.

I have tested this on the official Xcode 14.0 release:
Version 14.0 (14A309)

@lukepistrol
Copy link
Owner

lukepistrol commented Sep 16, 2022

Interesting, I never had issues yet but I will try to replicate the issue on my machines.

@vrijmaCoffeeIT
Copy link
Author

I am using macOS 12.5.1 (21G83) on MacBook Pro (16-inch, 2019) so not an M1 Mac. In case that is related to the issue somehow

@simba909
Copy link
Contributor

This is an issue with Xcode 14 which seems to be fixed as of Xcode 14.1. See this thread I opened on the official SPM Slack for reference (and feedback from Apple engineers): https://swiftpm.slack.com/archives/C03KDH2BQUD/p1662193380203299

@lukepistrol
Copy link
Owner

I can confirm that this will be resolved in Xcode 14.1

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

No branches or pull requests

3 participants