girishji / devdocs.vim

Lookup API documentation from devdocs.io without leaving Vim.
MIT License
41 stars 3 forks source link

error when I involk `:DevdocsInstall` #1

Closed Song-Tianxiang closed 7 months ago

Song-Tianxiang commented 7 months ago

I have installed plugin, and do :DevdocsInstall get

Error detected while processing /Users/donotreason/.vim/pack/downloads/opt/devdocs.vim/autoload/devdocs/install.vim:
line    4:
E1053: Could not import "./popup.vim"
E1048: Item not found in script: Install
Song-Tianxiang commented 7 months ago

all Devdocs* gives me similar error. vim version: 9.1.100. scope.vim gives the error too

Error detected while processing /Users/donotreason/.vim/.data/plug/scope.vim/autoload/scope/fuzzy.vim:
line    4:
E1053: Could not import "./popup.vim"
E1048: Item not found in script: File
girishji commented 7 months ago

Can you upgrade and try again?

I could not reproduce on macos. Is this happening on windows/linux? Anyway I forced lazy loading. Let's see if it fixes.

DanielViberg commented 7 months ago

I can confirm, default installation i get: image

girishji commented 7 months ago

I reproduced the problem. It is a bug in vim9 import mechanism. Fix coming soon.

girishji commented 7 months ago

Try it now.

I am heading out for a few hrs. I may change some more things when I come back, so this is a quick fix.

girishji commented 7 months ago

I am closing this. It should be fixed. If you still have this error please reopen the issue.

DanielViberg commented 7 months ago

output Dowloading the doc seems to work, but using the find function does not.

girishji commented 7 months ago

Can you check ~/.local/share/devdocs and see if the lugs are there. I do not see the 'success' message echoed in command line. Did you type <c-c>?

It creates a .tmp directory, unpacks and then does mv. Maybe permissions issue? It should print a error message in any case, so I am surprised.

DanielViberg commented 7 months ago

I typed nothing, the popup was removed by itself. It seems populated: image

girishji commented 7 months ago

Looks like issue related to few specific slugs from devdocs.io CDN. thanks for fixing.

DanielViberg commented 7 months ago

Installation now seems to work, thanks!