Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank preview on M1 #133

Open
manuelgrabowski opened this issue Jan 10, 2022 · 12 comments
Open

Blank preview on M1 #133

manuelgrabowski opened this issue Jan 10, 2022 · 12 comments

Comments

@manuelgrabowski
Copy link

I'm afraid the plugin doesn't work on my M1, while the same file/version works fine on my Intel Mac. Judging by the comments in sindresorhus/quick-look-plugins#126 I'm guessing this is an M1 issue, but I'm happy to provide any additional debug information to narrow it down further.

image

@philfreo
Copy link

philfreo commented Jan 16, 2022

I have a new M1 Mac I'm trying to setup qlstephen on. I'm unable to get it working at all, even after following all the same steps as in #87 (comment). I don't have the blank screen issue, I have the ql plugin taking no effect whatsoever.
Is Rosetta required? (I don't have that installed currently)

@SConaway
Copy link

SConaway commented Feb 7, 2022

yes, as of now, it's compiled only for x86_64, so Rosetta is needed.

@SConaway
Copy link

SConaway commented Feb 7, 2022

and it seems like running make && make install in the repo (after cloning) compiles it for arm64 as well

@grischard
Copy link

For those too lazy to recompile, here's a fresh build: QLStephen.qlgenerator.zip

@philfreo
Copy link

Is it possible to get the homebrew version updated for M1 as well?

@SConaway
Copy link

As far as I know, brew doesn't accept forks officially. I'm not sure what's happening with this repo...

@bengry
Copy link

bengry commented Feb 17, 2022

For those too lazy to recompile, here's a fresh build: QLStephen.qlgenerator.zip

Does this fix the empty quicklook previews for you? I tried replacing the file I had in ~/Library/QuickLook and they still don't work, even after a restart. I should note I'm getting the same empty preview even using my own compiled version (compiled on an M1 using the instructions in the README).

@davidjdixon
Copy link

For those too lazy to recompile, here's a fresh build: QLStephen.qlgenerator.zip

Does this fix the empty quicklook previews for you? I tried replacing the file I had in ~/Library/QuickLook and they still don't work, even after a restart. I should note I'm getting the same empty preview even using my own compiled version (compiled on an M1 using the instructions in the README).

I can confirm that this update does fix the issue I was seeing. But to clarify, my issue wasn't an empty preview, just no preview at all, so I would initially check if the file has the quarantine attributes.

Unfortunately, it seems whatever version of the binary that homebrew is using is still not arm compatible (as the original version was only installed yesterday during a system rebuild).

@brettrowberry
Copy link

Looking forward to this on M1 Homebrew as well!

@justinormont
Copy link

For those too lazy to recompile, here's a fresh build: QLStephen.qlgenerator.zip

Neither the arm build by bengry, nor removing the quarantine flag (xattr -r -d com.apple.quarantine ~/Library/QuickLook) helped. Restarting quicklook (qlmanage -r) and Finder (killall Finder) also did not help.

Any other ideas to fix the blank preview?

@justinormont
Copy link

This Quick Look plugin works well, and is kept up to date -- https://github.com/sbarex/SourceCodeSyntaxHighlight

Can either download from the releases, or use Homebrew brew install --cask --no-quarantine syntax-highlight.

@MarkBTomlinson
Copy link

This Quick Look plugin works well, and is kept up to date -- https://github.com/sbarex/SourceCodeSyntaxHighlight

Can either download from the releases, or use Homebrew brew install --cask --no-quarantine syntax-highlight.

Thanks for this the other solutions got me nowhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants