syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.67k stars 4.89k forks source link

File inside docker doesn't load for first time #12813

Closed SridharGS closed 5 years ago

SridharGS commented 5 years ago

Description :octocat:

File inside docker doesn't load for first time. Again need go to same path and file opens. It happens with all files inside docker.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: (wrong-type-argument arrayp (tramp-file-name #("docker" 0 6 (helm-ff-file t)) nil nil #("7bf27a2778cd" 0 12 (helm-ff-file t)) nil #("/home/node/projects1/.gitignore" 0 35 (helm-ff-file t)) nil))

Expected behaviour: :heart: :smile: Should load the file, if repeated for the second time file opens

System Info :computer:

Backtrace :paw_prints:

Debugger entered--Lisp error: (wrong-type-argument arrayp (tramp-file-name #("docker" 0 6 (helm-ff-file t)) nil nil #("7bf27a2778cd" 0 12 (helm-ff-file t)) nil #("/home/node/projects1/.gitignore" 0 35 (helm-ff-file t)) nil))
  git-gutter+-remote-default-directory("/home/node/projects1/" #("/docker:7bf27a2778cd:/home/node/projects1/.gitignore" 1 7 (helm-ff-file t) 8 20 (helm-ff-file t) 21 56 (helm-ff-file t)))
  git-gutter+-refresh()
  git-gutter+-mode(t)
  git-gutter+-turn-on()
  run-hooks(find-file-hook)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer .gitignore<projects1>> #("/docker:7bf27a2778cd:/home/node/projects1/.gitignore" 1 7 (helm-ff-file t) 8 20 (helm-ff-file t) 21 56 (helm-ff-file t)) nil nil #("/docker:7bf27a2778cd:/home/node/projects1/.gitignore" 1 7 (helm-ff-file t) 8 20 (helm-ff-file t)) (3489352 (-1 . 1)))
  find-file-noselect(#("/docker:7bf27a2778cd:/home/node/projects1/.gitignore" 0 56 (helm-ff-file t)))
  mapcar(find-file-noselect (#("/docker:7bf27a2778cd:/home/node/projects1/.gitignore" 0 56 (helm-ff-file t))))
  (let* ((files (helm-marked-candidates)) (buffers (mapcar (quote find-file-noselect) files))) (spacemacs//helm-open-buffers-in-windows buffers))
  (lambda (candidate) (let* ((files (helm-marked-candidates)) (buffers (mapcar (quote find-file-noselect) files))) (spacemacs//helm-open-buffers-in-windows buffers)))(#("/docker:7bf27a2778cd:/home/node/projects1/.gitignore" 0 56 (helm-ff-file t)))
  helm-execute-selection-action-1()
  helm-execute-selection-action()
  helm-internal(helm-source-find-files "/Users/sri/" "Find files or url: " nil nil "*helm find files*" nil nil nil)
  apply(helm-internal (helm-source-find-files "/Users/sri/" "Find files or url: " nil nil "*helm find files*" nil nil nil))
  helm(helm-source-find-files "/Users/sri/" "Find files or url: " nil nil "*helm find files*" nil nil nil)
  apply(helm (helm-source-find-files "/Users/sri/" "Find files or url: " nil nil "*helm find files*" nil nil nil))
  helm(:sources helm-source-find-files :input "/Users/sri/" :case-fold-search t :preselect nil :ff-transformer-show-only-basename t :default nil :prompt "Find files or url: " :buffer "*helm find files*")
  helm-find-files-1("/Users/sri/")
  (let* ((hist (and arg helm-ff-history (helm-find-files-history))) (default-input hist) (input (cond ((and (eq major-mode (quote dired-mode)) default-input) (file-name-directory default-input)) ((and (not (string= default-input "")) default-input)) (t (expand-file-name (helm-current-directory)))))) (set-text-properties 0 (length input) nil input) (helm-find-files-1 input))
  spacemacs/helm-find-files(nil)
  funcall-interactively(spacemacs/helm-find-files nil)
  call-interactively(spacemacs/helm-find-files)
  lazy-helm/spacemacs/helm-find-files()
  funcall-interactively(lazy-helm/spacemacs/helm-find-files)
  call-interactively(lazy-helm/spacemacs/helm-find-files nil nil)
  command-execute(lazy-helm/spacemacs/helm-find-files)
SridharGS commented 5 years ago

Found the solution from the comment.

https://github.com/nonsequitur/git-gutter-plus/pull/39#issuecomment-399374246