Python-vscode icon indicating copy to clipboard operation
Python-vscode copied to clipboard

configuration.jsonValidation.url

Open AlanConstantine opened this issue 4 years ago • 4 comments

I got an error notification with [tht13.python]: 'configuration.jsonValidation.url' must be an absolute URL or start with './' to reference schemas located in the extension. when I using vscode.

I have found and changed jsonValidation to "jsonValidation": [ { "fileMatch": ".condarc", "url": "./schemas/condarc.json" }, { "fileMatch": "environment.yml", "url": "./schemas/conda-environment.json" }, { "fileMatch": "meta.yaml", "url": "./schemas/conda-meta.json" } ], in package.json, but it still doesn't work. How to figure out this issue?

AlanConstantine avatar Apr 28 '20 14:04 AlanConstantine

is that the correct package.json to modify i believe its the package.json related to this extension if you look in .vscode/extensions.tht13.python youll see: "jsonValidation": [ { "fileMatch": "pyconfig.json", "url": "/schemas/pyconfig.schema.json" } acutlaly seems to fix it, check my fork out for fix. i had to update the package.json for the remote i was ssh to

So after looking at the file that is referenced that file is marked as "not functional" so this may be intentional use at your own risk

mw-cyzen avatar May 01 '20 19:05 mw-cyzen

is that the correct package.json to modify i believe its the package.json related to this extension if you look in .vscode/extensions.tht13.python youll see: "jsonValidation": [ { "fileMatch": "pyconfig.json", "url": "/schemas/pyconfig.schema.json" } acutlaly seems to fix it, check my fork out for fix. i had to update the package.json for the remote i was ssh to

So after looking at the file that is referenced that file is marked as "not functional" so this may be intentional use at your own risk

The package.json I changed truly belongs to tht13.python. As shown in the notification: [tht13.python]: 'configuration.jsonValidation.url' must be an absolute URL or start with './' to reference schemas located in the extension. I modified "url": "/schemas/pyconfig.schema.json" to "URL": "./schemas/pyconfig.schema.json" , but it doesn't work.

AlanConstantine avatar May 02 '20 00:05 AlanConstantine

is that the correct package.json to modify i believe its the package.json related to this extension if you look in .vscode/extensions.tht13.python youll see: "jsonValidation": [ { "fileMatch": "pyconfig.json", "url": "/schemas/pyconfig.schema.json" } acutlaly seems to fix it, check my fork out for fix. i had to update the package.json for the remote i was ssh to So after looking at the file that is referenced that file is marked as "not functional" so this may be intentional use at your own risk

The package.json I changed truly belongs to tht13.python. As shown in the notification: [tht13.python]: 'configuration.jsonValidation.url' must be an absolute URL or start with './' to reference schemas located in the extension. I modified "url": "/schemas/pyconfig.schema.json" to "URL": "./schemas/pyconfig.schema.json" , but it doesn't work.

ah well i dont have the issue anymore

mw-cyzen avatar May 02 '20 00:05 mw-cyzen

Adding a . fixed it for me as shown in this diff https://github.com/tht13/Python-vscode/compare/master...mw-cyzen:master

Technetium1 avatar Jul 23 '20 05:07 Technetium1