emacs-vs/ts-docstr

Can't install with the method 1 snippet

nicodebo opened this issue · 3 comments

Hello,
When I run the straight.el snippet, I get the following backtrace:

Debugger entered--Lisp error: (error "Failed to run \"git\"; see buffer *straight-process*")
  error("Failed to run %S; see buffer %s" "git" "*straight-process*")
  straight--process-output("git" "branch" "-r")
  straight-vc-git--default-remote-branch("origin" "ts-docstr")
  straight-vc-git-clone((:repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el") :package "ts-docstr" :type git :local-repo "ts-docstr") nil)
  apply(straight-vc-git-clone ((:repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el") :package "ts-docstr" :type git :local-repo "ts-docstr") nil))
  straight-vc(clone git (:repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el") :package "ts-docstr" :type git :local-repo "ts-docstr") nil)
  straight-vc-clone((:repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el") :package "ts-docstr" :type git :local-repo "ts-docstr"))
  straight--clone-repository((:repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el") :package "ts-docstr" :type git :local-repo "ts-docstr") nil)
  #f(compiled-function () #<bytecode 0x567b26c3de2ebe7>)()
  straight--transaction-exec(use-package-\"c362823fcddd97fd224e3003d7691faa\"-nil-nil :now #f(compiled-function () #<bytecode 0x567b26c3de2ebe7>))
  straight-use-package((ts-docstr :repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el")))
  (progn (straight-use-package '(ts-docstr :repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el"))) (defvar use-package--warning74 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" ... keyword ...))) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'ts-docstr nil t)) (display-warning 'use-package (format "Cannot load %s" 'ts-docstr) :error)) ((debug error) (funcall use-package--warning74 :catch err))))
  (progn (defvar bootstrap-version) (progn (straight-use-package '(ts-docstr :repo "emacs-vs/ts-docstr" :fetcher github :files (:defaults "langs/*.el"))) (defvar use-package--warning74 #'(lambda (keyword err) (let ((msg ...)) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'ts-docstr nil t)) (display-warning 'use-package (format "Cannot load %s" 'ts-docstr) :error)) ((debug error) (funcall use-package--warning74 :catch err)))))
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  command-execute(eval-last-sexp)

In the buffer straight-process it says:

$ cd /home/debz/.config/emacs/straight/repos/
$ git clone --origin origin --no-checkout emacs-vs/ts-docstr /home/debz/.config/emacs/straight/repos/ts-docstr/ --no-single-branch

fatal: repository 'emacs-vs/ts-docstr' does not exist

[Return code: 128]

$ cd /home/debz/.config/emacs/straight/repos/ts-docstr/
$ git branch -r

[File error while Setting current directory]

replacing :fetcher github by :host github seems to fix the cloning issue.
But then I have the following error in the backtrace:

Debugger entered--Lisp error: (error "Could not find package msgu. Updating recipe repos...")
  error("Could not find package %S. Updating recipe reposit..." msgu (org-elpa melpa gnu-elpa-mirror nongnu-elpa el-get emacsmirror-mirror))
  straight--convert-recipe(msgu "Building ts-docstr")
  straight-use-package(msgu nil nil "Building ts-docstr")
  straight--build-package((:host github :repo "emacs-vs/ts-docstr" :files (:defaults "langs/*.el") :package "ts-docstr" :type git :local-repo "ts-docstr") nil)
  #f(compiled-function () #<bytecode 0xb8bda10662957cf>)()
  straight--transaction-exec(use-package-\"f3798bfcdd1758f2a551384d78558eff\"-nil-nil :now #f(compiled-function () #<bytecode 0xb8bda10662957cf>))
  straight-use-package((ts-docstr :host github :repo "emacs-vs/ts-docstr" :files (:defaults "langs/*.el")))
  (progn (straight-use-package '(ts-docstr :host github :repo "emacs-vs/ts-docstr" :files (:defaults "langs/*.el"))) (defvar use-package--warning75 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" ... keyword ...))) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'ts-docstr nil t)) (display-warning 'use-package (format "Cannot load %s" 'ts-docstr) :error)) ((debug error) (funcall use-package--warning75 :catch err))))
  (progn (defvar bootstrap-version) (progn (straight-use-package '(ts-docstr :host github :repo "emacs-vs/ts-docstr" :files (:defaults "langs/*.el"))) (defvar use-package--warning75 #'(lambda (keyword err) (let ((msg ...)) (display-warning 'use-package msg :error)))) (condition-case err (if (not (require 'ts-docstr nil t)) (display-warning 'use-package (format "Cannot load %s" 'ts-docstr) :error)) ((debug error) (funcall use-package--warning75 :catch err)))))
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  command-execute(eval-last-sexp)

Oh, yes. It relies on msgu which isn't on melpa.

You can either straight msgu or consider adding jcs-elpa to your package archive (if using package.el). Both method should work! Otherwise, I am closing this issue since this isn't an issue from this package!

Hope the above information help!