nvim-devdocs icon indicating copy to clipboard operation
nvim-devdocs copied to clipboard

Error when installing some docs

Open michaelcarno opened this issue 2 years ago • 7 comments

Command :DevDocsInstall typescript give me that:

image and its not istalled. Same as angular, docker, etc.

michaelcarno avatar Oct 22 '23 13:10 michaelcarno

Hum, that's really weird. All the docs you've mentioned works perfectly for me after a fresh install and I can't reproduce. Can you provide more informations? nvim-treesitter, plenary.nvim, curl and neovim version.

luckasRanarison avatar Oct 22 '23 15:10 luckasRanarison

Im using nvim 0.9.4 with astronvim, curl 8.4, lastest version of treesitter and plenary from github. Javasript and rxjs installed fine without errors. My checkhealth

michaelcarno avatar Oct 22 '23 18:10 michaelcarno

Sorry for the really late reply, I've been busy with study and other projects but I'm back to active development now. Can you still reproduce the issue?

luckasRanarison avatar Dec 01 '23 07:12 luckasRanarison

Now i get nvim-devdocs: Error when fetching registery, exit code: 2 on fetch or install on any docs.

michaelcarno avatar Dec 01 '23 11:12 michaelcarno

If you're using windows maybe it's related to #31? I think the cause of the original issue was that the docs haven't been fetched correctly resulting in an invalid string.

luckasRanarison avatar Dec 01 '23 11:12 luckasRanarison

Yeah, its was wrong version of curl wiout some features. Now its fetched, and trying to install, right after installing start i got this error: image I can see downloaded *.md files in devdoc folder, but in menu :DevdocsOpen is empty

michaelcarno avatar Dec 01 '23 12:12 michaelcarno

Sorry again for the late reply.

I've added a log system so we should be able to trace the issue more accurately now. Could you set the DEBUG_PLENARY environment variable to true in your shell, run neovim, install the docs, then preview the log file content using the following command?

:e `=stdpath('data') . '/devdocs/log.txt'\`

luckasRanarison avatar Dec 22 '23 08:12 luckasRanarison