tht13 / Python-vscode

A Python language pack for Visual Studio Code
MIT License
17 stars 11 forks source link

configuration.jsonValidation.url #48

Open AlanConstantine opened 4 years ago

AlanConstantine commented 4 years ago

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?

mw-cyzen commented 4 years ago

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

AlanConstantine commented 4 years ago

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.

mw-cyzen commented 4 years ago

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

Technetium1 commented 4 years ago

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