Closed AddictArts closed 3 years ago
It can be due to two things:
mdls -name kMDItemContentType A_JSON_PATH
(replace A_JSON_PATH
with a path of an exists json file).Neither of those, output is kMDItemContentType = "public.json"
Syntax highlight is at the top of the list.
Test some of these workaround:
colorize.log
on your desktop for some errorsDid all of that and still no change. No file on the desktop either if quicklook json. If I quicklook another file, yes the log appears with no errors. Thanks
If the colorize.log
is not generated for json files it means that the application is not considered by the operating system for that extension.
Is very strange. At the moment I no longer have a catalina system for testing.
Have you installed any old quicklook generators? What is the output of this command?
qlmanage -m | grep json
public.json -> /System/Library/QuickLook/Text.qlgenerator (906.3)
Which appears to be OS, date is the OS install of that generator.
Yes, also on my Big Sur system the output is the same.
Try this to view registered quicklook extensions:
pluginkit -A -m -p com.apple.quicklook.preview -vv
And also this command:
pluginkit -m -i org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension --raw
FYI: the app is unstable as well, when I scroll the file types, beach ball, search for "sh" beach ball.
com.apple.Safari.SafariQuickLookPreview(1.0)
Path = /Applications/Safari.app/Contents/PlugIns/SafariQuickLookPreview.appex
UUID = 82E723B0-A802-4A7F-B8E9-ECBF350AC33A
Timestamp = 2021-03-15 16:58:44 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /Applications/Safari.app
Display Name = SafariQuickLookPreview
Short Name = SafariQuickLookPreview
Parent Name = Safari
com.apple.SceneKitQLPreviewExtension(1.0)
Path = /System/Library/Frameworks/SceneKit.framework/PlugIns/SceneKitQLPreviewExtension.appex
UUID = C612EA38-4E3E-49CF-983B-9B2FD9FB992B
Timestamp = 2021-02-11 16:27:38 +0000
SDK = com.apple.quicklook.preview
Display Name = SceneKitQLPreviewExtension
Short Name = SceneKitQLPreviewExtension
com.apple.mail.MailQuickLookExtension(1.0)
Path = /System/Applications/Mail.app/Contents/PlugIns/MailQuickLookExtension.appex
UUID = CE172068-2D13-47C3-87EF-952D133A9729
Timestamp = 2021-02-11 16:27:45 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /System/Applications/Mail.app
Display Name = MailQuickLookExtension.appex
Short Name = Mail
Parent Name = Mail
com.apple.Notes.QuickLookExtension(1.2)
Path = /System/Applications/Notes.app/Contents/PlugIns/com.apple.Notes.QuickLookExtension.appex
UUID = 0967EBDD-516B-4967-B328-F234CA2E560F
Timestamp = 2021-02-11 16:27:45 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /System/Applications/Notes.app
Display Name = Notes QuickLook Extension
Short Name = com.apple.Notes.QuickLookExtension
Parent Name = Notes
+ org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension(1.0)
Path = /Applications/Syntax Highlight.app/Contents/PlugIns/Syntax Highlight Quicklook Extension.appex
UUID = EF0D3AEE-525C-467C-B520-255900678B15
Timestamp = 2021-03-15 16:16:02 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /Applications/Syntax Highlight.app
Short Name = Syntax Highlight Quicklook Extension
Parent Name = Syntax Highlight
com.apple.reminders.quicklookextension(7.0)
Path = /System/Applications/Reminders.app/Contents/PlugIns/RemindersQuickLookExtension.appex
UUID = 13AD72CA-FAD9-48A4-A544-F731051E94A3
Timestamp = 2021-02-11 16:27:45 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /System/Applications/Reminders.app
Display Name = Reminders
Short Name = Reminders
Parent Name = Reminders
com.findergg.iPreview.Preview(1.4.3)
Path = /Applications/iPreview.app/Contents/PlugIns/Preview.appex
UUID = 1305407E-6A76-46B6-B07B-4B8F618D2C04
Timestamp = 2021-03-05 22:32:40 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /Applications/iPreview.app
Display Name = iPreview Quick Look
Short Name = Preview
Parent Name = iPreview
com.apple.RAQLPreviewExtension(1.0)
Path = /System/Library/Frameworks/RealityKit.framework/PlugIns/RAQLPreviewExtension.appex
UUID = 87B4DB7E-4D3F-450C-97C4-35DC21DEEB6B
Timestamp = 2021-02-11 16:27:38 +0000
SDK = com.apple.quicklook.preview
Display Name = RAQLPreviewExtension
Short Name = RAQLPreviewExtension
com.panic.Nova.NovaQuickLookPreview(5)
Path = /Applications/Nova.app/Contents/PlugIns/Nova Quick Look Previewing.appex
UUID = 0A60E7D3-B27B-4AE2-98F1-93D479A68EA5
Timestamp = 2021-03-02 20:34:14 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /Applications/Nova.app
Display Name = Quick Look Previewing
Short Name = Nova Quick Look Previewing
Parent Name = Nova
com.apple.podcasts.MacQuicklookExtension(1.0)
Path = /System/Applications/Podcasts.app/Contents/PlugIns/MacQuicklookExtension.appex
UUID = 6FD3F0E4-5570-45F0-BE0A-C4E3F954E8FD
Timestamp = 2021-02-11 16:27:45 +0000
SDK = com.apple.quicklook.preview
Parent Bundle = /System/Applications/Podcasts.app
Display Name = MacQuicklookExtension
Short Name = MacQuicklookExtension
Parent Name = Podcasts
<OS_xpc_dictionary: <dictionary: 0x7fc3cbd04470> { count = 1, transaction: 0, voucher = 0x0, contents =
"matches" => <dictionary: 0x7fc3cbd042b0> { count = 1, transaction: 0, voucher = 0x0, contents =
"ECF19A18-7AA6-4141-B4DC-A2E5123B2B5C" => <data: 0x7fc3cbd045a0>: { length = 24576 bytes, contents = 0x62706c697374313513b01a0000000000801200000000a1df... }
}
}>
(
{
annotations = {
election = 1;
extension = {
lastDateManagedOn = "2021-03-15 16:47:21 +0000";
};
};
bundleInfo = {
BuildMachineOSBuild = 20C69;
CFBundleDevelopmentRegion = en;
CFBundleExecutable = "Syntax Highlight Quicklook Extension";
CFBundleIdentifier = "org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension";
CFBundleInfoDictionaryVersion = "6.0";
CFBundleName = "Syntax Highlight Quicklook Extension";
CFBundlePackageType = "XPC!";
CFBundleShortVersionString = "1.0";
CFBundleSupportedPlatforms = (
MacOSX
);
CFBundleVersion = 31;
LSExecutableMinimumOSVersion = "10.15";
LSExecutablePlatformKey = 1;
LSExecutableSDKVersion = "11.1";
LSMinimumSystemVersion = "10.15";
MachOUUIDs = (
"7192EA8F-D361-34F4-B608-DF9267FDA415",
"DCB08C80-8D64-386D-8C00-0D6D4D075182"
);
NSExtension = {
NSExtensionAttributes = {
NSExtensionPointName = "com.apple.quicklook.preview";
NSExtensionPointVersion = "1.0";
NSExtensionVersion = "1.0";
QLSupportedContentTypes = (
"com.adobe.acrobat.sequ",
"com.adobe.actionscript",
"com.adobe.coldfusion",
"com.adobe.jsx",
"com.apple.applescript.script",
"com.apple.applescript.text",
"com.apple.dt.interfacebuilder.document.storyboard",
"com.apple.interfacebuilder.document.cocoa",
"com.apple.property-list",
"com.apple.rez-source",
"com.apple.xcode.strings-dictionary",
"com.apple.xcode.strings-text",
"com.barebones.bbedit.ini-configuration",
"com.barebones.bbedit.scss-source",
"com.barebones.bbedit.tex-source",
"com.barebones.bbedit.verilog-hdl-source",
"com.barebones.bbedit.vhdl-source",
"com.dhowett.logos",
"com.eiffel.eiffelstudio-project-config",
"com.eiffel.source-code",
"com.google.earth.kml",
"com.jetbrain.source",
"com.macromates.textmate.scheme",
"com.macromates.textmate.standard-ml",
"com.microsoft.asp",
"com.microsoft.csharp-source",
"com.microsoft.c-sharp",
"com.microsoft.f-sharp",
"com.microsoft.ini",
"com.microsoft.typescript",
"com.microsoft.vb-source",
"com.microsoft.visual-basic",
"com.netscape.javascript-source",
"com.sun.java-properties",
"com.sun.java-source",
"com.sun.java-server-pages",
"com.sun.java-web-start",
"com.sun.javafx",
"com.sun.java-class",
"com.sun.manifest",
"com.unknown.lhs",
"com.symfony.twig",
"edu.uo.texshop.tex",
"org.applescript.source",
"org.arduino.ino-source",
"org.arduino.source",
"org.asm.source",
"org.bash.source",
"org.clojure",
"org.cocoapods.podspec",
"org.codehaus.groovy-source",
"org.coffee.source",
"org.coffeescript.coffeescript",
"org.cson.source",
"org.erlang.erlang",
"org.erlang.erlang-source",
"org.fish.source",
"org.gcc.files",
"org.go.source",
"org.gradle.source",
"org.haskell.haskell",
"org.haskell.haskell-source",
"org.haskell.literate-haskell-source",
"org.inno.source",
"org.iso.sql",
"org.julialang.julia",
"org.kmt.source",
"org.km3",
"org.kotlinlang.source",
"org.lua.lua",
"org.lua.lua-source",
"org.microsoft.inf",
"org.nfo",
"org.n8gray.awk",
"org.n8gray.bat",
"org.n8gray.diff-script",
"org.n8gray.idl",
"org.n8gray.ini-source",
"org.n8gray.javaInstaller",
"org.n8gray.jsp-source",
"org.n8gray.lisp",
"org.n8gray.makefile",
"org.n8gray.railstemplate",
"org.n8gray.scheme-source",
"org.n8gray.standard-ml-source",
"org.n8gray.structured-query-language-source",
"org.n8gray.verilog",
"org.n8gray.vhdl",
"org.n8gray.xhtml",
"org.ocaml.ocaml",
"org.ocaml.ocaml-interface",
"org.ocaml.ocaml-source",
"org.omg.ecore",
"org.rdf.source",
"org.rust-lang.source",
"org.sbarex.compiled-python-script",
"org.sbarex.conf",
"org.sbarex.dart",
"org.sbarex.ms-powershell",
"org.sbarex.ms-powershell-module",
"org.sbarex.ms-powershell-module-manifest",
"org.sbarex.nim",
"org.scala.source",
"org.tug.lua",
"org.tug.tex",
"org.vim.vim-script",
"org.vuejs.vue",
"org.w3.xsl",
"org.xml-tools.source",
"org.xul.source",
"public.bash-script",
"public.csh-script",
"public.css",
"public.c-header",
"public.c-plus-plus-header",
"public.c-plus-plus-source",
"public.c-source",
"public.fortran-source",
"public.fortran-90-source",
"public.ini",
"public.json",
"public.ksh-script",
"public.objective-c-source",
"public.objective-c-plus-plus-source",
"public.pascal-source",
"public.patch-file",
"public.perl-script",
"public.php-script",
"public.plain-text",
"public.python-script",
"public.ruby-script",
"public.script",
"public.shell-script",
"public.source-code",
"public.swift-source",
"public.tcsh-script",
"public.tex",
"public.text",
"public.xml",
"public.yaml",
"public.zsh-script",
"tk.tcl.tcl",
"tk.tcl.tcl-source",
"dyn.ah62d4rv4ge8007a",
"dyn.ah62d4rv4ge80c75p",
"dyn.ah62d4rv4ge80g62",
"dyn.ah62d4rv4ge80s52",
"dyn.ah62d4rv4ge80s6xbqv0gn",
"dyn.ah62d4rv4ge80w5pq",
"dyn.ah62d4rv4ge80y652",
"dyn.ah62d4rv4ge81g22",
"dyn.ah62d4rv4ge81g25brvuu",
"dyn.ah62d4rv4ge81g25xsq",
"dyn.ah62d4rv4ge80g55sq2",
"dyn.ah62d4rv4ge81k3p2",
"dyn.ah62d4rv4ge81a8p",
"dyn.ah62d4rv4ge81g6pq",
"dyn.ah62d4rv4ge81k55rru",
"dyn.ah62d46dzqm0gw23stb002svvhz6g45a"
);
QLSupportsSearchableItems = 0;
};
NSExtensionContextClass = QLPreviewExtensionContext;
NSExtensionContextHostClass = QLPreviewHostExtensionContext;
NSExtensionPointIdentifier = "com.apple.quicklook.preview";
NSExtensionPrincipalClass = "Syntax_Highlight_Quicklook_Extension.PreviewViewController";
NSExtensionProtocol = NSObject;
PrincipalClass = NSObject;
Subsystems = (
"NSSharingService_Subsystem",
"NSViewService_PKSubsystem"
);
};
NSHumanReadableCopyright = "Copyright \U00a9 2019-2021 SBAREX. All rights reserved.";
Path = "/Applications/Syntax Highlight.app/Contents/PlugIns/Syntax Highlight Quicklook Extension.appex";
XPCService = {
JoinExistingSession = 1;
RunLoopType = "_NSApplicationMain";
ServiceType = Application;
"_AdditionalSubServices" = {
"apple-extension-service" = 1;
viewbridge = 1;
};
};
};
containingBundleIdentifier = "org.sbarex.SourceCodeSyntaxHighlight";
containingPath = "/Applications/Syntax Highlight.app";
discoveryInstanceUUID = "6FFE6C27-9DC3-4A63-9295-C30F2561E383";
entitlements = {
"com.apple.security.app-sandbox" = 1;
"com.apple.security.files.user-selected.read-only" = 1;
"com.apple.security.get-task-allow" = 1;
"com.apple.security.network.client" = 1;
"com.apple.security.temporary-exception.files.absolute-path.read-only" = (
"/"
);
"com.apple.security.temporary-exception.mach-lookup.global-name" = (
"com.apple.nsurlsessiond",
"com.apple.testmanagerd",
"com.apple.coresymbolicationd"
);
};
extensions = {
"." = "6e1dd1d13202d4657a94d7ec46c828880fe6e855739fab5af809a2924d98e346;00;00000000;00000000;00000000;000000000000001a;com.apple.app-sandbox.read;01;01000005;00000000009e9589;01;/applications/syntax highlight.app/contents/plugins/syntax highlight quicklook extension.appex";
};
hubProtocolVersion = 2;
identifier = "org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension";
lastmodified = 1615824962;
localizedContainingDisplayName = "Syntax Highlight";
"original-identifier" = "org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension";
path = "/Applications/Syntax Highlight.app/Contents/PlugIns/Syntax Highlight Quicklook Extension.appex";
"service-extension" = "ed07f59484706491afe5969d58ac6d8187ec053948500d2bd3d6167f999326b4;01;00000000;00000000;00000000;0000000000000022;com.apple.pluginkit.plugin-service;org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension";
systemResident = 1;
uuid = "EF0D3AEE-525C-467C-B520-255900678B15";
version = "1.0";
}
)
From what I see everything seems to me set up correctly. including handling of the json format.
As the only other suggestion I would try with Onyx to do a maintenance cycle by rebuilding the launchservice and XPC database. Generally it has never bothered me but I can't guarantee it will be the same for you.
Thanks I found, maybe the culprits, or related. If I turn off Panic Nova and iPreview in system preferences, then it works.
How can Panic Nova and iPreview trump Syntax Highlight? Syntax Highlight is first in the list in preferences. Thanks
I have no idea. Apple isn't very clear about it
Ok, bummer, thanks though, really appreciated. I'll file another bug for the spinning beachball.
Installed latest and checked the system preferences. JSON does not change quicklook. Thanks