quack-ai / companion-vscode

VSCode extension of Quack Companion 💻 Turn your team insights into a portable plug-and-play context for code generation. Alternative to GitHub Copilot powered by OSS LLMs (Mistral, Gemma, etc.), served with Ollama.
https://docs.quackai.com
Apache License 2.0
226 stars 12 forks source link

Failed to get remote URLs. Make sure Git is installed and the repository has remotes. #69

Open jfrappier opened 7 months ago

jfrappier commented 7 months ago

Bug description

I just came across Quack and wanted to test this. I created a new GitHub repo, added a sample style guide and the web app parsed the repo and created some guidelines. I then cloned the repo locally and followed the steps from https://docs.quackai.com/getting-started/quickstart

When I open a file in the local repo and open the Quack extension I get:

No remote GitHub URL found. Failed to get remote URLs. Make sure Git is installed and the repository has remotes.

Remote list

git remote get-url origin    
https://github.com/jfrappier/test-docs.git

Tried manually setting the remotes as well (switched between SSH and HTTPS, same error).

Minimal steps to reproduce the bug

  1. Create new repo
  2. Add sample guideline doc
  3. Follow steps from https://docs.quackai.com/getting-started/quickstart

macOS Sonoma 14.3.1

Using VS Code

Version: 1.87.2
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:21:31.043Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin x64 23.3.0

git version 2.43.0

Error traceback

Failed to get remote URLs. Make sure Git is installed and the repository has remotes.

Environment

Version: 1.87.2 Commit: 863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:21:31.043Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin x64 23.3.0

frgfm commented 7 months ago

Hi @jfrappier :wave:

Apologies for your troubles! That's strange, we have a release coming that should fix a lot of bugs! However, this one isn't expected. If you open a shell in the same folder than your repo (where I supposed you opened VSCode) and run

git remote -v

What is the output? The same as what you've pasted above?

jfrappier commented 7 months ago

Hi, thanks for the reply. Essentially the same output, but for confirmation here is git remote -v. Only thing to note, the https was a manually change to see if that made a difference, originally cloned via ssh.

git remote -v
origin  https://github.com/jfrappier/test-docs.git (fetch)
origin  https://github.com/jfrappier/test-docs.git (push)

I will keep an eye out for the next release.

frgfm commented 7 months ago

Hey @jfrappier :wave:

I forgot to ping you, but we've had 2 releases since your last message. I'd be curious if you're still experiencing the same problem?

jfrappier commented 7 months ago

Thanks for the update, I should be able to test this again Thur/Fri.