PCM fails on Windows when storage location is backed by OneDrive
Description
When opening the Plugin and Content Manager, I immediately get the following error:
14:09:19: Resources file hash doesn't match and will not be used. Repository may be corrupted.
14:09:19: File 'C:\Users\Roy\OneDrive\Documents\KiCad\6.0\3rdparty\cache\46f88614eade3439\resources.zip' couldn't be removed (error 2: The system cannot find the file specified.)
The folder mentioned in the error message does exist, with two files: packages.json & repository.json. I have tried to completely delete this folder and restart KiCad but it didn't help.
If I'm ignoring this message, the dialog opens, I can select plugins to install, but I get the following error (Interactive BOM HTML for example):
Downloading package url: 'https://github.com/openscopeproject/InteractiveHtmlBom/releases/download/v2.4.1/InteractiveHtmlBom_v2.4.1_pcm.zip'
Downloaded archive hash for package org.openscopeproject.InteractiveHtmlBom does not match repository entry. This may indicate a problem with the package, if the issue persists report this to repository maintainers.
Removing downloaded archive 'org.openscopeproject.InteractiveHtmlBom_v2.4.1.zip'.
Done.
Steps to reproduce
Happens for me every time I'm opening this window.
KiCad Version
Application: KiCad (64-bit)
Version: (6.0.0), release build
Libraries:
wxWidgets 3.1.5
libcurl/7.78.0-DEV Schannel zlib/1.2.11
Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Dec 24 2021 19:17:02
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.5.0
Curl: 7.78.0-DEV
ngspice: 35
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Edited by Jon Evans