Questions tagged [github-copilot]

GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

Per https://copilot.github.com:

GitHub Copilot is powered by Codex, the new AI system created by OpenAI. GitHub Copilot understands significantly more context than most code assistants. So, whether it's in a docstring, comment, function name, or the code itself, GitHub Copilot uses the context you've provided and synthesizes code to match. Together with OpenAI, GitHub Copilot is designed to get smarter at producing safe and effective code as developers use it.

198 questions
0
votes
0 answers

Github Co-pilot certificate issue with IntelliJ

Im having problems with logging into Github Co-Pilot from within the IntelliJ co-pilot plugin. Its without a doubt the certificate issue when im behind corporate firewall because when i try to login on an external network it works fine. I also tried…
jka_dk
  • 421
  • 1
  • 4
  • 17
0
votes
0 answers

Github copilot for html? How to get copilot to "execute" a prompt outside of a function definition?

I can't get it to work reliably, sometimes it just outputs line by line and the response does not make sense. I don't think I'm doing it right, it's a pretty simple instruction. I use it a lot in python, but not really sure how to get it to…
L Xandor
  • 1,659
  • 4
  • 24
  • 48
0
votes
0 answers

Copilot show only few row instead of complete code

I'm testing Github copilot on visual studio code, it work fine but with long code i have problem. Also if i choose show on GitHub it not show the complete code but only a part of it There is any method to see all the row of the code?```
Diego
  • 21
  • 2
0
votes
0 answers

vscode copilot shows an error while running generated test

I just write a JS like this. modules.export = { add(a, b){ return a + b; }, } it is quite simple and click Suggest a new test. describe('test add', function() { it('test add.exports', function(done) { assert.equal(add.exports(1,…
gattoman
  • 33
  • 1
  • 7
0
votes
0 answers

GitHub Copilot shows only few lines of suggestion

I'm testing GitHub Copilot in Visual Studio 2022, and it shows only a few lines of the code instead the complete code: If I click tab button it writes only this code lines. Is this a normal behavior?
rasputino
  • 691
  • 1
  • 8
  • 24
0
votes
0 answers

How to create a function in jS using Github Copilot and running that function in VS Code (OsX)

This is sort of a two-part question. I'm trying to play around with Copilot and used the beginners tutorial to reproduce the code which looks like this. // find all images without alternate text // and give them a red border function process() { …
elksie5000
  • 7,084
  • 12
  • 57
  • 87
0
votes
0 answers

What is Github copilot scanning on the computer?

I use Github copilot with my visual studio instance. While I was developping, I wanted to test a SQL request. I opened a terminal, launched psql and did my tests in it. That was garbage tests with table named like "dfoinacfqx" Back in vscode, I…
Kryx
  • 53
  • 12
0
votes
1 answer

‘GitHub Copilot’ in vscode encountered an error

The error message in the output TAB is as follows: [ERROR] [default] [2022-12-10T09:50:38.676Z] GitHub Copilot could not connect to server. Extension activation failed: "command 'rest-client.fold-response' already exists" This doesn't seem to…
0
votes
0 answers

Can github-copilot create new classes for suggestions with the Intellij Plugin

If I create an Entity class in Intellij, and then, in that file, "ask" co-pilot for a repostiory Like this: //create Repository for Book entity class It comes up with this perfectly valid solution for a name and location(but not more) // Path:…
Plaul
  • 7,191
  • 5
  • 19
  • 22
0
votes
0 answers

Github Copilot not working. no console output

For some reason Copilot ins't working on my Mac in VS Code. Does anyone have any suggestions? What I've tried restarting VS Code uninstalling and reinstalling copilot checking my Github account online to ensure I have it enabled. I'm currently on…
bzlight
  • 1,066
  • 4
  • 17
  • 43
0
votes
0 answers

Flutter cubits : `(state != null)` vs `(!isClosed)`

I have a situation in my code where after logout a bunch of cubits are failing to find the current account. I'm solving it by going in and wrapping the emit's like so: if (!isClosed) emit(theState); however, github copilot suggested the following…
Turkey
  • 346
  • 4
  • 16
0
votes
2 answers

GitHub Coptilot does not work in vscode when editing Python

I can run python scripts (.py) inside vs code, and CoPilot works fine with Powershell scripts (.ps1), however, I'm not getting any Github Copilot suggestions. The Copilot icon shows and the plugin appear to be activated. GitHub Copilot:…
mortenma71
  • 1,078
  • 2
  • 9
  • 27
0
votes
2 answers

Is there a way to extend the functionality of the Github Copilot plugin for vs code?

I want to develop a vs-code plugin that extends the functionality of GitHub CoPilot. I want to listen to code completions and reward the user with points based on the length and content of the completions made with CoPilot. Is it possible to write a…
Paul
  • 292
  • 1
  • 3
  • 7
0
votes
3 answers

Can GitHub Copilot draw diagrams?

Have used GitHub Copilot for several months, and it is great for coding and other. Just wonder, can GitHub Copilot draw diagrams? like Sequence Diagram, Design Pattern or Strategy Diagram?
yiymh
  • 25
  • 3
0
votes
0 answers

Github copilot proxy error on visual studio code

I installed github copilot in vsc and it gives me this error Sign in failed: Proxy Authentication Required ( Per il completamento della richiesta è necessaria l'autorizzazione di Forefront TMG. Impossibile accedere al filtro proxy Web. ) Is this…
Skerdi Velo
  • 121
  • 2
  • 13