-
Notifications
You must be signed in to change notification settings - Fork 21
:DevdocsFetch raises "nvim-devdocs: Error when fetching registery, exit code: 2" #31
Comments
It seems like the P.S. I am using Windows 11, the default curl is |
And how do you fix this? |
Only difference being that I'm using packer and not lazy. |
It's not related to the package manager or the plugin. The issue is either a problem with plenary or curl itself, the error code 2 refers to an internal error from |
Oh no, the Windows curl doesn't support the local curl = require("plenary.curl")
vim.print(curl.get("https://devdocs.io/docs.json", {
dry_run = true,
})) Copy all code and press the { "-sSL", "-D", "C:\\Users\\Username\\AppData\\Local\\Temp\\plenary_curl_a93748a1.headers", "--compressed", "-X", "GET", "https://devdocs.io/docs.json" } And then you can execute this command
So I think the solution is to change your curl path, don't use the Windows default one. P.S. You can use this code block to check which curl will be used in plenary: local Job = require'plenary.job'
Job:new({
command = 'where',
args = { 'curl' },
on_exit = function(j, return_val)
vim.print(vim.inspect(return_val))
vim.print(vim.inspect(j:result()))
end,
}):start() P.P.S. If you're using the
|
And how could i replace the curl file used by plenary? |
I'm afraid you could not do that easily. See code below: local job_opts = {
command = "curl",
args = args,
}
|
yeah Ok it worked to just add the choco bin path in front of sys32 in the path idk why it didn't work previously |
Actually I get this error now. Should i create a new issue for this? Error executing vim.schedule lua callback: ...acker\start\nvim-devdocs/lua/nvim-devdocs/transpiler.lua:340: attempt to perform arithmetic on local 'col_len' (a nil value) |
See this #32 |
I know that this issue has already been addressed, but without any solutions.
The text was updated successfully, but these errors were encountered: