intitni / CopilotForXcode

The first GitHub Copilot, Codeium and ChatGPT Xcode Source Editor Extension
https://copilotforxcode.intii.com
MIT License
7.84k stars 386 forks source link

[Bug]: When editing the xcstrings file, the cpu usage is abnormal. #569

Closed huangqingchao closed 2 months ago

huangqingchao commented 2 months ago

Before Reporting

What happened?

When editing the xcstrings file, the cpu usage is abnormal. Always 100% occupied. When I turn off the "CopilotForXcodeExtensionService" from the Accessibility Settings, the CPU occupancy rate returns to normal.

How to reproduce the bug.

After using this extension normally, edit the xcstrings file.

Relevant log output

No response

macOS version

14.5 (23F79)

Xcode version

15.4 (15F31d)

Copilot for Xcode version

0.33.8

intitni commented 2 months ago

Hello, I can't seem to reproduce it. Please tell me more details:

Screenshot 2024-08-30 at 12 13 32
huangqingchao commented 2 months ago

Hello, I can't seem to reproduce it. Please tell me more details:

  • How large is the xcstrings file? What specific things were you doing when you saw the issue?

.xcstrings size is 96KB;I tried to reboot the computer and only opened xcode to edit the .xcstrings file. There are only two languages ​​​​English and Chinese, Simplified in the file

  • If the file is large, can you reproduce it in a small xcstrings file?

I tried to create a .xcstrings file with only a few entries in another project, but this problem did not occur.

  • When you see the issue, please also export the spindump and share it with me. Spindump.txt

Enable CopilotForXcodeExtensionService + Edit files other than "xcstrings" WX20240903-173147

Enable CopilotForXcodeExtensionService + Edit the "xcstrings" file WX20240903-173209

Disable CopilotForXcodeExtensionService + Edit the "xcstrings" file WX20240903-173339

intitni commented 2 months ago

What happens if you disable the suggestions feature for xcstrings (it doesn't work whatever)?

Screenshot 2024-09-03 at 18 17 49 1
huangqingchao commented 2 months ago

Tried, but still the same problem. WechatIMG520

intitni commented 2 months ago

I think the cause is the seach for tab bars in Xcode.

intitni commented 2 months ago

Released in 0.34.0 beta 3

intitni commented 2 months ago

Released in 0.34.0

huangqingchao commented 2 months ago

Released in 0.34.0

After the update, the previous problem was not reproduced.