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

error when generate a commit message

Open rafarosa92 opened this issue 1 year ago • 10 comments

Verify it's not a duplicate bug report

Describe the Bug

When I use the command to generate a commit message the error "An error occurred. a.diff is not a function" is thrown image

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

I'm using model gpt-4-1106-preview

Additional context

No response

rafarosa92 avatar Jan 04 '24 22:01 rafarosa92

This bug seems to happen when the github copilot extension is installed.

sannwao avatar Jan 19 '24 01:01 sannwao

I haven't installed the github copilot extension, but the same error occurs.

shsh26 avatar Jan 26 '24 04:01 shsh26

When I upgraded to the latest version of VS Code, this issue appeared. The current version of VS Code is 1.86.0.

liukun-lk avatar Feb 04 '24 01:02 liukun-lk

I have the same issue

marcopausini avatar Feb 09 '24 17:02 marcopausini

This is still an issue. Are there any further suggestions? My VS Code version is 1.86.1. This issue seemed to have happened when OpenAI released their new gpt-4-0125-preview model.

I've uninstalled and reinstalled and still get the error. I've also done the same, but between reinstalling, went to the %USERPROFILE%\.vscode\extensions directory and deleted the GenieAI folder. Still the same error appears - and my API key was remembered so I think even then there are left over packages somewhere.

Looks like for the time being I'll have to write my own commit messages 😭😂

Xanph avatar Feb 11 '24 15:02 Xanph

Same error here,

VScode Details - Version: 1.86.1 Node.js: 18.17.1 OS: Linux x64 6.5.0-15-generic snap

ogiste avatar Feb 12 '24 12:02 ogiste

Same error here

Version: 1.86.1 Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Linux x64 6.7.4-arch1-1

Sigmanor avatar Feb 16 '24 22:02 Sigmanor

I think this thread should contain the exact error message (with the misspelling), so people searching for the error actually get directed here: An error occured. a.diff is not a function

joakimc avatar Feb 20 '24 16:02 joakimc

Bump, exact issue I'm getting. Additionally the Lightning Bolt in the commit message box is also missing. I did notice that there is another Generate Commit Message (Experimental) option in the menu which asks for my OpenAI api key which I don't remember being there before. I also did not install CoPilot.

Version: 1.86.2
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 6.5.0-18-generic

moryw avatar Feb 20 '24 22:02 moryw

You can temporarily use the command Ctrl+Shift+P to input "Genie: Generate a commit message" to get the commit message, and wait for the updated version.

DummerYou avatar Apr 02 '24 08:04 DummerYou

I think this thread should contain the exact error message (with the misspelling), so people searching for the error actually get directed here: An error occured. a.diff is not a function

This should now be fixed in v0.0.11 Please update your extension.

Visual Studio Code has disabled access to quick action button in the textbox. Instead you could use:

  1. ctrl+shift+p and run Genie: Generate a commit message command
  2. Or use the menu item under the source control like this:

image

genieai-info avatar Jun 16 '24 15:06 genieai-info