用straight安装dap-mode 的问题?

在用straight安装dap-mode 的配置如下:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                                 ;;
(use-package dap-mode                                                                                 ;;                                                                             
  :straight t                                                                                        ;;
  :after hydra lsp-mode                                                                               ;;
  ;; Uncomment the config below if you want all UI panes to be hidden by default!                     ;;
  ;; :custom  lsp-mode won't configure dap-mode                                                       ;;
 ;(lsp-enable-dap-auto-configure nil)                                                                 ;;
  ;; :config                                                                                          ;;
  ;; (dap-ui-mode 1)                                                                                  ;;
  :commands dap-debug                                                                                ;;
  ;:hook ((python-mode . dap-ui-mode) (python-mode . dap-mode))                                       ;;
  :custom                                                                                             ;;
  (dap-auto-configure-mode t)                                                                         ;;
  :config                                                                                             ;;
  (setq dap-auto-configure-features '(sessions locals breakpoints expressions repl controls tooltip)) ;;
  (require 'dap-python)                                                                               ;;
  (require 'dap-ui)                                                                                   ;;
  (dap-mode t)                                                                                        ;;
  (dap-ui-mode 1)                                                                                     ;;
  ;;(dap-ui-breakpionts 1)                                                                            ;;
  ;; enables mouse hover support                                                                      ;;
  (dap-tooltip-mode t)                                                                                ;;
  ;; use tooltips for mouse hover                                                                     ;;
  ;; if it is not enabled `dap-mode' will use the minibuffer.                                         ;;
  (tooltip-mode 1)                                                                                    ;;
  ;; displays floating panel with debug buttons                                                       ;;
  ;; requies emacs 26+                                                                                ;;
  (dap-ui-controls-mode 1)                                                                            ;;
  ;; Set up Node debugging                                                                            ;;
  (setq dap-python-debugger 'debugpy)                                                                 ;;
  (setq inhibit-eol-conversion t)                                                                     ;;
  ;;(require 'dap-node)                                                                               ;;
  ;;(dap-node-setup) ;; Automatically installs Node debug adapter if needed                           ;;
   (setq dap-auto-show-output t)                                                                      ;;
;;Remove dap ui features                                                                              ;;
;;(remove-hook 'dap-mode-hook #'dap-tooltip-mode)                                                     ;;
;;(remove-hook 'dap-ui-mode-hook #'dap-ui-controls-mode)                                              ;;
  (require 'dap-hydra)                                                                                ;;
 ;; (require 'dap-gdb-lldb)                                                                           ;;
  ;;(dap-gdb-lldb-setup)                                                                              ;;
  ;;:hydra                                                                                            ;;
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                       ;;
  (add-hook 'dap-stopped-hook                             ;;                                          ;;
        (lambda (arg) (call-interactively #'dap-hydra))) ;;                                           ;;
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                       ;;
 )                   

当emacs报出如下问题:git连接不上。

$ cd /Users/apple/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/melpa/melpa.git /Users/apple/.emacs.d/straight/repos/melpa/ --no-single-branch

Cloning into '/Users/apple/.emacs.d/straight/repos/melpa'...
fatal: unable to access 'https://github.com/melpa/melpa.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

[Return code: 128]

但是但我把上面报错的代码复制到终端下直接下载时是可以下载的如下图:

在emacs下是否需要其他设置来链接github? emacs版本[email protected],mac

https://www.bing.com/search?q=HTTP%2F2%20stream%201%20was%20not%20closed%20cleanly%20before%20end%20of%20the%20underlying%20stream

你不是第一个遇到这个问题的,所以,善用搜索引擎。