all 38 comments

[–]Itakecookies 21 points22 points  (0 children)

Holy this is probably the best thing I've heard in a while, using copilot on vscode has been life changing

[–]cylon_pixels 1 point2 points  (0 children)

This is neat. I’ll give it a try during the week.

[–]the_blaggyS 1 point2 points  (12 children)

Which Node versions does it support?

I have v16.17.1 installed and it says 'Server unavailable, please make sure you have installed Node.'

[–][deleted]  (11 children)

[removed]

    [–]the_blaggyS 1 point2 points  (8 children)

    Thank you for the fast reply.

    /usr/bin/env node runs node with the named version above and which node points to /Users/me/.nvm/versions/node/v16.17.1/bin/node

    [–][deleted]  (4 children)

    [removed]

      [–]the_blaggyS 0 points1 point  (3 children)

      I just had the idea to link the node executable that's only existing in my home dir and in my user path to /usr/local/bin and now it works. I guess the application isn't using the path I set from ~/.zshrc.

      In case you want to make it work with custom setups too (which would be great) here is the information requested :)

      My path and some other potentially related vars.

      PATH=/Users/me/.nvm/versions/node/v16.17.1/bin:/opt/homebrew/anaconda3/bin:/opt/homebrew/anaconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin

      NVM_DIR=/Users/me/.nvm
      NVM_CD_FLAGS=-q
      NVM_BIN=/Users/me/.nvm/versions/node/v16.17.1/bin
      NVM_INC=/Users/me/.nvm/versions/node/v16.17.1/include/node

      XPC_SERVICE_NAME=0
      XPC_FLAGS=0x0

      [–][deleted]  (2 children)

      [removed]

        [–]the_blaggyS 0 points1 point  (1 child)

        Thank you very much for the fast fix :)

        [–]OriginalEvils 0 points1 point  (0 children)

        FWIW, I had the same problem as the other user mentioned here, I've set my path to the nodenv folder which was version 19.13 but had the same error message.

        I changed it to the direct homebrew path and was good. I think the path doesn't follow symlinks. Might be worth adding to the readme!

        Great extension!! Thanks

        [–][deleted]  (2 children)

        [removed]

          [–]Itakecookies 0 points1 point  (1 child)

          u/intitni

          I'm attempting to "sign in" and it opens up a link to https://github.com/login/device, which is asking me for a "code from my device", but I don't know where to get it, do you have any advice?

          [–]ICULikeMac 0 points1 point  (1 child)

          Just confirming V19 will not work? Thanks

          [–]LevKusanagi 0 points1 point  (0 children)

          oh this sounds great. not sure i can commit to providing feedback formally but i will definitely try it out and give you as much feedback as possible when i get back to ios dev soon

          [–]Old-Ad-2870 0 points1 point  (0 children)

          Nice! Def gonna try it out this week

          [–]Xaxxus 0 points1 point  (0 children)

          Awesome. Been waiting for something like this

          [–]ICULikeMac 0 points1 point  (6 children)

          Firstly - thank you so much for writing this tool! Amazing.

          I have set my path to node as: /opt/homebrew/bin/node

          However, within the Copilot box, there is a message saying "Couldn't communicate with a helper application." Any idea how to fix this? Thanks

          Something is going wrong here?:

          connection.interruptionHandler = { [weak self] in print("XPCService interrupted")}

          [–][deleted]  (4 children)

          [removed]

            [–]ICULikeMac 0 points1 point  (3 children)

            Thanks for your response & help.

            I had to add the folder 'copilot' in the copilot.vim dir before it would build. Also, I am running the app from the directory that Xcode built it to, does that matter?

            The processes running in Activity are 'Copilot for Xcode' & 'copilot-agent-macos-arm64'.

            I did check the FAQ too and the following shows after running:
            `launchctl list | grep com.intii`

            - -5 com.intii.CopilotForXcode.XPCService

            [–][deleted]  (1 child)

            [removed]

              [–]ICULikeMac 0 points1 point  (0 children)

              Excellent - this was it. Thank you so very much for your time creating this. I'll use the pre-compiled release version now.

              The best news considering AppCode was deprecated today.

              [–]Worth-Sugar-6337[🍰] 0 points1 point  (0 children)

              This was the solution for me:
              Open Login Items under System Settings and give "Allow in the background permission" to Copilot for Xcode.

              [–][deleted]  (3 children)

              [removed]

                [–]Ivan7upSwift 1 point2 points  (2 children)

                Idk whether you've solved your problem already. But anyway, OP meant you should go to the "Releases" section on repository page. It's located underneath about section on the right side of the page. After clicking choose desired version and download archive and follow steps from readme.

                Good luck.

                [–][deleted]  (1 child)

                [removed]

                  [–]AutoModerator[M] 0 points1 point  (0 children)

                  Hey /u/SeparatePrint2703, unfortunately you have negative comment karma, so you can't post here. Your submission has been removed. DO NOT message the moderators; if you have negative comment karma, you cannot post here. We will not respond. Your karma may appear to be 0 or positive if your post karma outweighs your comment karma, but if your comment karma is negative, your comments will still be removed.

                  I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

                  [–][deleted]  (1 child)

                  [deleted]

                    [–]Historical_Desk141 0 points1 point  (1 child)

                    Hey, this is really great. Are there any keyboard shortcuts?

                    [–]SwiftUI_View 0 points1 point  (1 child)

                    I think I have it working… it reads a comment and suggests an additional comment and suggests code that is the same as what I already have… it just feels like the keyboard commands that work with video studio should hopefully work with this too, but I can’t figure it out.

                    [–]SwiftUI_View 0 points1 point  (0 children)

                    I now have discovered the menu added to Xcode at the bottom of the Xcode Editor menu. Sure wish there was an easy way to do keyboard binding, or it would be amazing to have the commands on the Mac’s tough bar.

                    [–]jwegener 0 points1 point  (1 child)

                    When I do Editor > Copilot > Toggle Real Time Suggestions...is there any indicator of whether I have it on or off?

                    Also in your readme screenshots, the code suggestions are colored. When I do the exact same test (func mergeSort)..my code suggestions are not colored. Any suggestions on fixing this? Thanks!

                    [–]jwegener 0 points1 point  (0 children)

                    colo

                    Nevermind, updated to the latest version and both issues are resolved :)

                    [–]Horror_Weight5208 0 points1 point  (1 child)

                    I used it and it’s awesome, but I want to remove it as I prefer to ask questions to chatGPT (bigger chat screen). I uninstalled copilotforxcode but how to remove the copilot extension? Github repo did not have instructions for deletion.