chamburr / glance

🔎 All-in-one Quick Look plugin
MIT License
427 stars 16 forks source link

Can not quick look at .cpp and .ipynb #40

Closed GJZ0117 closed 9 months ago

GJZ0117 commented 9 months ago

Hello, I download the dmg file and install glance. It works on .java, .md, .py files. However when I tried to quick look a .ipynb file, it displayed some error messages like this:

image

When I tried to quick look a .cpp file, it displayed as the Mac default style:

image

I have restarted my Mac but it still cannot work. Do you have any solution?

chamburr commented 9 months ago

Hey, it would be really helpful if you could upload the files that don't work. I can't reproduce the issue based on the files I have on my computer.

GJZ0117 commented 9 months ago

Hey, it would be really helpful if you could upload the files that don't work. I can't reproduce the issue based on the files I have on my computer.

Sure, this is the .ipynb file and .cpp file.

I tested a new .ipynb file and find that if it only contains some easy statements like print(time.time()), it can be quick looked. So I guess maybe because I include too many third packages then it cannot be quick looked.

By the way, my environment is Macbook Pro M2Pro and the system version is 13.6.3.

files.zip

chamburr commented 9 months ago

Your .cpp file cannot be parsed as UTF-8. Your .ipynb file does not appear to follow specifications (missing [] for the data section). We cannot support these cases.