ai-genie / chatgpt-vscode

Your best AI pair programmer in VS Code
https://marketplace.visualstudio.com/items?itemName=genieai.chatgpt-vscode
ISC License
1.21k stars 73 forks source link

Bug: Generating a commit message fails with "No git repository detected". #189

Open futuremotiondev opened 1 month ago

futuremotiondev commented 1 month ago

Verify it's not a duplicate bug report

Describe the Bug

Windows 10 Pro x64 22H2 (OS Build 19045.5011) VSCode:

Version: 1.94.2 (user setup)
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045

When I click on Genie: Generate a commit message, I get an alert saying no git repository detected.

firefox_nzQqEjCn1K

The folder is definitely a git repo:

explorer_ae4MLpaqHZ

VSCode recognizes it:

Code_VVEUxye73P

So I'm not sure what's wrong.

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

"genieai.personalizedName": "ChatGPT 4o", "genieai.openai.temperature": 0.3, "genieai.openai.maxTokens": 4000, "genieai.promptPrefix.addTests-enabled": false, "genieai.enableConversationHistory": true,

Additional context

No response

schossel commented 4 weeks ago

V 0.0.13 I have the same problem, it doesn't matter which commit I want a message for it always says "No git repository detected"

Hokken commented 2 days ago

It used to work and was a time saver, not anymore, same issue, I confirm all of the above.