microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.29k stars 6.55k forks source link

Markdown files "Can't be previewed" #31585

Open jpfieber opened 8 months ago

jpfieber commented 8 months ago

Microsoft PowerToys version

0.78.0

Installation method

Other (please specify in "Steps to Reproduce")

Running as admin

No

Area(s) with issue?

File Explorer: Preview Pane

Steps to reproduce

Not sure how I installed, think it was from Github. Running in Windows 11. I have numerous markdown files, most small, some large, size and content don't seem to make a difference. Have restarted many times. "Show preview handlers in preview pane" is enabled in Explorer options.

✔️ Expected Behavior

To see the text of the markdown file

❌ Actual Behavior

Without the extension, the preview in Explorer shows "No preview available". With the File Explorer add-ons 'Markdown' option turned on I get "This file can't be previewed". Not sure if it helps, but PDF previews only show up if I turn OFF the PDF add-on. When it's turned on I get the same "This file can't be previewed".

Other Software

No response

davidegiacometti commented 8 months ago

/bugreport

microsoft-github-policy-service[bot] commented 8 months ago

Hi there!

We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
Report Bug

jpfieber commented 8 months ago

PowerToysReport_2024-02-26-13-52-13.zip Sure, here you go. Thanks!

Wikiwix commented 5 months ago

Any news on this?

genghisun commented 5 months ago

same problem here

PhantomXiang commented 5 months ago

I find that this bug only appears in per user version. Everything works fine in machine wide version.

Wikiwix commented 4 months ago

I find that this bug only appears in per user version. Everything works fine in machine wide version.

I just uninstalled PowerToys and reinstalled it with

winget install Microsoft.PowerToys --scope machine

After this previews work as expected (even after restoring the config from the old instance). Because reinstalling never helped before, I suspect that you are right @InvincibleAoXiang!

While this does not fix the bug per se, it does help me out. Thank you!

TigersWay commented 2 months ago

Basically did what @Wikiwix previously did: uninstalled a user version, to be able to install a system wide version.... And all previews are now working!!

tildebyte commented 3 weeks ago

This is actually a dependable workaround until someone figures out what's wrong with Explorer previews when running Powertoys per-user (Note: from searching through Issues here, there's clearly a serious conflict with Adobe's PDF previewer which effects more than just PDFs - THE PRESENT ISSUE IS COMPLETELY UNRELATED). Uninstalling per-user PT install and re-installing system-wide instantly fixes the issue - don't have to restart Explorer, reboot, re-configure Powertoys, or even close and re-open Explorer windows - it simply starts working.