puremourning / vimspector

vimspector - A multi-language debugging system for Vim
http://puremourning.github.io/vimspector-web
Apache License 2.0
4.1k stars 175 forks source link

Fail to install gadget #775

Closed lainegates closed 1 year ago

lainegates commented 1 year ago

Description

I try to install gadget "debugpy",but failed with following message

nstalling debugpy@1.6.7...
Checksum doesn't match for /home/xxx/.vim/plugged/vimspector/gadgets/linux/download/debugpy/1.6.7/v1.6.7.zip, removing it
Removing existing /home/xxx/.vim/plugged/vimspector/gadgets/linux/download/debugpy/1.6.7/v1.6.7.zip
Downloading https://github.com/microsoft/debugpy/archive/v1.6.7.zip to /home/xxx/.vim/plugged/vimspector/gadgets/linux/download/debugpy/1.6.7/v1.6.7.zip
Traceback (most recent call last):
  File "/home/xxx/.vim/plugged/vimspector/python3/vimspector/installer.py", line 529, in InstallGadget
    file_path = DownloadFileTo(
  File "/home/xxx/.vim/plugged/vimspector/python3/vimspector/installer.py", line 670, in DownloadFileTo
    f.write( u.read() )
  File "/usr/lib/python3.8/http/client.py", line 472, in read
    s = self._safe_read(self.length)
  File "/usr/lib/python3.8/http/client.py", line 615, in _safe_read
    raise IncompleteRead(data, amt-len(data))
 - FAILED installing debugpy: IncompleteRead(4671652 bytes read, 2642855 more expected)
http.client.IncompleteRead: IncompleteRead(4671652 bytes read, 2642855 more expected)
Failed to install adapters:
 * debugpy

could anyone help me ?

Works in vim?

Reproducable in Vim

Works with clean config?

Yes

Sample project works?

Not reproducable with sample project

Minimal Reproduction

  1. remove directory "~/.vim/plugged/vimspector"
  2. install vimspector with "vim-plug".
  3. VimspectorInstall debugpy

Expected Behaviour

install debugpy successfully

Actual Behaviour

install debugpy failed

Additional information

No response

Installation Type

Plugin Manager (git clone)

Vimspector version

2dd35dede7712403645a484b6dc5fa23c25172b2

Debug Info

No response

Log file

No response

Vim version

9.0

Python version

No response

Neovim diagnostics

No response

Operating System

Ubuntu 20.04

Declaration

puremourning commented 1 year ago

The problem is with your internet connection or firewall.