cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
588 stars 7 forks source link

quick documentation failed for some functions #2470

Open dracodoc opened 3 years ago

dracodoc commented 3 years ago

With latest IDEA and cursive version, in the beginning I can get quick documentation on function, but after I updated the doc archive in setting for cursive, only some functions can have quick documentation, others will met error.

With previous version (IDEA 2020.1 and cursive 1 month ago), all quick documentation don't work after updating clojure doc archive.

image

I installed clojure using clj.

dracodoc commented 3 years ago

If I delete the archive file clojuredocs-export.json in AppData\Local\JetBrains\IdeaIC2020.3\, every quick documentation works. Looks like the exported one doesn't work, fetch from remote directly will work. The problem is I cannot disable the archive from setting.

lkyhfx commented 3 years ago

I have the same problem. It seams that there is something wrong while parsing the clojuredocs-export.json. After delete the file, only quick doc is showed, no clojuredoc examples.

lkyhfx commented 3 years ago

This problem seems to happen in windows and the system language is not English (My system language is Chinese). The error is caused by the Unicode characters such as Korean, Chinese etc. in the ClojureDoc examples. After remove all the examples that contain Unicode characters in clojuredocs-export.json, the behavior of the quick documentation is expected. @dracodoc

dracodoc commented 3 years ago

@lkyhfx Thanks for pin down the root cause of the problem. I have same configuration, windows with Chinese language.

This seemed to be an encoding/character set problem, hope it can be fixed soon.