companion-vscode icon indicating copy to clipboard operation
companion-vscode copied to clipboard

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

Open jfrappier opened this issue 10 months ago • 4 comments

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

jfrappier avatar Mar 25 '24 13:03 jfrappier

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?

frgfm avatar Mar 26 '24 18:03 frgfm

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.

jfrappier avatar Mar 26 '24 21:03 jfrappier

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?

frgfm avatar Apr 02 '24 15:04 frgfm

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

jfrappier avatar Apr 03 '24 12:04 jfrappier