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

Delay When Executing SweetPad Commands in Cursor/VS Code #66

Open
rudrankriyam opened this issue Nov 4, 2024 · 1 comment
Open

Delay When Executing SweetPad Commands in Cursor/VS Code #66

rudrankriyam opened this issue Nov 4, 2024 · 1 comment

Comments

@rudrankriyam
Copy link

Hi!
I have noticed there is some delay (3 to 5 seconds) when executing the commands, going from:

Executing task: sweetpad: build 

to

🚀 Executing command:
xcodebuild -scheme Meshing -configuration Debug -workspace /Users/rudrankriyam/Downloads/Meshing/Meshing.xcodeproj/project.xcworkspace -destination platform\=iOS\,id\=00008140-000104303633001C -resultBundlePath '/Users/rudrankriyam/Library/Application Support/Cursor/User/workspaceStorage/c26896c610692a109a35c94975a16cde/sweetpad.sweetpad/bundle/Meshing' -allowProvisioningUpdates build

Do you know what can be the reason behind this?

@rudrankriyam rudrankriyam changed the title Delay in Executing Commands Delay When Executing SweetPad Commands in Cursor/VS Code Nov 4, 2024
@hyzyla
Copy link
Collaborator

hyzyla commented Nov 17, 2024

Hello! Before performing an actual "build" action, the extension tries to detect schemes, configurations, and build settings by executing the xcodebuild -showBuildSettings and xcodebuild -list commands. I think the slowdown comes from these commands because, when I've executed them for the first time, I also noticed that they run slowly. Of course, the results are cached for subsequent calls, but unfortunately, the first execution will always be slow.

One way to improve this is by parsing the files manually, but I’m not sure I’m ready to commit to this. You can also can debug this by setting log level to the "debug" in .vscode/settings.json and see all comands that extension executes:

{
  "sweetpad.system.logLevel": "debug"
}

CleanShot 2024-11-17 at 19 48 56@2x

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

2 participants