Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to know it's in a git repo #5

Closed
boblindman opened this issue Apr 10, 2023 · 6 comments
Closed

Doesn't seem to know it's in a git repo #5

boblindman opened this issue Apr 10, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@boblindman
Copy link

Windows 10, VS code 1.77.1

I keep getting this error when generating a commit message "The current directory must be a Git repository!"

I have confirmed it's a Git repo and I can make commits if I manually enter a comment. I have also established my Open IA key works,

@boblindman boblindman changed the title Doesn't seem to kow it's in a git repo Doesn't seem to know it's in a git repo Apr 10, 2023
@ParkingLotGames
Copy link

ParkingLotGames commented May 20, 2023

bumping, still the same error.
Made a simple lolcode folder to test after trying on an existing project, no dice.

Screenshot_8

@Oxicode
Copy link

Oxicode commented Jun 27, 2023

same error here!

@flavienbwk
Copy link

There is an alternative I use : https://github.com/lennartle/chadcommit

@Dowser
Copy link

Dowser commented Jul 31, 2023

Same error here on my Windows machine, when I'm using the same extension synced over to my mac working with the same repo it works great.

@dmytrobaida
Copy link
Owner

Seems like this issue on all windows machines. Fixing it in new version

@dmytrobaida dmytrobaida added the bug Something isn't working label Aug 2, 2023
dmytrobaida added a commit that referenced this issue Aug 3, 2023
…figuration for ChatGPT

* feat(README.md): add option to accept and edit generated commit via temp message file
* feat(README.md): add option to set custom ChatGPT endpoint URL
* fix(README.md): resolve issue with git on windows (Issue #5)
* feat(README.md): add option to select different ChatGPT version (Issue #6)
dmytrobaida added a commit that referenced this issue Aug 3, 2023
… fixes

* feat(README.md): add new advanced configuration for ChatGPT
* feat(README.md): add new option to accept and edit generated commit via temp message file (Thanks for help [chenweiyi](https://github.com/chenweiyi))
* feat(README.md): add option to set custom ChatGPT endpoint URL (Thanks for help [aiyogg](https://github.com/aiyogg))
* fix(README.md): fix issue with git on windows (Issue [#5](#5))
* feat(README.md): add option to select different ChatGPT version (Issue [#6](#6))
* chore(README.md): set default ChatGPT version to gpt-3.5
dmytrobaida added a commit that referenced this issue Aug 3, 2023
* implemented new project structure

* * fix(generate-ai-commit.ts): remove unnecessary await before vscode.window.showErrorMessage
* fix(generate-completion-flow.ts): remove unnecessary await before this.onError

* * chore(package.json): update openai package version to 3.3.0
* feat(package.json): add new configuration options for gptcommit
* feat(generate-ai-commit.ts): add validation for openAI.apiKey before executing command
* feat(generate-ai-commit.ts): use configuration.openAI instead of Configuration.openAI
* feat(chatgpt-msg-generator.ts): add support for customUrl in OpenAIApi configuration
* feat(chatgpt-msg-generator.ts): use configuration.openAI.gptVersion as model version
* feat(configuration.ts): add general.generator configuration option
* feat(configuration.ts): add gptVersion and customUrl options to openAI configuration
* feat(configuration.ts): add getConfiguration function to retrieve configuration values
* feat(types.ts): add DeepKey type for deep object keys

* * chore(package.json): update package.json with new configuration options
* feat(generate-ai-commit.ts): add support for generating a temporary file with commit message for approval
* fix(generate-completion-flow.ts): update onSelectMessage function signature to return edited message
* fix(chatgpt-msg-generator.ts): use configuration values for temperature and maxTokens
* feat(configuration.ts): add new configuration options for message approval method, custom endpoint, temperature, and maxTokens

* * chore(package.json): remove "Custom" option from gptcommit.general.generator enum
* fix(generate-ai-commit.ts): remove unused import and function isValidApiKey
* feat(generate-ai-commit.ts): add logging to output channel for temp file operations
* fix(generate-ai-commit.ts): throw error instead of showing error message for missing git extension
* feat(generate-ai-commit.ts): add logging to output channel for git extension activation
* fix(set-openai-api-key.ts): add logging to output channel for command start and cancel
* feat(set-openai-api-key.ts): add logging to output channel for saving API key
* fix(generate-completion-flow.ts): throw error instead of showing error message for missing staged changes
* fix(generate-completion-flow.ts): throw error instead of showing error message for no commit message generated
* fix(generate-completion-flow.ts): throw error instead of showing error message for user rejecting commit

* * chore(README.md): update appearance section with new setting
* chore(README.md): update general section with new settings
* chore(README.md): update OpenAI section with new settings
* chore(README.md): update release notes with new version
* chore(package.json): update version to 1.0.5

* * chore(README.md): update commit formatting and add new advanced configuration for ChatGPT
* feat(README.md): add option to accept and edit generated commit via temp message file
* feat(README.md): add option to set custom ChatGPT endpoint URL
* fix(README.md): resolve issue with git on windows (Issue #5)
* feat(README.md): add option to select different ChatGPT version (Issue #6)

* * chore(README.md): set default ChatGPT version to gpt-3.5-turbo-16k
* chore(package.json): update default ChatGPT version to gpt-3.5-turbo-16k
* chore(generators/chatgpt-msg-generator.ts): update defaultModel to gpt-3.5-turbo-16k
* chore(configuration.ts): update default ChatGPT version to gpt-3.5-turbo-16k

* * fix(generate-ai-commit.ts): fix saving edited commit message in openTempFileWithMessage function
* feat(generate-ai-commit.ts): add explaining header to generated commit message

* * chore(README.md): update commit formatting and add new features and fixes
* feat(README.md): add new advanced configuration for ChatGPT
* feat(README.md): add new option to accept and edit generated commit via temp message file (Thanks for help [chenweiyi](https://github.com/chenweiyi))
* feat(README.md): add option to set custom ChatGPT endpoint URL (Thanks for help [aiyogg](https://github.com/aiyogg))
* fix(README.md): fix issue with git on windows (Issue [#5](#5))
* feat(README.md): add option to select different ChatGPT version (Issue [#6](#6))
* chore(README.md): set default ChatGPT version to gpt-3.5
@dmytrobaida
Copy link
Owner

Should be fixed in version 1.0.5. Please create new issue if problem exists. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants