emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
626 stars 161 forks source link

M-x ess-rdired leads to args-out-of-range error #1122

Closed davidbudzynski closed 3 years ago

davidbudzynski commented 3 years ago

What did you expect to happen? I expected the M-x ess-rdired command to create a buffer that shows the objects in the R global environment. I expected the buffer to actually show the objects I created.

What actually happened? The R Dired buffer gets created, but doesn't show any of the objects I created. I get an error report.

save-current-buffer: Args out of range: #<buffer  *ess-rdired-output*>, 1, 225
Error running timer ‘ess-rdired-refresh’: (args-out-of-range #<buffer  *ess-rdired-output*> 1 225) [6 times]

Steps to reproduce:

  1. Start R (M-x R)
  2. Create some objects (e.g., x <- 5)
  3. Attempt to run ess-rdired (M-x ess-rdired)

my system info:

SYSTEM  info       ("EndeavourOS Linux" . Linux 5.11.1-arch1-1 x86_64)
        shell      /bin/zsh
        path       (~/bin /usr/local/bin /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /usr/lib/emacs/27.1/x86_64-pc-linux-gnu/)
EMACS   dir        ~/.emacs.d/
        version    (27.1 Aug 28, 2020)
        buildopts  --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int --with-modules --with-cairo --with-harfbuzz '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
        features   XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP
        traits     (gui server-running envvar-file)
DOOM    dir        ~/.doom.d/
        version    (2.0.9 HEAD -> develop 3f4cc77d2 2021-02-21 14:44:59 -0500)
        font       #<font-spec nil nil SFMono Nerd Font Mono nil nil medium nil nil 15 nil nil nil nil>
        theme      doom-gruvbox
        modules    (:completion company (ivy +fuzzy +icons) :ui doom doom-dashboard (emoji +unicode) hl-todo indent-guides modeline nav-flash ophints (popup +defaults) treemacs vc-gutter vi-tilde-fringe workspaces zen :editor (evil +everywhere) file-templates fold format multiple-cursors snippets :emacs (dired +icons) electric (ibuffer +icons) undo vc :term eshell vterm :checkers syntax :tools ein (eval +overlay) gist lookup lsp magit pdf rgb :os tty :lang data emacs-lisp ess json (javascript +lsp) latex lua markdown org (python +lsp) sh web yaml :app calendar irc :config (default +bindings +smartparens))
        packages   (n/a)
        unpin      (ESS)
        elpa       (n/a)
lionel- commented 3 years ago

I can't reproduce with the dev version.

maikol-solis commented 1 year ago

Hi @davidbudzynski, in #1258 the error was confirmed. Please report in the new issue, if you are still experiencing this.

davidbudzynski commented 1 year ago

Thanks @maikol-solis for investigating this and providing a fix!