Skip to content

JSON files are not handled by the extension #215

@niklasnatter

Description

@niklasnatter

Hey,
Thanks a lot for working on this application. It is a great extension and really helpful during everyday work!
I am setting up my new notebook at the moment and have a problem with the preview of .json files. It looks like the preview is not handled by SourceCodeSyntaxHighlight. If I enable Debug, no files are written to my desktop. The highlighting (and debug mode) is working fine for other file types (including .jsonc).

I have installed and removed Peek before installing this extension. Is it possible that this somehow messed up the configuration of my system?

Rom reading through the other issues, I found the following commands. As far as I understand, the output looks fine. But maybe I overlooked something?

mdls -name kMDItemContentType -name kMDItemContentTypeTree A_JSON_PATH:

kMDItemContentType     = "public.json"
kMDItemContentTypeTree = (
    "public.json",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
)

qlmanage -m | grep json:

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

pluginkit -A -m -p com.apple.quicklook.preview -vv:

     com.apple.CalendarUI.SpotlightEventPreview(1)
	            Path = /System/Library/PrivateFrameworks/CalendarUI.framework/Versions/A/PlugIns/SpotlightEventPreview.appex
	            UUID = 8FBF9C6B-3636-40D1-9B64-F1266D4DC13B
	       Timestamp = 2022-12-13 22:19:54 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = SpotlightEventPreview
	      Short Name = SpotlightEventPreview
	        Platform = macOS

     com.apple.CoreHapticsTools.QLPreviewExtension(0)
	            Path = /System/Library/PrivateFrameworks/CoreHapticsTools.framework/PlugIns/HapticsQLPreviewExtension.appex
	            UUID = BEE589CE-8DA9-4930-843E-8929622E1724
	       Timestamp = 2022-12-13 22:19:55 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = AHAPQLPreview
	      Short Name = AHAPQLPreview
	        Platform = macOS

     com.apple.reminders.quicklookextension(7.0)
	            Path = /System/Applications/Reminders.app/Contents/PlugIns/RemindersQuickLookExtension.appex
	            UUID = 38215A5D-5CB3-4F0F-AD27-0621E4AED436
	       Timestamp = 2022-12-13 22:20:02 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /System/Applications/Reminders.app
	    Display Name = Reminders
	      Short Name = Reminders
	     Parent Name = Reminders
	        Platform = macOS

     com.apple.HydraQLPreviewExtension(1.0)
	            Path = /System/Library/PrivateFrameworks/Hydra.framework/PlugIns/HydraQLPreviewExtension.appex
	            UUID = 4E9122BD-6579-4A31-AC50-26E1EF059195
	       Timestamp = 2022-12-13 22:19:55 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = HydraQLPreviewExtension
	      Short Name = HydraQLPreviewExtension
	        Platform = macOS

