intitni / CopilotForXcode

The missing GitHub Copilot, Codeium and ChatGPT Xcode Source Editor Extension
Other
7.34k stars 347 forks source link

[Bug]: Accept suggestion with Tab doesn't work when the code contains emojis #498

Closed wujianbotju closed 2 months ago

wujianbotju commented 2 months ago

Before Reporting

Describe your issue

I purchased a Plus license and activated Plus feature, but accept suggestion with Tab doesn't work. I have checked key bindings in Xcode preference, whether I set it or not, it doesn't work. When I pressed down Tab key, 4 white spaces were inserted to my code. I want help!

intitni commented 2 months ago

Please first make sure the "Accept Suggestion with Tab" toggle is on. Restart the Mac if it's already on, it can be a macOS bug.

If restarting the Mac doesn't fix this issue for you, please open Console.app, click start streaming and set the filter to

category:Service any:CopilotForXcodeExtensionService

Let me know if you see the following logs when you activate an Xcode window:

Screenshot 2024-04-18 at 23 08 59
wujianbo2-tal commented 2 months ago

@intitni I figured it out. There is nothing with toggle or macOS, it is emoji text. If your code contains any emoji text, "Accept suggestion with Tab" won't work. For example, if I wrote one line of code: fileprivate var profileBgView: UIImageView! /// 🎓 "Accept suggestion with Tab" stopped working. Please fix it.

intitni commented 2 months ago

Interesting, I will convert it into a bug.

intitni commented 2 months ago

Released in 0.32.3 beta

intitni commented 2 months ago

Released in 0.32.3