{"action":"created","issue":{"url":"https://api.github.com/repos/emacs-helm/helm-ls-git/issues/31","labels_url":"https://api.github.com/repos/emacs-helm/helm-ls-git/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/emacs-helm/helm-ls-git/issues/31/comments","events_url":"https://api.github.com/repos/emacs-helm/helm-ls-git/issues/31/events","html_url":"https://github.com/emacs-helm/helm-ls-git/issues/31","id":88128067,"number":31,"title":"helm-ls-git-init errors in not git working copy.","user":{"login":"Yasushi","id":7523,"avatar_url":"https://avatars.githubusercontent.com/u/7523?v=3","gravatar_id":"","url":"https://api.github.com/users/Yasushi","html_url":"https://github.com/Yasushi","followers_url":"https://api.github.com/users/Yasushi/followers","following_url":"https://api.github.com/users/Yasushi/following{/other_user}","gists_url":"https://api.github.com/users/Yasushi/gists{/gist_id}","starred_url":"https://api.github.com/users/Yasushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yasushi/subscriptions","organizations_url":"https://api.github.com/users/Yasushi/orgs","repos_url":"https://api.github.com/users/Yasushi/repos","events_url":"https://api.github.com/users/Yasushi/events{/privacy}","received_events_url":"https://api.github.com/users/Yasushi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-14T05:54:14Z","updated_at":"2015-06-14T07:07:21Z","closed_at":"2015-06-14T06:24:35Z","body":"\r\nBacktrace.\r\n```\r\nDebugger entered--Lisp error: (wrong-type-argument stringp nil)\r\n  string-match(\"\\n\" nil 0)\r\n  split-string(nil \"\\n\" t)\r\n  (let* ((root (helm-ls-git-root-dir)) (--cl-var-- (split-string (helm-ls-git-list-files) \"\\n\" t)) (c nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq c (car --cl-var--)) (setq --cl-var-- (cons (expand-file-name c root) --cl-var--)) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var--))\r\n  (let ((data (let* ((root (helm-ls-git-root-dir)) (--cl-var-- (split-string (helm-ls-git-list-files) \"\\n\" t)) (c nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq c (car --cl-var--)) (setq --cl-var-- (cons (expand-file-name c root) --cl-var--)) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var--)))) (if (null data) (progn (setq data (if helm-ls-git-log-file (save-current-buffer (set-buffer (find-file-noselect helm-ls-git-log-file)) (prog1 (buffer-substring-no-properties ... ...) (kill-buffer))) data)))) (helm-init-candidates-in-buffer (quote global) data))\r\n  helm-ls-git-init()\r\n  apply(helm-ls-git-init nil)\r\n  helm-funcall-with-source(((name . \"Git files\") (header-name . helm-ls-git-header-name) (init . helm-ls-git-init) (candidates . helm-candidates-in-buffer) (update lambda nil (setq helm-ls-git--root-directory (helm-default-directory))) (keymap keymap (3 keymap (103 . helm-ff-run-gid)) (19 . helm-ls-git-run-grep) keymap (23 . helm-yank-text-at-point) (3 keymap (63 . helm-generic-file-help) (64 . helm-ff-run-insert-org-link) (88 . helm-ff-run-open-file-with-default-tool) (24 . helm-ff-run-open-file-externally) (15 . helm-ff-run-switch-other-frame) (111 . helm-ff-run-switch-other-window) (61 . helm-ff-run-ediff-merge-file)) (67108925 . helm-ff-run-ediff-file) (27 keymap (46 . helm-ff-run-etags) (105 . helm-ff-properties-persistent) (68 . helm-ff-run-delete-file) (72 . helm-ff-run-hardlink-file) (83 . helm-ff-run-symlink-file) (76 . helm-ff-run-load-file) (66 . helm-ff-run-byte-compile-file) (67 . helm-ff-run-copy-file) (82 . helm-ff-run-rename-file) (103 keymap (112 . helm-ff-run-pdfgrep) (122 . helm-ff-run-zgrep) (115 . helm-ff-run-grep))) (19 . helm-ff-run-grep) (29 . helm-ff-run-toggle-basename) keymap (f13 lambda nil (interactive) (helm-select-nth-action 12)) (f12 lambda nil (interactive) (helm-select-nth-action 11)) (f11 lambda nil (interactive) (helm-select-nth-action 10)) (f10 lambda nil (interactive) (helm-select-nth-action 9)) (f9 lambda nil (interactive) (helm-select-nth-action 8)) (f8 lambda nil (interactive) (helm-select-nth-action 7)) (f7 lambda nil (interactive) (helm-select-nth-action 6)) (f6 lambda nil (interactive) (helm-select-nth-action 5)) (f5 lambda nil (interactive) (helm-select-nth-action 4)) (f4 lambda nil (interactive) (helm-select-nth-action 3)) (f3 lambda nil (interactive) (helm-select-nth-action 2)) (f2 lambda nil (interactive) (helm-select-nth-action 1)) (menu-bar keymap (help-menu keymap (describe keymap (describe-mode . helm-help)))) (help keymap (109 . helm-help)) (f1 lambda nil (interactive) (helm-select-nth-action 0)) (8 . delete-backward-char) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (21 . helm-force-update) (6 . helm-follow-mode) (9 . helm-copy-to-buffer) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (4 . helm-delete-current-selection) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) (19 . undefined) (18 . undefined) (23 . helm-yank-text-at-point) (24 keymap (2 . helm-resume-list-buffers-after-quit) (98 . helm-resume-previous-session-after-quit) (6 . helm-quit-and-find-file)) (11 . helm-delete-minibuffer-contents) (67108896 . helm-toggle-visible-mark) (0 . helm-toggle-visible-mark) (C-M-up . helm-scroll-other-window-down) (C-M-down . helm-scroll-other-window) (M-prior . helm-scroll-other-window-down) (M-next . helm-scroll-other-window) (12 . helm-recenter-top-bottom-other-window) (15 . helm-next-source) (10 . helm-execute-persistent-action) (26 . helm-execute-persistent-action) (9 . helm-select-action) ...) (action (\"Find file\" . helm-find-many-files) (\"Find file as root\" . helm-find-file-as-root) (\"Find file other window\" . find-file-other-window) (\"Git grep files (`C-u' only files with ext, `C-u C-u' all)\" . helm-ls-git-grep) (\"Gid\" . helm-ff-gid) (\"Search in Git log (C-u show patch)\" . helm-ls-git-search-log) (\"Find file other frame\" . find-file-other-frame) (\"Open dired in file's directory\" . helm-open-dired) (\"Grep File(s) `C-u recurse'\" . helm-find-files-grep) (\"Zgrep File(s) `C-u Recurse'\" . helm-ff-zgrep) (\"Pdfgrep File(s)\" . helm-ff-pdfgrep) (\"Insert as org link\" . helm-files-insert-as-org-link) (\"Checksum File\" . helm-ff-checksum) (\"Ediff File\" . helm-find-files-ediff-files) (\"Ediff Merge File\" . helm-find-files-ediff-merge-files) (\"Etags `M-., C-u tap, C-u C-u reload tag file'\" . helm-ff-etags-select) (\"View file\" . view-file) (\"Insert file\" . insert-file) (\"Add marked files to file-cache\" . helm-ff-cache-add-file) (\"Delete file(s)\" . helm-delete-marked-files) (\"Copy file(s) `M-C, C-u to follow'\" . helm-find-files-copy) (\"Rename file(s) `M-R, C-u to follow'\" . helm-find-files-rename) (\"Symlink files(s) `M-S, C-u to follow'\" . helm-find-files-symlink) (\"Relsymlink file(s) `C-u to follow'\" . helm-find-files-relsymlink) (\"Hardlink file(s) `M-H, C-u to follow'\" . helm-find-files-hardlink) (\"Open file externally (C-u to choose)\" . helm-open-file-externally) (\"Open file with default tool\" . helm-open-file-with-default-tool) (\"Find file in hex dump\" . hexl-find-file)) (help-message . helm-generic-file-help-message) (candidate-transformer helm-ls-git-transformer helm-ls-git-sort-fn) (filtered-candidate-transformer helm-fuzzy-highlight-matches) (action-transformer . helm-transform-file-load-el) (volatile) (match identity) (mode-line . helm-generic-file-mode-line-string) (header-line . \"C-j: Find file (keeping session)\") (dont-plug helm-compile-source--candidates-in-buffer helm-compile-source--match-plugin helm-compile-source--persistent-help) (matchplugin) (match-part . helm-ls-git-match-part) (get-line . buffer-substring-no-properties) (search helm-mp-exact-search helm-mp-search helm-candidates-in-buffer-search-default-fn)) helm-ls-git-init)\r\n  helm-funcall-foreach(init nil)\r\n  helm-initial-setup(nil)\r\n  helm-initialize(nil nil nil (helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found))\r\n  #[0 \"\\311\\211\\211\\211\\305\\206\\n\u0000\u000E%\u001E%\u001E&\u001E'\u001E(\u001E)\\312\\313\u000E*\\\"\\314\\315\\316\\317\\320\\321\u0006\u0006!\\322\\\"\\323\\324%DC\\216\\325\\303\\301\\307\\300$\\210\\326\u000E%!\\210\u000E+\\203?\u0000\\327\\330!\\210\\331\\332\\333\\\"\\210\\334\\335!\\210\\314\\336DC\\216\\337\\302\\301\\304\\303\\306\\307\\310&\u0007\\210*\\210\u000E&?\\205b\u0000\\340 \\334\\341\\342\\343\\344\\\"P!\\210-\\207\" [(helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found) nil nil nil nil \"*helm for files*\" nil nil nil nil mapcar #[257 \"\\211\u0001JB\\207\" [] 3 \"\\n\\n(fn V)\"] funcall make-byte-code 0 \"\\300\\301\\211\u0002:\\203\u001F\u0000\u0002@\\262\u0002\u0001\\211A\\262\u0003\\242\\262\u0001\\211\u0002L\\210\u0002A\\262\u0003\\202\u0003\u0000\\266\u0003\\302\\303!\\207\" vconcat vector [nil helm-log \"restore variables\"] 5 \"\\n\\n(fn)\" helm-initialize helm-display-buffer helm--remap-mouse-mode 1 add-hook post-command-hook helm--maybe-update-keymap helm-log \"show prompt\" #[0 \"\\300 \\207\" [helm-cleanup] 1 \"\\n\\n(fn)\"] helm-read-pattern-maybe helm-execute-selection-action \"[End session] \" make-string 41 45 helm-buffer helm-quit helm-in-persistent-action helm-current-source helm-source-name helm-restored-variables helm-prevent-escaping-from-minibuffer] 9 \"\\n\\n(fn)\"]()\r\n  funcall(#[0 \"\\311\\211\\211\\211\\305\\206\\n\u0000\u000E%\u001E%\u001E&\u001E'\u001E(\u001E)\\312\\313\u000E*\\\"\\314\\315\\316\\317\\320\\321\u0006\u0006!\\322\\\"\\323\\324%DC\\216\\325\\303\\301\\307\\300$\\210\\326\u000E%!\\210\u000E+\\203?\u0000\\327\\330!\\210\\331\\332\\333\\\"\\210\\334\\335!\\210\\314\\336DC\\216\\337\\302\\301\\304\\303\\306\\307\\310&\u0007\\210*\\210\u000E&?\\205b\u0000\\340 \\334\\341\\342\\343\\344\\\"P!\\210-\\207\" [(helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found) nil nil nil nil \"*helm for files*\" nil nil nil nil mapcar #[257 \"\\211\u0001JB\\207\" [] 3 \"\\n\\n(fn V)\"] funcall make-byte-code 0 \"\\300\\301\\211\u0002:\\203\u001F\u0000\u0002@\\262\u0002\u0001\\211A\\262\u0003\\242\\262\u0001\\211\u0002L\\210\u0002A\\262\u0003\\202\u0003\u0000\\266\u0003\\302\\303!\\207\" vconcat vector [nil helm-log \"restore variables\"] 5 \"\\n\\n(fn)\" helm-initialize helm-display-buffer helm--remap-mouse-mode 1 add-hook post-command-hook helm--maybe-update-keymap helm-log \"show prompt\" #[0 \"\\300 \\207\" [helm-cleanup] 1 \"\\n\\n(fn)\"] helm-read-pattern-maybe helm-execute-selection-action \"[End session] \" make-string 41 45 helm-buffer helm-quit helm-in-persistent-action helm-current-source helm-source-name helm-restored-variables helm-prevent-escaping-from-minibuffer] 9 \"\\n\\n(fn)\"])\r\n  helm-internal((helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found) nil nil nil nil \"*helm for files*\" nil nil nil)\r\n  apply(helm-internal ((helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found) nil nil nil nil \"*helm for files*\" nil nil nil))\r\n  helm((helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found) nil nil nil nil \"*helm for files*\" nil nil nil)\r\n  apply(helm ((helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found) nil nil nil nil \"*helm for files*\" nil nil nil))\r\n  helm(:sources (helm-source-buffers-list helm-source-files-in-current-dir helm-source-recentf helm-source-ls-git-status helm-source-ls-git helm-source-bookmarks helm-source-buffer-not-found) :ff-transformer-show-only-basename nil :buffer \"*helm for files*\")\r\n  helm-for-files()\r\n  call-interactively(helm-for-files nil nil)\r\n  command-execute(helm-for-files)\r\n```"},"comment":{"url":"https://api.github.com/repos/emacs-helm/helm-ls-git/issues/comments/111794075","html_url":"https://github.com/emacs-helm/helm-ls-git/issues/31#issuecomment-111794075","issue_url":"https://api.github.com/repos/emacs-helm/helm-ls-git/issues/31","id":111794075,"user":{"login":"thierryvolpiatto","id":1533939,"avatar_url":"https://avatars.githubusercontent.com/u/1533939?v=3","gravatar_id":"","url":"https://api.github.com/users/thierryvolpiatto","html_url":"https://github.com/thierryvolpiatto","followers_url":"https://api.github.com/users/thierryvolpiatto/followers","following_url":"https://api.github.com/users/thierryvolpiatto/following{/other_user}","gists_url":"https://api.github.com/users/thierryvolpiatto/gists{/gist_id}","starred_url":"https://api.github.com/users/thierryvolpiatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thierryvolpiatto/subscriptions","organizations_url":"https://api.github.com/users/thierryvolpiatto/orgs","repos_url":"https://api.github.com/users/thierryvolpiatto/repos","events_url":"https://api.github.com/users/thierryvolpiatto/events{/privacy}","received_events_url":"https://api.github.com/users/thierryvolpiatto/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T07:07:21Z","updated_at":"2015-06-14T07:07:21Z","body":"\nChunyang Xu <notifications@github.com> writes:\n\n>     Why user-error ?.\n>    \n> Because I think helm-ls-git-ls should not be called outside a git repo.\n\nBut user-error is not returning after error, it is just warning and\ncontinue running the rest of the code.\n\nSee last commit.\n\n-- \nThierry\nGet my Gnupg key:\ngpg --keyserver pgp.mit.edu --recv-keys 59F29997 \n"}}