punassuming / ranger.el

Bringing the goodness of ranger to dired!
697 stars 51 forks source link

Pasting issue: void variable #222

Open ztlevi opened 4 years ago

ztlevi commented 4 years ago

The latest merged commit break the pasting.

Reproduce:

  1. Install latest ranger
  2. yy then pp

base-target is not defined here https://github.com/ralesi/ranger.el/blob/master/ranger.el#L1040

backtrace:

Debugger entered--Lisp error: (void-variable base-target)
  ranger--invent-new-name("/home/ztlevi/Developer/python-test/test.py")
  ranger-paste()
  funcall-interactively(ranger-paste)
  call-interactively(ranger-paste nil nil)
  command-execute(ranger-paste)
my setup ``` emacs version 26.3 features XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 build Aug 29, 2019 buildopts (--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now) windowsys x daemonp server-running doom version 2.0.9 build HEAD -> develop 375faedb1 2020-05-16 05:38:20 -0400 dir ~/.doom.d/ system type gnu/linux config x86_64-pc-linux-gnu shell /usr/bin/zsh uname Linux 5.4.39-1-MANJARO #1 SMP PREEMPT Wed May 6 10:36:44 UTC 2020 x86_64 path (~/.local/share/tmuxifier/bin /usr/local/opt/emacs-mac/bin ~/.emacs.d/bin ~/.local/share/cargo/bin ~/.local/share/pyenv/shims ~/.local/share/pyenv/bin ~/.local/share/nodenv/shims ~/.local/share/nodenv/bin ~/.local/share/nodenv/versions/12.10.0/bin ~/.local/bin ~/Dotfiles/bin ~/.local/share/Dotfiles/base.arch.topic/bin ~/.local/share/Dotfiles/desktop.bspwm.topic/bin ~/.local/share/Dotfiles/editor.emacs.topic/bin ~/.local/share/Dotfiles/misc.apps.topic/bin ~/.local/share/Dotfiles/shell.git.topic/bin ~/.local/share/Dotfiles/shell.tmux.topic/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/lib/jvm/default/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /var/lib/snapd/snap/bin ~/anaconda3/bin ~/.antigen/bundles/robbyrussell/oh-my-zsh/lib ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/github ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitignore ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitfast ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-machine ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ruby ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/rbenv ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/python ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pip ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pipenv ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/django ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/golang ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/node ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/npm ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/yarn ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/react-native ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/zsh_reload ~/.antigen/bundles/hlissner/zsh-autopair ~/.antigen/bundles/zsh-users/zsh-completions ~/.antigen/bundles/zsh-users/zsh-syntax-highlighting ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux-cssh ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmuxinator ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/aws ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fzf ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/jira ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ripgrep ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/web-search ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/nmap ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/heroku ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/copydir ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/common-aliases ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/colored-man-pages ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/rsync ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/dotenv ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fasd ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fd ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mosh ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract ~/.antigen/bundles/soimort/you-get ~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/archlinux /usr/lib/emacs/26.3/x86_64-pc-linux-gnu/) config envfile envvar-file elc-files 0 modules (:completion (company +auto) (ivy +icons +prescient +childframe) :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces zen :editor (evil +everywhere) file-templates fold (format +onsave) lispy multiple-cursors rotate-text snippets :emacs (dired +ranger +icons) electric ibuffer undo vc :term eshell vterm :checkers (syntax +childframe) spell grammar :tools (debugger +lsp) direnv docker editorconfig eval (lookup +devdocs +docsets) lsp macos magit make pdf prodigy rgb tmux upload :lang (cc +lsp) data emacs-lisp (go +lsp) (java +lsp) javascript kotlin latex lua (markdown +grip) nix (org +dragndrop ipython +pandoc +pomodoro +present) (python +pyenv +conda +lsp) rust sh web :config (default +bindings +snippets +smartparens)) packages ((adoc-mode) (tldr) (edit-indirect) (blog-admin :recipe (:host github :repo codefalling/blog-admin)) (youdao-dictionary) (link-hint) (symbol-overlay) (helm) (dired-narrow) (atomic-chrome) (git-link) (wucuo) (vterm-toggle :recipe (:host github :repo jixiuf/vterm-toggle)) (counsel-etags) (imenu-list) (tmux-pane) (lsp-docker) (rime :recipe (:host github :repo DogLooksGood/emacs-rime :files (*.el Makefile lib.c))) (color-rg :recipe (:host github :repo manateelazycat/color-rg)) (snails :recipe (:host github :repo manateelazycat/snails)) (fuz :recipe (:host github :repo rustify-emacs/fuz.el)) (bazel-mode :recipe (:host github :repo bazelbuild/emacs-bazel-mode)) (import-js) (py-isort) (flycheck-mypy) (flycheck-google-cpplint :recipe (:host github :repo flycheck/flycheck-google-cpplint))) unpin (n/a) elpa (n/a) ```
ztlevi commented 4 years ago

Follow up on this, it's not working for copying and pasting the same file under the same directory

Moanrisy commented 4 years ago

I got this issue too

can't paste on the same directory