Closed declantsien closed 2 years ago
Try to initialized a lisp project using eldev init in an empty directory, got this error
eldev init
Debugger entered--Lisp error: (error "No VC backend is responsible for /home/declan/Workspace/test-eldev/") error("No VC backend is responsible for %s" "/home/declan/Workspace/test-eldev/") vc-responsible-backend("/home/declan/Workspace/test-eldev/") eldev-vc-detect() eldev--do-init() eldev-init() apply(eldev-init nil) eldev-cli(("-d" "init")) (kill-emacs (eldev-cli (append (cdr (member "--" command-line-args)) nil))) command-line-1(("--execute" "(let ((eldev--emacs-version (format \"%s.%s\" emacs-major-version emacs-minor-version))\n (eldev--dir (getenv \"ELDEV_DIR\"))\n ;; This is intentional. First, this is in case ELDEV_LOCAL is\n ;; defined, second, this is just Eldev default for packages.\n (load-prefer-newer t))\n ;; Setting `debug-on-error' would be useful, but it can break many\n ;; `package-*' functions, since those use `with-demoted-errors' and\n ;; so `condition-case-unless-debug'.\n (unless (and (fboundp 'version<=) (version<= \"24.1\" eldev--emacs-version))\n (error \"Eldev requires Emacs 24.1 or newer\"))\n (setf package-user-dir (expand-file-name \"bootstrap\" (expand-file-name eldev--emacs-version (if (= (length eldev--dir) 0) \"~/.eldev\" eldev--dir)))\n package-directory-list nil\n package-archives nil)\n (require 'package)\n (package-initialize t)\n (let ((package-archives '((\"melpa-stable\" . \"http://stable.melpa.org/packages/\")))\n (archive-name \"MELPA Stable\")\n (inhibit-message t)\n (eldev-local (getenv \"ELDEV_LOCAL\"))\n eldev-pkg\n requirements)\n (unless (= (length eldev-local) 0)\n (if (string-prefix-p \":pa:\" eldev-local)\n (setf package-archives `((\"bootstrap-pa\" . ,(file-name-as-directory (substring eldev-local (length \":pa:\")))))\n archive-name \"a local package archive\")\n (with-temp-buffer\n (insert-file-contents (expand-file-name \"eldev.el\" eldev-local))\n (setf eldev-pkg (package-buffer-info)\n (package-desc-dir eldev-pkg) (expand-file-name eldev-local))\n ;; Currently Eldev h
Will be released in the next stable version, doesn't seem too important. I never noticed this since my ~ is managed by Git, so vc-responsible-backend doesn't really fail here.
~
vc-responsible-backend
Nice. It works.
Try to initialized a lisp project using
eldev init
in an empty directory, got this error