microsoft / microsoft/winget-cli
0x800700b7 : Cannot create a file when that file already exists
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
I am encountering the same issue as described in the previously closed #1433. However, I am using the latest version described in Environment below.
I have tried reinstalling and downgrading Microsoft.DesktopAppInstaller. The 0x800700b7 still persists.
Log entry:
2023-07-27 09:03:12.947 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\Schema\1_0\Interface_1_0.cpp(190)\WindowsPackageManager.dll!00007FFAA973A05D: (caller: 00007FFAA973FEF9) Exception(1) tid(22f0) 800700B7 Cannot create a file when that file already exists.
Steps to reproduce
winget list
winget upgrade
Expected behavior
Commands should execute without error.
Actual behavior
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x800700b7 : Cannot create a file when that file already exists.
Environment
Windows Package Manager v1.5.1881
Windows: Windows.Desktop v10.0.22621.1992
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1881.0
PowerShell 7.3.6
Windows Terminal 1.17.11461.0
Windows 11 Enterprise 22H2
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
Reproduce the failure with winget list and winget upgrade, then start from the logged location external/pkg/src/AppInstallerRepositoryCore/Microsoft/Schema/1_0/Interface_1_0.cpp(190). Done means both commands execute without the predefined-source error and 0x800700b7 message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100