git-ecosystem / git-ecosystem/git-credential-manager
Unable to Decrypt GPG File in VSCode on Ubuntu 24.04 Without First Using Terminal
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.3k
- Forks
- 2.9k
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 14
Description
Version
2.5.1+90d5f897f164a8fe07d2aa3bf7db439b0b4e03ea
Operating system
Linux
OS version or distribution
Ubuntu 24
Git hosting provider(s)
Azure DevOps
Other hosting provider
No response
(Azure DevOps only) What format is your remote URL?
Can you access the remote repository directly in the browser?
Yes, I can access the repository
Expected behavior
1. Using pass ls and pass show commands in the terminal works perfectly.
2. Running git pull in the terminal prompts me to enter the passphrase via a pop-up, and it works correctly.
3. When I use VSCode after trying these commands in the terminal, it works (likely due to caching and gpg-agent).
4. I have added export GPG_TTY=$(tty) to my ~/.bashrc.
Question:
What am I missing to make GPG decryption run directly in VSCode without having to use the terminal first?
Actual behavior
If I try to use VSCode directly without first using the terminal, it fails to decrypt the GPG file stored in the password store.
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is identified. Reproduce the failure in VSCode on Ubuntu 24.04 with version 2.5.1, then compare it with successful terminal use of pass and git pull. Done means GPG files decrypt directly in VSCode without first using the terminal, while terminal behavior remains working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, git, ubuntu, vscode
- Domain
- authentication, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100