+    org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension(2.1.16)
	            Path = /Applications/Syntax Highlight.app/Contents/PlugIns/Syntax Highlight Quicklook Extension.appex
	            UUID = 7666B042-52E1-45C4-BFC7-9D7061D153AE
	       Timestamp = 2022-12-22 09:59:02 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /Applications/Syntax Highlight.app
	    Display Name = Syntax Highlight Quicklook Extension
	      Short Name = Syntax Highlight Quicklook Extension
	     Parent Name = Syntax Highlight
	        Platform = macOS

     com.apple.OFDPreview(1.0)
	            Path = /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/PlugIns/OFD_Preview.appex
	            UUID = 8341473B-6940-4017-A4D5-88CE28D1913A
	       Timestamp = 2022-12-13 22:19:57 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = OFD_Preview
	      Short Name = OFD_Preview
	        Platform = macOS

     com.apple.Safari.SafariQuickLookPreview(16.2)
	            Path = /System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/Contents/PlugIns/SafariQuickLookPreview.appex
	            UUID = 9E943BF2-9847-45EB-A587-27791770F1BB
	       Timestamp = 2022-12-13 22:20:02 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app
	    Display Name = SafariQuickLookPreview
	      Short Name = SafariQuickLookPreview
	     Parent Name = Safari
	        Platform = macOS

     com.apple.podcasts.MacQuicklookExtension(1.1.0)
	            Path = /System/Applications/Podcasts.app/Contents/PlugIns/MacQuicklookExtension.appex
	            UUID = E8DC7DAB-75DC-446D-9DB4-3CE3FB08187D
	       Timestamp = 2022-12-13 22:20:01 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /System/Applications/Podcasts.app
	    Display Name = MacQuicklookExtension
	      Short Name = MacQuicklookExtension
	     Parent Name = Podcasts
	        Platform = macOS

     com.apple.SceneKitQLPreviewExtension(1.0)
	            Path = /System/Library/Frameworks/SceneKit.framework/PlugIns/SceneKitQLPreviewExtension.appex
	            UUID = 35F449D2-920B-4B5B-ACFF-7FF75AFB94B9
	       Timestamp = 2022-12-13 22:19:54 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = SceneKitQLPreviewExtension
	      Short Name = SceneKitQLPreviewExtension
	        Platform = macOS

     com.apple.Notes.QuickLookExtension(4.10)
	            Path = /System/Applications/Notes.app/Contents/PlugIns/com.apple.Notes.QuickLookExtension.appex
	            UUID = B68FBFE4-22E2-4D3A-B089-46D898646F72
	       Timestamp = 2022-12-13 22:20:01 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /System/Applications/Notes.app
	    Display Name = Notes QuickLook Extension
	      Short Name = Notes QuickLook Extension
	     Parent Name = Notes
	        Platform = macOS

     com.apple.osanalytics.IPSExtension(1.0)
	            Path = /System/Library/PrivateFrameworks/OSAnalytics.framework/PlugIns/IPSExtension.appex
	            UUID = 2F713195-0CBD-45CC-BD1F-E0249BDC22A0
	       Timestamp = 2022-12-13 22:19:54 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = QuickLookIPSExtension
	      Short Name = QuickLookIPSExtension
	        Platform = macOS

     com.apple.RAQLPreviewExtension(1.0)
	            Path = /System/Library/PrivateFrameworks/AssetViewer.framework/PlugIns/RAQLPreviewExtension.appex
	            UUID = AC912B55-902F-4107-B501-C4F65B3B29B9
	       Timestamp = 2022-12-13 22:19:55 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = RAQLPreviewExtension
	      Short Name = RAQLPreviewExtension
	        Platform = macOS

     com.apple.shortcuts.QuickLookExtension(6.0)
	            Path = /System/Applications/Shortcuts.app/Contents/PlugIns/QuickLookExtension.appex
	            UUID = C692DE1C-7535-41CE-B547-BD477246C770
	       Timestamp = 2022-12-13 22:20:02 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /System/Applications/Shortcuts.app
	    Display Name = QuickLookExtension
	      Short Name = QuickLookExtension
	     Parent Name = Shortcuts
	        Platform = macOS

     com.apple.tips.TipsAppQuicklook-macOS(9.0)
	            Path = /System/Library/CoreServices/Tips.app/Contents/PlugIns/TipsAppQuicklook-macOS.appex
	            UUID = 71EAA9D0-51CA-4F01-90A6-1D27AFF230AC
	       Timestamp = 2022-12-13 22:20:00 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /System/Library/CoreServices/Tips.app
	    Display Name = TipsAppQuicklook-macOS
	      Short Name = TipsAppQuicklook-macOS
	     Parent Name = Tips
	        Platform = macOS

     com.apple.mail.MailQuickLookExtension(1.0)
	            Path = /System/Applications/Mail.app/Contents/PlugIns/MailQuickLookExtension.appex
	            UUID = AEF9EDA7-F9CE-4CE5-9277-EA5DA64EB01A
	       Timestamp = 2022-12-13 22:20:01 +0000
	             SDK = com.apple.quicklook.preview
	   Parent Bundle = /System/Applications/Mail.app
	    Display Name = Mail
	      Short Name = Mail
	     Parent Name = Mail
	        Platform = macOS

     com.apple.QuickLookUIFramework.QLPreviewGenerationExtension(1.0)
	            Path = /System/Library/Frameworks/QuickLookUI.framework/Versions/A/PlugIns/QLPreviewGenerationExtension.appex
	            UUID = 071F0266-93AC-4A34-B34C-A06E0A38975F
	       Timestamp = 2022-12-13 22:19:57 +0000
	             SDK = com.apple.quicklook.preview
	    Display Name = QLPreviewGenerationExtension
	      Short Name = QLPreviewGenerationExtension
	        Platform = macOS

 (16 plug-ins)

Thanks a lot in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions