You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
org.vim.pch++-file is not a valid UTI and is logged as invalid in every process that loads QuickLook #383
The QuickLook extension (org.sbarex.SourceCodeSyntaxHighlight.QuickLookExtension) lists org.vim.pch++-file among its supported content types. + is not a legal UTI character: Apple's UTI rules allow only ASCII letters, digits, hyphen (-) and period (.), plus Unicode characters above U+007F. LaunchServices therefore rejects the identifier.
Because of this, any app that instantiates a QLPreviewView (or otherwise triggers QuickLook extension discovery) logs this line at launch:
Invalid content type identifier org.vim.pch++-file specified in extension org.sbarex.SourceCodeSyntaxHighlight.QuickLookExtension
This cannot be worked around by declaring the type elsewhere (e.g., via UTImportedTypeDeclarations in another app). The identifier itself is invalid, so the declaration is rejected as well.
Steps to reproduce
Install Syntax Highlight.
Run any app that creates a QLPreviewView, with Xcode's console or Console.app open.
Observe the log line above.
Suggested fix
Replace org.vim.pch++-file with a valid identifier, e.g. org.vim.pch-plus-plus-file, or map .pch++ to an existing declared type instead.
Related
The extension also lists many identifiers that are syntactically valid but not declared by any installed bundle, e.g. io.toml, org.lua.lua, public.java, public.rust-source. Each produces the same "Invalid content type identifier" log line. Declaring them as UTImportedTypeDeclarations in the host app's Info.plist (no filename-extension tags needed) would silence those as well.
I don't remember when I added that UTI, which is clearly incorrect. For the time being, I will remove it entirely from the list of supported UTIs. I believe it is recorded by the MacVim app.
Activity
sbarex commentedon Oct 20, 2026
I don't remember when I added that UTI, which is clearly incorrect. For the time being, I will remove it entirely from the list of supported UTIs. I believe it is recorded by the MacVim app.