quack-ai/companion-vscode

Github repository is not initialized.

ShivangRawat30 opened this issue · 5 comments

Bug description

When we open the quack ai extension we get an error Failed to fetch repository details. Make sure the repository exists and is public.

Minimal steps to reproduce the bug

  1. Open VS code.
  2. open a repository.
  3. open quack AI extension.

Error traceback

Error fetching repository details: AxiosError {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: ClientRequest, …}
The ghRepo is returning NULL, guidelines are undefined, repoName is empty, this is also undefined.

Environment

OS - macOS
IDE - VSCode

Hey @frgfm Please check if it is valid issue, If it is then I would love to work on this.

frgfm commented

Hi Shivang 👋

My main guess is that you opened the extension on a folder that wasn't a public repository right?

Hi Shivang 👋

My main guess is that you opened the extension on a folder that wasn't a public repository right?

I have tried for both public and private repository and still getting the error. I found that in getGitHubURLFromOutput function the regular expression is undefined.


Screenshot 2023-08-14 at 1 16 12 AM
Screenshot 2023-08-14 at 1 16 01 AM

Hey, @frgfm I've changed the regular expression to get the repository details, but there is a new error, the fetchRepoGuidelines function is calling the quack-ai backend and is returning status code 200 but response.data is an empty array.

Screenshot 2023-08-15 at 2 24 03 AM
frgfm commented

Hey there @ShivangRawat30 👋

Thanks, would you mind opening a PR with your regex modification? So that I can try to reproduce the behaviour

And about the second problem, it means there are no guidelines available yet on this repo. I'm soon gonna add automatic parsing (guidelines that won't be validated yet by maintainers)

Let me know if you have any other questions!