SourceCodeSyntaxHighlight icon indicating copy to clipboard operation
SourceCodeSyntaxHighlight copied to clipboard

macOS 13.1, m1 pro, xml & json not work

Open li-ang-666 opened this issue 3 years ago • 28 comments

qlmanage -m | grep public.xml or qlmanage -m | grep public.json

the result refers to "/System/Library/QuickLook/Text.qlgenerator"

li-ang-666 avatar Dec 26 '22 07:12 li-ang-666

Sorry but I do not have an apple silicon to make test. On my intel system (ventura 13.1) xml and json files are recognized.

Also qlmanage handle only old qlgenerator and not the quicklook extensions.

sbarex avatar Dec 28 '22 07:12 sbarex

@sbarex I have two M1 Macs, and I only have this issue with the one running Ventura 13.1. Are there any troubleshooting steps I can help you gather debug info?

zmingxie avatar Jan 07 '23 17:01 zmingxie

Same problem: M1 Mac & Ventura 13.1, and preview does not work for xml and json files. Awesome extension anyway, thanks!

alewandows avatar Jan 16 '23 10:01 alewandows

Same problem too on M1 Macbook Pro Ventura 13.1.

viquu avatar Jan 18 '23 05:01 viquu

Add my "same problem" M1 Macbook Pro Ventura 13.1.

tsutaz avatar Jan 27 '23 19:01 tsutaz

For me both, xml and json work. Have you checked the UTI of your files with the Inquiry tool?

mike-lischke avatar Feb 02 '23 14:02 mike-lischke

This is what I get from the Inquiry tool:

image

However, I also get this on my M2 running 13.2.1:

public.json -> /System/Library/QuickLook/Text.qlgenerator (965.1 - loaded)

ruimarinho avatar Mar 14 '23 09:03 ruimarinho

It is possible that this is a limitation of macOS on an apple silicon...

sbarex avatar Mar 14 '23 11:03 sbarex

same for Ventura 13.2.1 (22D68)

zjdx1998 avatar Mar 29 '23 05:03 zjdx1998

same on M1pro MacBook for Ventura 13.3.1 When I use cli to generate .html file, it works.

$ /Applications/Syntax\ Highlight.app/Contents/Resources/syntax_highlight_cli -o tsconfig.html tsconfig.json
Screenshot 2023-04-11 at 12 20 33 but it doesn't work directly to .json files. Screenshot 2023-04-11 at 12 21 32

bacardi-rum avatar Apr 11 '23 04:04 bacardi-rum

At this point I think it can be taken for granted that MacOS Ventura on apple processors does not support the management of the json format.

sbarex avatar Apr 11 '23 06:04 sbarex

Yeah, same problem here. 13.3.1 and both JSON and xml aren't receiving the treatment. 😟

agingorange avatar Apr 11 '23 06:04 agingorange

image

This is what I see when inquiring for xml.

agingorange avatar Apr 11 '23 06:04 agingorange

The inquiry tool can only check if the format is supported ad registered by the application, but cannot check if macOS allow to handle it...

sbarex avatar Apr 11 '23 06:04 sbarex

The inquiry tool can only check if the format is supported ad registered by the application, but cannot check if macOS allow to handle it...

Yeah, I was hoping it would spark the other user's memory who said that he got it working again, but the message isn't there anymore.

agingorange avatar Apr 11 '23 06:04 agingorange

At this point I think it can be taken for granted that MacOS Ventura on apple processors does not support the management of the json format.

This issue was reproduced on an Intel Mac. Additionally, there is an app called Peek in the App Store that can correctly handle the preview of JSON files. It requests root permission upon initial launch to install a helper program. I believe this helper program is key to its ability to correctly handle JSON.

UptonEdward avatar Apr 12 '23 00:04 UptonEdward

Even stranger, when I limit Peek's preview type to only JSON and enable both Peek and SyntaxHighlight in the Finder extension, JSON can be correctly processed by SyntaxHighlight instead of Peek💀💀💀

UptonEdward avatar Apr 12 '23 00:04 UptonEdward

Sorry but I don't have the Peek app, and I can't replicate the problem on my computer

sbarex avatar Apr 12 '23 06:04 sbarex

Sorry but I don't have the Peek app, and I can't replicate the problem on my computer

Another free app on the App Store, PreviewText, can also do similar things as Peek. The intention of this app is to provide users with previews of other types of plain text files (such as .log), but inexplicably it can also correctly process JSON files with SyntaxHighlight. This problem is solved in an unexpected way......

UptonEdward avatar Apr 12 '23 07:04 UptonEdward

Holy cow! In installed PreviewText and JSON and xml are working again!

agingorange avatar Apr 12 '23 07:04 agingorange

Sorry but I don't have the Peek app, and I can't replicate the problem on my computer

Another free app on the App Store, PreviewText, can also do similar things as Peek. The intention of this app is to provide users with previews of other types of plain text files (such as .log), but inexplicably it can also correctly process JSON files with SyntaxHighlight. This problem is solved in an unexpected way......

Great! It's working again!

viquu avatar Apr 14 '23 01:04 viquu

bump, still an issue, and in my case it was not resolved by installing PreviewText.

wbrickner avatar Jul 18 '23 05:07 wbrickner

I don't have an Arm Mac to debug this issue :(

sbarex avatar Jul 18 '23 08:07 sbarex

bump, still an issue, and in my case it was not resolved by installing PreviewText.

Me too. But I open the Syntax Highlight in launchpad, it's work again. By the way, I already uninstall PreviewText.

viquu avatar Jul 18 '23 09:07 viquu

I don't have an Arm Mac to debug this issue :(

Intel Mac can reproduce this issue

UptonEdward avatar Jul 18 '23 14:07 UptonEdward

try commands

qlmanage -r cache qlmanage -m

in my case works after use many weeks QuickLookJSON and remove it today

SergioSuarezGil avatar Oct 02 '23 12:10 SergioSuarezGil

I had the same issues on my M1 Pro running Sonoma. after installing QLMarkdown today, both, JSON and XML are working again with SyntaxHighlight 🤷🏼‍♂️ not sure if it maybe helps anyone else

satrik avatar Oct 12 '23 06:10 satrik

after installing QLMarkdown

I have both Syntax Highlighting and QLMarkdown installed, but it seems that JSON and XML are not rendering as expected.

riasat-sheikh avatar Oct 29 '23 01:10 riasat-sheikh