Skip to content

Throws an Error when used without Git #453

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

Open
lishaduck opened this issue Mar 14, 2025 · 0 comments
Open

Throws an Error when used without Git #453

lishaduck opened this issue Mar 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@lishaduck
Copy link

Describe the bug
When using a VCS like JJ, the extension crashes with "Unable to Connect to the GitHub API, please check your internet connection."

To Reproduce
Steps to reproduce the behavior:

  1. Put git.disabled in your .vscode/settings.json
  2. Open actions pane

Expected behavior
It shouldn't require the Git extension, only provide optional features (like current branch).

Screenshots

2025-03-14 12:38:40.980 [error] Error: Git model not found
    at s.getAPI (/Users/dukese01/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:805076)
    at new _d (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2190:26346)
    at Function.createProvider (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2190:26938)
    at gw (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2190:32572)
    at kf (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2526:6481)
    at G4 (/Users/dukese01/.vscode/extensions/github.vscode-pull-request-github-0.106.0/dist/extension.js:2526:7586)

Extension Version
v0.27.1

Additional context
Feel free to close as wontfix, I know this isn't exactly the recommended workflow :)
As I think about it, can you even figure out the connected repo without Git? IDK.

@lishaduck lishaduck added the bug Something isn't working label Mar 14, 2025
@lishaduck lishaduck changed the title Throws an Error Throws an Error when used with Git Mar 14, 2025
@lishaduck lishaduck changed the title Throws an Error when used with Git Throws an Error when used without Git Mar 14, 2025
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
Status: Backlog 🗒
Development

No branches or pull requests

1 participant