Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ess-rdired throws an args-out-of-range error #1258

Open
maikol-solis opened this issue Aug 3, 2023 · 2 comments
Open

ess-rdired throws an args-out-of-range error #1258

maikol-solis opened this issue Aug 3, 2023 · 2 comments

Comments

@maikol-solis
Copy link

Hi

I have the same issue as #1122, when I start ess-rdired right after the ess-process.

Debugger entered--Lisp error: (args-out-of-range #<buffer  *ess-rdired-output*> 1 22)
  ess-rdired-refresh()
  ess-rdired()
  funcall-interactively(ess-rdired)
  command-execute(ess-rdired record)
  execute-extended-command(nil "ess-rdired" nil)
  funcall-interactively(execute-extended-command nil "ess-rdired" nil)
  command-execute(execute-extended-command)

I think the problem is that the mapcar is iterating over an empty list because there isn't any object created at the moment.

(mapcar #'ess-rdired--tabulated-list-entries text))

The root of the problem I assume is in this line

(setq text (split-string (buffer-string) "\n" t "\n"))

where I guess that ESS should ensure that it has something inside before continuing the function.

If I create any object (say a<-1), ess-rdired works as expected.

Thanks

@mmaechler
Copy link
Member

mmaechler commented Aug 7, 2023

I can reproduce; thank you. Indeed, this a bug that should be fixed.

... only weakly related .. but puzzling: For me, ess-rdired is not autoloaded even though it is marked to do so in

https://github.com/emacs-ess/ESS/blob/master/lisp/ess-rdired.el#L127

So I need to manually load the *.el/*.elc file before I can even try. ???

@maikol-solis
Copy link
Author

For me, ess-rdired is correctly loaded after entering ess-mode. I'm using doom-emacs, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants