Open gbowne1 opened 4 weeks ago
What needs to be done here?
I don't know @shoshta73 not completely sure why it would not just find the files.
Allright i will check whats going
Just saw it.
Given this input where you have relative path from PRJ_ROOT you have made a type in filename, and you are missing leading dot on the vscode directory.
python3 jsonmaestro.py
Enter the path to your JSON, JSONC, or VSCode settings.json file: ./vscode/estensions.json
Error: File './vscode/estensions.json' not found.
'./vscode/estensions.json' -> '.vscode/extensions.json' -> this fixes the issue
^ ^typo is here
I
> missing leading dot
@shoshta73
One should be able to point json-maestro to any file or set of files and have it rebuild the JSON no matter which directory it is in.
package.json and also .vscode/extensions.json, settings.json, launch.json, tasks.json shold get validated by schema.
So maybe an automated file shearch will cover this?
I don't know about an automated file search, but the user should be able to type in the correct path either relative or absolute and it should find the file or files to be parsed.
if no json file was found it might be advisable to print something like "Error: No JSON found".
I don't know about an automated file search, but the user should be able to type in the correct path either relative or absolute and it should find the file or files to be parsed.
what if the absolute filepath resolves to priveledged fs (like /opt/stacks)?
sure
yes it is.
Only thing I see is in helper.py FORMAT is spelled FROMAT.
I tried several ways to get it to properly locate any JSON Visual Studio or Visual Studio code configuration files
especially the ones in the project directory.
Instead, you get;