sbarex / SourceCodeSyntaxHighlight

Quick Look extension for highlight source code files on macOS 10.15 and later.
GNU General Public License v3.0
3.02k stars 72 forks source link

Syntax Highlight: colorize.sh failed with exit code 1 #157

Closed setanarut closed 2 years ago

setanarut commented 2 years ago

Syntax Highlight: colorize.sh failed with exit code 1 error with a json file ....Desktop/keybindings.json

sbarex commented 2 years ago

without the log I can not understand anything…

Try to check if in the settings for the json files there is a preprocessor in python (used to beautify the output) and in case try to remove it: if the json file is not correct it could fail the generation.

setanarut commented 2 years ago

without the log I can not understand anything…

Try to check if in the settings for the json files there is a preprocessor in python (used to beautify the output) and in case try to remove it: if the json file is not correct it could fail the generation.

I did what you said and it worked. I think it should be turned off by default so that it doesn't happen to others.

setanarut commented 2 years ago

visual studio code produces invalid json file, the problem was caused by it.

Ekran Resmi 2022-03-14 19 59 14 Ekran Resmi 2022-03-14 19 52 34