-
Notifications
You must be signed in to change notification settings - Fork 93
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
Clicking tab only does the actual tab - Tab completion not working #25
Comments
Hi @iballan, thanks for trying out Copilot for Xcode, sorry for the difficulty here. To troubleshoot further, could you enable verbose logging and send the log file |
Thank you for your quick reply! |
@iballan thanks for sharing the logs what I'm seeing there lines up with your note about Xcode extension:
Without the extension active in Xcode, it will not work well. If you could figure out what on your system is blocking the extension from being active in Xcode that should fix or at least improve the situation. |
Yep, same issue here. After upgrading to 0.28 the tab completion stopped working. |
@pvieito is the extension active (under Xcode > Editor > GitHub Copilot) for you? |
@devm33 Yes, I restarted Xcode and the Copilot service app & extension and the extension is enabled and appears in the Editor menu. But using tab does not accept the Copilot suggestion (it falls back to accepting Xcode completions or just writing a tab in the source code). |
@pvieito can you share your log file |
Thanks @pvieito! It looks like it might be failing to register your tab key event entirely. To rule things out, I'm curious if setting a key binding to the GitHub Copilot > Accept Suggestion action works or not? |
@devm33 registering the key binding looks like worked for me! Now every time I click that shortcut it worked |
@pvieito Yep I'm curious if there's anything unique about your keyboard input that make might the |
Before upgrading to version 0.28, it worked as intended as a tab. After upgrading, tab did not work for me as well, so I bound the alt + command + tab keys and it worked, but the problem is that the alt key is pressed, so full suggestion is applied unconditionally. Is there a key that allows basic suggestion and full suggestion? Additionally, regardless of key binding, the tip that appears in the editor tells you to press tab. |
Same problem here! |
@linusix @Zayox sorry the tab functionality isn't working for you. Would either of you be able to share the log ( Also, for the purpose of narrowing down the issue, if you downgrade to 0.27.* does the tab accept work again?
@linusix acknowledging this is an issue that needs to be fixed. Semi-related to #10 |
I've update from 0.27 to 0.28 just because I faced this problem but as you know it didn't fix it. Here are some logs: |
Thanks for providing logs @Zayox. Here's a build that will provide more (a lot more, will be a noisy log) debug info for the tab accept feature: https://github.com/github/CopilotForXcode/releases/download/0.28.0/GitHubCopilotForXcode_debugTab.dmg Could you try to use tab to accept with this build and then share the logs? Note: after installing from the dmg, you will need to run GitHub Copilot manually and restart Xcode. |
@devm33 Log (using GitHubCopilotForXcode_debugTab.dmg) 2024-11-11.2.45.17.2.mov |
@linusix Thank you for sharing logs and bearing with us here. It seems that Copilot for Xcode is not able to register any key presses on your system. Is it possible that there is something unique about your keyboard input either in hardware or software? As another attempt to try to get debugging information, could you try running this dmg and sharing the logs: https://github.com/github/CopilotForXcode/releases/download/0.28.0/GitHubCopilotForXcode_debugTabMore.dmg |
Hey sorry for the delayed response. |
Thanks @Zayox! Do you know if there's anything else on your system correlated with when it was working or not? Looking at the logs it appears to just stop recording key events at certain startups. If you don't mind could you try running this dmg to gather more debug logs: https://github.com/github/CopilotForXcode/releases/download/0.28.0/GitHubCopilotForXcode_debugTabMore.dmg |
Looks like v.0.29.0 didn't fix the problem :/ here are the logs: |
If you wanna contact me on discord to solve the issue, here is my discord: I'm currently available |
Hi @Zayox, sorry the 0.29.0 didn't have any fixes for this issue in it. Let me know if you're able to gather logs with this version: https://github.com/github/CopilotForXcode/releases/download/0.28.0/GitHubCopilotForXcode_debugTabMore.dmg |
@devm33 I just experienced the same issue. In my case, I do use Karabiner-Elements, but it used to work fine with it from the beginning until I noticed today. Same symptoms as reported here. Extension is enabled and has been working fine for a while. The only thing that I can think of might have influenced it is updating to MacOS 15.1.1 yesterday. Oddly, as I typed this, I tried restarting Xcode again as well as and now it works as before. I'm on 0.29. Maybe a full machine restart might help other people? |
FYI: For some reasons, I haven't faced this problem anymore since the start of the week. 🤷♂️ |
The extension works fine for me if I'm working directly at my Mac. But when using it remotely via NoMachine, TAB does not work. Defining Option+TAB in Xcode key bindings fixes it, but only when pressing Option+TAB. |
FWIW, I just hit the same issue again after upgrading Xcode (after having upgraded MacOS 15.2). A reboot of the machine fixed the issue. I'm sure there is a more granular way of fixing this, but 🤷. |
Describe the bug
Versions
Steps to reproduce
Screenshots
The result:
copilot_example.mp4
I made sure all permissions are granted
I still don't see the Github Copilot is not activated on the Editor menu:
Logs
Additional context
I tried to disable/enable all services, restart xcode, uninstall github copilot and re install it
Nothing worked for me
The text was updated successfully, but these errors were encountered: