๐ Hi, I'm Girish.
girishji / devdocs.vim Goto Github PK
View Code? Open in Web Editor NEWLookup API documentation from devdocs.io without leaving Vim.
License: MIT License
Lookup API documentation from devdocs.io without leaving Vim.
License: MIT License
๐ Hi, I'm Girish.
On gvim, after installed python documentation, I did;
:DevdocsFindos
Got this error:
No abbreviation found
:DevdocsFind
Error detected while processing function <lambda>47:
line 1:
error: Error running Lua: from pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html
error: tput: createProcess: does not exist (No such file or directory) from pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html
error: stack traceback: from pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html
error: ^I...\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua:67: in upvalue 'set_columns' from pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html
error: ^I...\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua:344: in function 'pandoc.scaffolding.Writer.Pandoc' from pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html
error: ^Iwhile rendering Pandoc from pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html
error: stack traceback: from pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html
Error detected while processing function <lambda>48:
line 2:
pandoc -t C:\workspaces\system\config\vim\plugged\devdocs.vim/pandoc/writer.lua C:\Users\pedro\.local\share\devdocs/python~3.11/library/os.html exited with status 84
Error detected while processing function <lambda>46[5]..<lambda>44:
line 5:
Pandoc failed (Vim:E1012: Type mismatch; expected dict<any> but got special)
No abbreviation found
:q
The error reproduces for other languages as well.
When I was trying to install lua docs, I encountered some shell error:
may this piece of code is not compatible with windows:
also, the mv
arguments in your script is not safe (hasn't been quoted):
$'mv {tmpdir} {outdir}'->system()
I suppose it should be:
$'mv "{tmpdir}" "{outdir}"'->system()
and for windows, it should be:
$'ren "{tmpdir}" "{outdir}"'->system()
On Ubuntu 20.04, latest curl version is 7.68.0, which does not support --output-dir
. This causes an issue when trying to download docs ( line 80 of install.vim
).
Solution:
- $'curl -fsSL --remote-name-all --output-dir {tmpdir} --create-dirs "{url}"',
+ $'curl -fsSL --remote-name-all -o "{tmpdir}/#1.json" --create-dirs "{url}"',
#1
will match {{index,db}}
from {url}
This is the weird error I get, I suppose the semver check/assertion is buggy. crates.nvim has a very good & tested semver implementation implemented in lua:
vim/_editor.lua:0: /home/izelnakri/.config/home-manager/static/.config/nvim/init.lua..nvim_exec2() called at /home/izelnakri/.config/home-manager/static/.config/nvim/init.lua:0../home/izelnakri/.local/share/nvim/lazy/devdocs.vim/plugin/setup.vim, line 2: Vim(echoerr):Needs Vim version 9.01 and above
# stacktrace:
- vim/_editor.lua:0 _in_ **cmd**
- ~/.config/nvim/lua/config/lazy.lua:28
- static/.config/nvim/init.lua:2
Problem code: https://github.com/girishji/devdocs.vim/blob/main/plugin/setup.vim#L1
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
This happened when I was using "DevdocsFind":
This plugin was trying to load "writer.lua" from a non-existing position: "~/.vim/vim/site/pandoc".
I have a initializing script devdocs2.vim
located int "/.vim/vim/site/bundles/", but don't have anything in "/.vim/vim/site/pandoc"
but if I create a pandoc
folder in "~/.vim/vim/site" and put writer.lua
from this plugin in pandoc
folder, it will work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.