Hey folks, I just ran an Extension Bisect on VSCo...
# report-bugs
d
Hey folks, I just ran an Extension Bisect on VSCode to try to figure out why my CPU was constantly pegged. Turns out it's the Graphite extension that's doing it Happy to send any logs you want from my local system to help you debug, in case it's environment specifics. I'm running Tahoe on an Apple M1 Pro
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
Hey Dan, could you let me know what version of the CLI
gt --version
and VSC extension youre running?
d
Sure
Copy code
❯ gt --version
1.7.12
Identifier
graphite.gti-vscode
Version
0.6.7
p
thanks, seems like youre beyond a version where we had addressed some performance issues. So, when you disable the extension things calm down? what other extensions do you have running? As an aside - you are running a slightly old version of the CLI that may be worth upgrading anyway. Any idea of what is spiking? ie git processes or maybe something else?
d
I'm not sure I ran Extension Bisect in VSCode, which one works like
git bisect
And the graphite extension was the one that popped out
It's the Code Helper (Plugin) process that goes nuts
I'm happy to re-enable and send logs or take a core dump or whatever
i
You may have hit the same kind of thing I did, @Dan Rumney, where graphite was spawning
git
processes over and over. I had to uninstall and wait for a fix.
You can try a
ps -ax | grep git
, and run it a few times to see if you're getting git processes spawning over and over.
d
Disabled:
Copy code
❯ ps -ax | grep git | grep -v grep
14210 ??         0:07.58 /opt/homebrew/opt/git/libexec/git-core/git fsmonitor--daemon run --detach --ipc-threads=8
47067 ??         0:01.95 /Applications/Visual Studio <http://Code.app/Contents/Frameworks/Code|Code.app/Contents/Frameworks/Code> Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/dancrumb/.vscode/extensions/github.vscode-github-actions-0.31.0/dist/server-node.js --node-ipc --clientProcessId=46124
92320 ttys000    0:00.65 /Users/dancrumb/.cache/gitstatus/gitstatusd-darwin-arm64 -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 20
63236 ttys002    0:02.85 /Users/dancrumb/.cache/gitstatus/gitstatusd-darwin-arm64 -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 20
73081 ttys003    0:28.86 /Users/dancrumb/.cache/gitstatus/gitstatusd-darwin-arm64 -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 20
I re-enabled the plugin and, currently, it's behaving nicely
If I see it get out of hand again, I'll run that again and send you the output
👍 1
if you have any hypotheses about what might be going on, I'm happy to run experiments
i
I found that it takes a while to really get wild. And it seems to be worse for me when I use claude
d
OK - good to know i don't use AI that much, but I do have Claude installed and bounce architectural ideas off it now and again, so I'll try to keep track of what preceded any issues
Tada!
Copy code
14210 ??         0:09.30 /opt/homebrew/opt/git/libexec/git-core/git fsmonitor--daemon run --detach --ipc-threads=8
24714 ??         0:00.00 (git)
24760 ??         0:00.01 git rev-parse refs/gt-fetch-head/@dan/01-06-aws
29816 ??         0:00.00 git rev-parse refs/gt-fetch-head/dan/02-27-sut-5138_initial_implementation_of_slang_bridge
35846 ??         0:00.00 git -c log.showSignature=false --no-pager log --pretty=format:%s%x00 560756249bccc399e1632bbfdbab81efb54694e4..e315e9f53d397a27e34095e11ab4a287ca065fd9 --
36573 ??         0:00.01 git --no-pager log -1 --pretty=format:%aN dan/02-20-update_turbo --
36627 ??         0:00.00 (git)
36637 ??         0:00.00 git -c log.showSignature=false --no-pager log --pretty=format:%s%x00 a2e3939750700a06908028f6c5e086a6994157f0..7de93a8b37c7bd105360a2c985a103433b7f96e5 --
36683 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI 02-26-sut-5124_implement_auth_predicates --
36689 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI dan/02-28-remove_recommendation_for_yarn_extension --
36714 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI dan/02-20-sut-5133_server_openapi_from_sga --
36739 ??         0:00.00 git --no-pager log -1 --pretty=format:%aN @dan/09-28-implement_secrets_manager --
36767 ??         0:00.01 (git)
36783 ??         0:00.01 git --no-pager log -1 --pretty=format:%aN @dan/01-06-aws --
36841 ??         0:00.00 git --no-pager log -1 --pretty=format:%aN 02-26-sut-5124_implement_auth_predicates --
45207 ??         0:00.01 (git)
45232 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI dan/02-19-sut-5112_add_support_for_import_statement --
45236 ??         0:00.00 git --no-pager log -1 --pretty=format:%aN dan/02-19-sut-5112_add_support_for_import_statement --
45293 ??         0:00.00 git -c log.showSignature=false --no-pager log --pretty=format:%s%x00 b83540908c2ea43ce7b2c2b49037b265797dd065..0829f3a3c8d5b0245bcd65ebe147356ddb9566f9 --
45325 ??         0:00.01 (git)
45365 ??         0:00.01 (git)
45831 ??         0:00.00 (git)
45848 ??         0:00.00 git -c log.showSignature=false --no-pager log --pretty=format:%s%x00 7faf66bb57f70a144e8c6b87b8c086f6a3cdf8cf..c5ed2dbcc2e09724d66ca5ee1995875a0b988d31 --
46129 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI dan/02-27-sut-5138_initial_implementation_of_slang_bridge --
46222 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI dan/02-28-remove_recommendation_for_yarn_extension --
46241 ??         0:00.00 git rev-parse --path-format=absolute --show-toplevel --git-common-dir --git-dir
46250 ??         0:00.00 git --version
46261 ??         0:00.01 git -c log.showSignature=false --no-pager log --pretty=format:%s%x00 001f768f89b9701822268b92a73e2d05b22d44fe..5636d57239822016f8c132ebf89bcf3aa1906d2d --
46272 ??         0:00.01 git --no-pager log -1 --pretty=format:%cI dan/02-19-sut-5112_add_support_for_import_statement --
46291 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI @dan/08-07-update_test_suite_thanks_cursor_ --
46308 ??         0:00.00 git --no-pager log -1 --pretty=format:%aN @dan/08-07-update_test_suite_thanks_cursor_ --
46315 ??         0:00.01 (git)
46332 ??         0:00.00 (git)
46334 ??         0:00.00 (git)
46342 ??         0:00.00 git update-ref refs/branch-metadata/@dan/04-24-add_initial_implementation_of_pagedspace_in_the_observable-cache_package 3dbd18b59b0f730c5607b3bf8688d7e1ceafdebb
46343 ??         0:00.00 git --no-pager log -1 --pretty=format:%aN dan/02-19-sut-5112_add_support_for_import_statement --
46360 ??         0:00.00 (git)
46368 ??         0:00.00 (git)
46378 ??         0:00.00 git --no-pager log -1 --pretty=format:%cI @dan/04-24-add_initial_implementation_of_pagedspace_in_the_observable-cache_package --
46394 ??         0:00.00 git --no-pager log -1 --pretty=format:%aN @dan/04-24-add_initial_implementation_of_pagedspace_in_the_observable-cache_package --
46411 ??         0:00.00 git -c log.showSignature=false --no-pager log --pretty=format:%s%x00 001f768f89b9701822268b92a73e2d05b22d44fe..cb5232444d715a4a9e671f30c736e274350aee78 --
46413 ??         0:00.00 git --no-pager log -1 --pretty=format:%aN dan/02-19-rename_model_to_entity_in_slang --
46445 ??         0:00.00 git for-each-ref --format=%(refname:short):%(objectname) --sort=-committerdate refs/heads/
46446 ??         0:00.00 git -c log.showSignature=false --no-pager log --pretty=format:%s%x00 001f768f89b9701822268b92a73e2d05b22d44fe..001f768f89b9701822268b92a73e2d05b22d44fe --
46455 ??         0:00.00 git for-each-ref --format=%(refname):%(objectname) refs/branch-metadata/
53095 ??         0:00.45 /Applications/Visual Studio <http://Code.app/Contents/Frameworks/Code|Code.app/Contents/Frameworks/Code> Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/dancrumb/.vscode/extensions/github.vscode-github-actions-0.31.0/dist/server-node.js --node-ipc --clientProcessId=52308
92320 ttys000    0:00.82 /Users/dancrumb/.cache/gitstatus/gitstatusd-darwin-arm64 -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 20
63236 ttys002    0:02.98 /Users/dancrumb/.cache/gitstatus/gitstatusd-darwin-arm64 -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 20
73081 ttys003    0:29.43 /Users/dancrumb/.cache/gitstatus/gitstatusd-darwin-arm64 -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v FATAL -t 20
This appears to have come about when I did a
gt co
from the terminal within VSCode
I couldn't say for sure that it wasn't doing this beforehand, but this is when I noticed it
i
Yeah, this seems very similar to what I was seeing. This is the last I got from @Gareth Brickman: https://graphite-community.slack.com/archives/C02DRNRA9RA/p1771362375233809?thread_ts=1770901045.252699&amp;cid=C02DRNRA9RA
d
👍
g
The root cause for these git process spawns will be fixed in
1.8.0
which we're presently testing internally 👍
🎉 1