vscode-xml: Error downloading external schemas
I keep getting an occasional error when vscode xml is trying to download external schemas:
Error while downloading 'http://www.w3.org/2001/xml.xsd' to /home/mike/.lsp4xml/cache/http/www.w3.org/2001/xml.xsd.
I’ve no doubt that our company networking could be at fault, but is there an easy way to force vscode to retry downloading an individual schema? If I delete the local cache under ~/.lsp4xml
and restart vscode, it will re-download them. However, I’ll often hit the same problem again.
Thanks
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 15 (4 by maintainers)
Hello , I managed to make this error disappear by putting https instead of http on the urls of maven instances: <project xmlns=“### https😕/maven.apache.org/POM/4.0.0” xmlns:xsi=“### https😕/www.w3.org/2001/XMLSchema-instance” Thanks
For people who don’t know where
xml.server.vmargs
should be set invscode
, it’s likely to be placed under~/.config/Code/User/settings.json
on Linux. And the proxy host, the user name, and the encrypted password should be the same as~/.m2/settings.xml
. You store your encrypted master password here~/.m2/settings-security.xml
. You should have set it up otherwisemvn
wouldn’t be able to get through the proxy either.You can find the official maven page to encrypt your master password and proxy password.