Python-vscode
Python-vscode copied to clipboard
configuration.jsonValidation.url
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?
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
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.
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 totht13.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
Adding a .
fixed it for me as shown in this diff https://github.com/tht13/Python-vscode/compare/master...mw-cyzen:master