[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No VC backend is responsible for
From: |
andrea crotti |
Subject: |
Re: No VC backend is responsible for |
Date: |
Thu, 21 May 2015 10:41:35 +0100 |
Yes true thanks, I thought Helm could be the issue but it doesn't work.
Actually the problems seems to be my code:
(defun ca-is-version-control-file ()
"Return nil unless the file is in the git files"
(if (vc-working-revision (buffer-file-name))
(auto-revert-mode t)))
(add-hook 'find-file-hook 'ca-is-version-control-file)
Makes sense, it's just a bit surprising because I haven't touched this
code for a long time and it used to work..
Probably checking if the file is under vc using something that is not
vc-workiing-revision would do the trick..
Debugger entered--Lisp error: (error "No VC backend is responsible for
/home/user/sample.hs")
signal(error ("No VC backend is responsible for /home/user/sample.hs"))
error("No VC backend is responsible for %s" "/home/user/sample.hs")
vc-responsible-backend("/home/user/sample.hs")
vc-working-revision("/home/user/sample.hs")
(if (vc-working-revision (buffer-file-name)) (auto-revert-mode t))
ca-is-version-control-file()
run-hooks(find-file-hook)
after-find-file(t t)
find-file-noselect-1(#<buffer sample.hs> "~/sample.hs" nil nil
"~/sample.hs" nil)
find-file-noselect("/home/user/sample.hs" nil nil nil)
find-file("/home/user/sample.hs")
find-file-at-point("/home/user/sample.hs")
helm-find-file-or-marked("/home/user/sample.hs")
apply(helm-find-file-or-marked "/home/user/sample.hs")
helm-funcall-with-source(((name . "Find Files") (header-name lambda
(name) (concat name helm-find-files-doc-header)) (init lambda nil
(setq helm-ff-auto-update-flag helm-ff-auto-update-initial-value)
(setq helm-ff--auto-update-state helm-ff-auto-update-flag)
(helm-set-local-variable (quote bookmark-make-record-function)
(function helm-ff-make-bookmark-record))) (candidates .
helm-find-files-get-candidates) (keymap keymap (right .
helm-execute-persistent-action) (left . helm-find-files-up-one-level)
(127 . #[0
"\306\307\310\311\312\305!\313\"\314$\216\315\302!\210\316\304!\317\211\211\301=\203'
2015-05-21 10:22 GMT+01:00 Dmitry Gutov <dgutov@yandex.ru>:
> On 05/21/2015 12:02 PM, andrea crotti wrote:
>
>> vc-responsible-backend: No VC backend is responsible for
>> /home/username/hello.py
>
>
> You should M-x toggle-debug-on-error and post the backtrace here.