github / gh-copilot

Ask for assistance right in your terminal.
https://docs.github.com/en/copilot/github-copilot-in-the-cli
707 stars 30 forks source link

[BUG]: Got explanation, not command. Failed to send feedback #21

Open i3Cheese opened 9 months ago

i3Cheese commented 9 months ago

What happened?

Asked for a command. But was provided with parts of it. And "copy command to clipboard" copied explanation, not command. Then failed to send feedback with 404 error.

Versions

gh version 2.40.1 (2023-12-13), gh-copilot version 0.5.3-beta (2023-11-09)

Relevant terminal output


-> % gh copilot suggest "run python code periodicly"

? Allow GitHub to collect optional usage data to help us improve? This data does not include your queries.
> Yes

Welcome to GitHub Copilot in the CLI!
version 0.5.3-beta (2023-11-09)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve.

? What kind of command can I help you with?
> generic shell command

Suggestion not readily available. Please revise for better results.

? What would you like the shell command to do?
> Run python twice a day

Suggestion:

  You can use cron to run a Python script twice a day. Add the following line to your crontab configuration by running `crontab -e`:

  0 9,18 * * * python /path/to/your/script.py

  This will run the script at 9:00 AM and 6:00 PM. Adjust the time accordingly to fit your schedule.

? Select an option
> Copy command to clipboard

Command copied to clipboard!

? Select an option
> Revise command

? How should this be revised?
> run exact command first

Suggestion not readily available. Please revise for better results.

? Select an option
> Rate response

? Was this helpful?
> No

? This response is:
>

? How could we improve this response?
> Response doesnt provide full command. Only parts of it. "Copy to clipboard" copies explanations, not command.

? Do you wish to be contacted via your GitHub email address?
> Yes

✗ Error: failed to rate: failed to send detailed feedback: error sending request: internal server error, code: 404, request ID: D6AD:03D9:8B872:DFE0E:657B3F86
andyfeller commented 9 months ago

@i3Cheese : thank you for opening this issue! 🙇

And "copy command to clipboard" copied explanation, not command.

To clarify, what was the content copied to the clipboard? Was it the whole response including the explanations?

You can use cron to run a Python script twice a day. Add the following line to your crontab configuration by running `crontab -e`:

0 9,18 * * * python /path/to/your/script.py

This will run the script at 9:00 AM and 6:00 PM. Adjust the time accordingly to fit your schedule.
i3Cheese commented 9 months ago

@andyfeller As I remember it was the first line

You can use cron to run a Python script twice a day. Add the following line to your crontab configuration by running crontab -e

gorban commented 6 months ago

Bump. Mine failed to send feedback too. Still a problem.

gh-copilot version 0.5.4-beta (2024-01-04)

Error:

✗ Error: failed to rate: failed to send detailed feedback: error sending request: internal server error, code: 404, request ID: E4C8:27CF3D:42163:51AA6:65F84038

i3Cheese commented 6 months ago

I think the project is dead

mxie commented 6 months ago

@i3Cheese @gorban - I think you may have been caught during a time when there were API issues. Now that we've released v1.0.1 though, I recommend updating the extension to get the latest features and improvements.