Vscode: [json] Problems loading reference with schema service

Created on 10 Mar 2020  Â·  7Comments  Â·  Source: microsoft/vscode



  • VSCode Version: 1.44.0-insider
  • OS Version: Darwin x64 19.3.0
Version: 1.44.0-insider
Commit: b0791e5236f462fbb785e9a00319705607cefb9d
Date: 2020-03-10T11:17:54.705Z (1 hr ago)
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0

Steps to Reproduce:

  1. Open any package.json or tsconfig.json file
  2. The schema will fail loading with the following error:

Problems loading reference 'schemaservice://combinedschema/schemas/package.schema.json': Unable to load schema from 'schemaservice://combinedschema/schemas/package.schema.json': Request vscode/content failed with message: cannot open schemaservice://combinedschema/schemas/package.schema.json. Detail: resource is not available.


Does this issue occur when all extensions are disabled?: Yes

Edit: I'm not using a proxy

bug json verified

Most helpful comment

Still present in the latest release for me.

Version: 1.44.0-insider
Commit: ef75c4bb445e5021065cf0012cfa2c66e55bfa16
Date: 2020-03-11T09:09:04.033Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0

All 7 comments

+1 Same
OS: Windows 10 x64

Same issue happens to me, same error message, not using a proxy, Windows 10 64 bit

I'm having the same issue.
After installing Nuxt.js, all json file get the error message inside the nuxt directory.
However, outside the nuxt directory, it does not happen.
Nuxt seems to be working fine but I'm not sure if I have to fix this problem or just ignore it.
It's a bit annoying to see the error message.

・Host OS: Windows 10
・Guest OS: Ubuntu 18.04 (Vagrant)
・VSCode: 1.44.0-insider
・Usage: SSH into Ubuntu

Similar issues are below.
・Less distracting error message for JSON schema resolution issues
・Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/package.json': connect ECONNREFUSED

Can confirm it gets fixed after switching to previous point release. Its bugged for current release only.

Still present in the latest release for me.

Version: 1.44.0-insider
Commit: ef75c4bb445e5021065cf0012cfa2c66e55bfa16
Date: 2020-03-11T09:09:04.033Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0

Hope this is fixed soon, it's quite an annoyance.

Hello,

I'm not sure it is related, but heres my problem:
{ "$ref": "file:///<absolute_path>/defs.json#/definitions/someprop" } works.
{ "$ref": "defs.json#/definitions/someprop" } doesn't work.

It is in the package.json and and the defs.json is next to it.

If I merge defs.json to package.json and try { "$ref": "#/definitions/someprop" }
then I get the following error:

$ref '/definitions/someprop' in 'vscode://schemas/settings/folder' can not be resolved.

Shall I open a new issue or will it be resolved with this?

Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:07:18.473Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrkiley picture mrkiley  Â·  3Comments

biij5698 picture biij5698  Â·  3Comments

vsccarl picture vsccarl  Â·  3Comments

omidgolparvar picture omidgolparvar  Â·  3Comments

NikosEfthias picture NikosEfthias  Â·  3Comments