Currently working on:
Abnormal Mouse for macOS | MarkInside for macOS and Windows |
Copilot for Xcode | |
Open-source projects:
Old products:
- Terrazzo for iOS A terrazzo style wallpaper generator.
The missing GitHub Copilot, Codeium and ChatGPT Xcode Source Editor Extension
Home Page: https://copilotforxcode.intii.com
License: MIT License
Currently working on:
Abnormal Mouse for macOS | MarkInside for macOS and Windows |
Copilot for Xcode | |
Open-source projects:
Old products:
Hi! I took a peek at Activity Monitor when I hadn’t been using Xcode for several hours and noticed that CopilotForXcodeExtensionService was consistently using ~5% CPU.
Here’s a sample of the process if that helps: Sample of CopilotForXcodeExtensionService.txt
And an Instruments trace: CopilotForXcode.trace.zip
It looks like most of the processing is happening inside SwiftUI but it would be great if there was a way to reduce or eliminate this CPU usage to improve battery life.
When using the Floating Widget mode, the extension gets stuck after the first suggestion appears. This happens whether real-time suggestion is enabled or disabled.
Suggestions in comment mode work fine.
First of all, thanks very much for putting this together! It's been very helpful to me and I use it daily 🙌 .
I'm finding after installing this plugin, Xcode's auto complete breaks and I can no longer use it. The autocomplete appears for a second and then disappears
Thank you @intitni and team!
Settings.app is now called "System Settings.app". Perhaps change instructions in the README to:
"From the Apple menu located in the top-left corner of your screen click "System Settings". Navigate to "Privacy & Security" then toward the bottom click "Extensions". An entry called "Xcode source Editor" with subtext "copilot" should be there. Click it and tick "Copilot".
I am using macOS Monterey and can't see the Xcode extension in "System Preferences > Extensions" — in fact, there is nothing about Xcode anywhere in that pane (I am not on Ventura, so I think I'm looking in the right place).
The rest of the app is set up correctly, I think:
Is there a way for me to install the extension manually?
If I turn on Real-time suggestion
in Copilot for Xcode
and switch to Xcode
,
the Real-time suggestion
will be turned off automatically.
After I reduce the fetch debounce
time to 0.2s, the Real-time suggestion
won't be turned off automatically anymore.
Weird.
I followed the instructions and turned on the accessibility in privacy and security. The circular button shows up in my Xcode, but there's no prompt on the right of the button.
https://ibb.co/c3yh8hP
Please check the following links first before submitting an issue.
For example, add a button in CopilotForXcode
Include the upgrade process in the README.md
i.e Do we need to remove all settings from Settings -> Privacy to relink the application to Xcode Extensions?
Otherwise, a feature request for updating the app within the currently installed version would be amazing.
fails to build with
could not find included file 'Secrets.xcconfig' in search paths
Quick thread to thank you very much for all the updates, particularly floating window and also the possibility of some chatGPT integration. It certainly makes a everything just that little bit easier. Have you considered placing a donate or buy me a coffee button for those looking to pass on some monetary thanks?
Hello, I just successfully installed Copilot (didn't have success with earlier versions), however, despite having entered the code for Copilot and having authorized the extension on GitHub, I see "not authorized".
I currently don't pay for CoPilot and unfortunately my trial expired (despite having never used it). So it might be that. But paying $10 for just finding out if it's this, or something else (and waiting for a fix, and losing these $10 for it) is no good option in my opinion.
Can you make clear what this message means? Maybe also in the FAQ?
I'd like to do it myself, if you don't mind.
I would like to contribute to CopilotForXcode!
only undefined in widget ,but complete when i click accpet button
Right now the app always uses dark UI. For those of us who prefer light mode would it be possible to add a toggle that switches the UI between light, dark, and matching the system setting?
My node is installed by nodenv(Anyenv), and install CopilotForXcode with brew cask.
which node
return /Users/username/.anyenv/envs/nodenv/shims/node
.
I write path to Path to Node, then show Server unavailable, please make sure installed Node.
refresh did not change error message.
so I tried to install Node with brew, rewrite Path to Node to /opt/homebrew/Cellar/node/19.8.1/bin/node
is fixed.
it maybe my environment, but I want to be able to specify Node with nodenv as well.
Need to find editor->copilot->get suggestion....
Can the method of use be optimized?
Having just installed and configured the CoPilotForXcode extension all works great but my experience is that I had to always select the menu options to get CoPilot suggestions/actions (maybe I did not setup everything correctly??).
Could creating some default keybindings help with this?
For some, keybindings are a very personal choice as they are often customised but I found these worked pretty well and did not conflict with any existing/standard Xcode keybindings.
CoPilot -> Get Suggestions: ⌥?
CoPilot -> Accept Suggestion: ⌥}
CoPilot -> Reject Suggestion: ⌥{
CoPilot -> Next Suggestion: ⌥>
CoPilot -> Previous Suggestion: ⌥<
Essentially using ⌥⇧ as the "access" key combination for all bindings.
Instead of adding contents in the editor for suggestions, could we use a macOS window for suggestions?
Code in the editor seems to be super disturbing.
RT~ 目前我们主要还是oc开发
The installation intructions for granting permissions requires that the app needs Accessibility permissions to work properly.
Suggestion to simplify access to the correct setting in System Settings by adding a button/control on the GUI to run a bash
command to open System Settings on the correct panel.
On macOS Ventura (and I think Monterrey too) the command is:
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"
The installation intructions for enabling the extension requires that the Copilot is added as an Xcode extension.
Suggestion to simplify access to the correct setting in System Settings by adding a button/control on the GUI to run a bash
command to open System Settings on the correct panel.
On macOS Ventura the command is:
open "x-apple.systempreferences:com.apple.ExtensionsPreferences"
NOTE: I don't have a macOS Monterrey install, these steps should be checked & verified.
On macOS Monterrey, access to the Extensions preference panel is not supported by URLScheme, may need to use AppleScript instead:
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preferences.extensions"
end tell
or using bash
osascript -e 'tell Application "System Preferences"' -e 'activate' -e 'set the current pane to pane id "com.apple.preferences.extensions"' -e 'end tell'
List of methods for opening System Settings obtained from bvanpeski - SystemPreferences
The current GUI app has a scrollable view for the entire window which causes content to scroll behind the app's Close/Minimise/Full-Screen buttons. This is not usual behaviour for a macOS app.
To re-create the bug...
Thanks for your excellent work. It's fascinating.
While building this project, I found the storyboard may still be in your trash then build failed.
C81291D52994FE6900196E12 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = ../../../../.Trash/Main.storyboard; sourceTree = "<group>"; };
I am encountering an error message when trying to set up Copilot for Xcode. Specifically, I receive the message "Couldn't communicate with a helper application" in Copilot for Xcode or whenever I attempt any action within the Xcode -> Editor -> Copilot menu
I have tried using both Xcode 14.2 and 14.3, which I installed via Xcodes. I have also attempted to reinstall both Xcode and Copilot for Xcode multiple times, but the error message persists.
The Node path is setup correctly to /opt/homebrew/bin/node
.
I'm using Copilot for Xcode 0.8.6 on the latest macOS 13.2.1
I am hoping to receive guidance on how to troubleshoot this issue and successfully set up Copilot for use in Xcode.
Any help or advice would be greatly appreciated. Thank you.
When I request "Explain" for suggestions I get this error message in the widget:
"You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys."
I saw in the install notes that I needed to have an OpenAI API Key and created one but it was never requested during the install process and I can find nowhere in the app or Xcode to enter it.
from maintainer: If the app is freezing for you, please check the 0.8.5 release
Hi,
I'm still trying to get this to work. Suggestions start appearing, but immediately the XPC service hits 100% CPU and completely stops responding.
This happens every single time, I have no idea why. Any ideas?
I hope that the version downloaded from GitHub can also support automatic updates, like Spark ?
I have used mdfind
in terminal to remove all instances of the app then reinstalled with brew and cannot seem to get xcode to find the helper application.
I get no errors under 'Copilot' in the app. The XPCService Version is listed and the status reads OK. I can also see the service running as per F.A.Q.
Any other suggestions?
Note: Somewhere it's remembering I've had the app installed previously as Input Monitoring remains selected, so this could be related. i.e Xcode is looking for another helper? Maybe?
Thank you in advance for your assistance and for all your work making this possible.
After update to 0.8.5 version widget stoped following Xcode editor when I enter full screen mode, it just stayed on Home Screen.
I'm experiencing a weird problem that on the suggestion floating window, the Accept
button doesn't work. When I click on it, nothing happens. The suggestion isn't applied to the code, and the floating window doesn't disappear either.
The reject button works as expected that no code changes and the floating window disappears.
I can accept it from Menu bar though
But since it's too inconvenient so I've set a key binding to accept it as a workaround.
Is there anybody having the same problem?
My environment:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.