wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.87k stars 266 forks source link

Failed to install plugins on windows10 #1019

Closed wax5798 closed 2 years ago

wax5798 commented 2 years ago

Steps to reproduce

config packer:

        packer.init({
            compile_path = packer_compiled,
            git = { clone_timeout = 60, default_url_format = 'https://github.com/%s' },
            disable_commands = true,
            display = {
                open_fn = function()
                    return require("packer.util").float({ border = "none" })
                end,
            },
        })

Fatal error happens after execcuting :PackerInstall. The plugins installed failed

Actual behaviour

Error message like this:

 Errors:
    Cloning into 'C:\Users\wax5798\AppData\Local\nvim-data\site\pack\packer\opt\sniprun'...
    fatal: unable to access 'https://github.com/michaelb/sniprun/': Failed to connect to github.com port 443: Timed out

I think the url is wrong. It should be 'https://github.com/michaelb/sniprun', but not 'https://github.com/michaelb/sniprun/'

And if I change the config default_url_format = 'git@github.com:%s', plugins will be installed successfully.

Expected behaviour

Plugins will be installed successfully even if default_url_format = 'https://github.com/%s'

packer files

Plugin specification file(s) Post or link your plugin specification files here, if you aren't able to provide a minimal reproducer
packer log file Post the contents of ~/.cache/nvim/packer.nvim.log here
packer compiled file Post the contents of `packer_compiled.vim` here
wax5798 commented 2 years ago

I found my provider-python configured wrong