Comments (7)
Yeah, I still think it's QLColorCode causing the problem. Try removing QLColorCode from your Quicklook folder (either ~/Library/Quicklook or /Library/Quicklook) & then in Terminal:
# Refresh QuickLook
qlmanage -r
&
# Refresh QuickLook Cache
qlmanage -r cache
& then test one of your text files in Finder to see if text files are being handled correctly again by QL.
from qlstephen.
I was having the same issue. For me, QLColorCode was the culprit.
In Terminal, try:
# Which plugins read this kind of file? (In this situation, the KIND variable would be text.)#
qlmanage -m plugins | grep
KIND
&/OR:
# Which ql plugin reads this file? #
qlmanage -d4 -p
'/path/to/file.extension'
Also, useful:
# What file types does this ql plugin see? #
qlmanage -debuglevel 4
'/path/to/Library/Quicklook/plugin.qlgenerator'
from qlstephen.
└─[ ✓ ] λ qlmanage -m plugins | grep text
net.multimarkdown.text -> /Users/erdtsksn/Library/QuickLook/QLMarkdown.qlgenerator (1.3.3)
com.foldingtext.foldingtext.document -> /Users/erdtsksn/Library/QuickLook/QLMarkdown.qlgenerator (1.3.3)
public.plain-text -> /Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator (2.0.9 - loaded)
public.text -> /Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator (2.0.9 - loaded)
public.comma-separated-values-text -> /Users/erdtsksn/Library/QuickLook/QuickLookCSV.qlgenerator (1.3)
public.tab-separated-values-text -> /Users/erdtsksn/Library/QuickLook/QuickLookCSV.qlgenerator (1.3)
org.oasis-open.opendocument.text -> /System/Library/QuickLook/Text.qlgenerator (743.7 - loaded)
com.apple.finder.textclipping -> /System/Library/QuickLook/Clippings.qlgenerator (743.7)
└─[ ✓ ] λ qlmanage -d4 -p ~/Desktop/test.txt
Testing Quick Look preview with files:
/Users/erdtsksn/Desktop/test.txt
[DEBUG] Registering <QLGenerator Web.qlgenerator> for com.apple.webarchive
...
# Registering others
....
[DEBUG] Preview test for file:///Users/erdtsksn/Desktop/test.txt. Content type UTI: public.plain-text
[DEBUG] Previewing file:///Users/erdtsksn/Desktop/test.txt. Content type UTI: public.plain-text. Generator used: <QLGenerator /Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator>
[DEBUG] Loading <QLGenerator /Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator>
go4it:9: permission denied: /usr/local/opt/highlight/bin
go4it:9: permission denied: /usr/local/opt/highlight/bin
2017-12-10 17:56:53.005 qlmanage[7606:1105700] QLColorCode: colorize.sh failed with exit code 101. Command was ('/Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources/colorize.sh' '/Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources' '/Users/erdtsksn/Desktop/test.txt' 0).
[DEBUG] Previewing file:///Users/erdtsksn/Desktop/test.txt did not produce anything
[DEBUG] Thumbnailing file:///Users/erdtsksn/Desktop/test.txt - type: public.plain-text - generator: <QLGenerator /Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator> (try #1)
[DEBUG] Thumbnailing file:///Users/erdtsksn/Desktop/test.txt. Content type UTI: public.plain-text. Generator used: <QLGenerator /Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator>
go4it:5: permission denied: /usr/local/opt/highlight/bin
go4it:5: permission denied: /usr/local/opt/highlight/bin
2017-12-10 17:56:53.123 qlmanage[7606:1105700] QLColorCode: colorize.sh failed with exit code 101. Command was ('/Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources/colorize.sh' '/Users/erdtsksn/Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources' '/Users/erdtsksn/Desktop/test.txt' 1).
[DEBUG] Thumbnailing file:///Users/erdtsksn/Desktop/test.txt did not produce anything
2017-12-10 17:56:53.164 qlmanage[7606:1105700] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x7503, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-10 17:56:53.307 qlmanage[7606:1105700] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x13837, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
It looks like something is wrong with permission.
from qlstephen.
I found a solution in the QLColorCode issues:
At the command line type which highlight
. Put the resulting path into the command defaults write org.n8gray.QLColorCode pathHL /path/to/your/highlight
.
from qlstephen.
I was having the same issue.
Removing and reinstalling QLColorCode fixed it for me,
I noticed in my mac bootstraping code, QLColorCode was being installed first first.
Could the order of installation affect it? (eg should installing QLStephen first)
from qlstephen.
I have the similar issue. Is there any alternative solutions? I don't want to remove QLColorCode, since is really of great use
from qlstephen.
I just uninstalled QLColorCode after reading @SainteCelery's comment above, which fixed the issue for me. Then read @sea200k's comment about setting the path to highlight, so reinstalled QLColorCode and some how it's just working on it's own without needing to do that ¯\_(ツ)_/¯
from qlstephen.
Related Issues (20)
- Doesn't work for YAML files *.yml HOT 2
- Is this meant to work for all files that aren't associated with other QL plugins? HOT 1
- This does not work on mac BigSur HOT 14
- "public.mpeg-2-transport-stream" does not show up with "qlmanage -m" HOT 2
- Doesn't work for *.bib files
- Does not work on executable files HOT 1
- Doesn't work if dotfile has extension HOT 1
- Doesn't work for Filename.svelte files HOT 1
- txt preview - option to remove line numbers
- GPG encrypted files?
- Same file contents same extension made by 2 different apps 1 file contents visible the other not visible
- Feature Request: Add syntax highlighting HOT 4
- Won't preview files of 1 byte(1 character)
- Doesn't work on Catalina 10.15.4 HOT 2
- Blank preview on M1 HOT 12
- It's possible to add the .bat files?
- NO longer working with OS ventura HOT 20
- Exec format error HOT 1
- Inconsistent Behavior Across Different File Locations HOT 1
- Adobe InDesign is taking precedence HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qlstephen.