sbarex / SourceCodeSyntaxHighlight

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

syntax_highlight_cli not working #204

Closed serge-ivamov closed 1 year ago

serge-ivamov commented 2 years ago
$ "/Applications/Syntax Highlight.app/Contents/Resources/syntax_highlight_cli" /tmp/test.sh
Error processing /tmp/test.sh: Syntax Highlight: colorize.sh failed with exit code 127. Command was ('/Applications/Syntax Highlight.app/Contents/Contents/Resources/highlight/colorize.sh' '/tmp/test.sh').

command: '/Applications/Syntax Highlight.app/Contents/Contents/Resources/highlight/colorize.sh' '/tmp/test.sh'
exitCode: 127

/Contents/Contents/Resources/highlight/colorize.sh

sbarex commented 1 year ago

Fixed on release 2.1.16.

sirlaurie commented 1 year ago

It happened again with 2.1.17. OS: 12.6.2. install from brew with suggest command in README.

sirlaurie commented 1 year ago

I downgrade to 2.1.16, and it happened again. and I found this weird problem: no matter how many time I run xattr -d com.apple.quarantine, the colorize.sh file always has a @ in the ls -l result

Screen Shot 2023-01-12 at 13 36 55

so, how to solve this?

sbarex commented 1 year ago

Try with ls -l@ the see all the extended attributes.

Use the xattr -cr filename.ext tro strip all extended attrs.

W-quan commented 5 months ago

version: 2.1.21(70) reoccur.