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

Completion Sample Error: rejected promise not handled within 1 second: Error: No such branch: main. extensionHostProcess.js:148 stack trace: Error: No such branch: main. #1064

Closed
catherinelee274 opened this issue Jul 20, 2024 · 2 comments
Assignees

Comments

@catherinelee274
Copy link

Extension sample

completions-sample

VS Code version

Version: 1.91.1 (Universal)

What went wrong?

I am trying to run the completions sample. I npm run watch and then open the Extension Development Host on the extension.ts file but always run into this error when trying to call the Trigger Snippet command.

Error: No such branch: main.
extensionHostProcess.js:148
stack trace: Error: No such branch: main.
	at F.getBranch (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:935457)
	at async T.retryRun (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:1028191)
	at async T.run (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:1027795)
	at async T.getBranch (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:1016176)
	at async T.getBranchBase (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:1016462)
	at async t.GitHistoryProvider.resolveHEADMergeBase (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:945925)
	at async t.GitHistoryProvider.onDidRunGitStatus (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:940157)
extensionHostProcess.js:148```
@catherinelee274
Copy link
Author

Update:
it works now.
the issue seems to be because when I open the extension development host, the file I was attempting to run the trigger suggest on was in a different repo which is a git repo also

@catherinelee274
Copy link
Author

closd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants