void-linux / void-linux/void-packages

emacs-ess: fails to load R mode due to missing files

Open
#61,277 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Is this a new report?

Yes

System Info

Void 6.18.36_1 x86_64 GenuineIntel notuptodate rrFF

Package(s) Affected

emacs-ess-18.10.2_5

Does a report exist for this bug with the project's home (upstream) and/or another distro?

https://github.com/emacs-ess/ESS/issues/1338

Expected behaviour

The package installs successfully via XBPS, but fails completely during Emacs initialization.

Even though load-path is correctly configured and (require 'ess-site) is defined in init.el:

cat .emacs.d/init.el 
(add-to-list 'load-path "/usr/share/emacs/site-lisp/ess/")

(require 'ess-site)

Emacs throws a file-missing error for ess-rd.el.

Actual behaviour

As can be seen in the message below, Emacs fails to initialize because it cannot open the load file ess-rd.el. The program triggers a file-missing error during startup immediately after trying to evaluate (require 'ess-site).

emacs --debug-init

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "ess-rd.el")
  require(essddr "ess-rd.el")
  byte-code("\300\301!\210\300\302!\210\300\301!\210\300\303!\210\300\304!\210\300\305\306\"\207" [require ess-utils ess-custom hideshow outline essddr "ess-rd.el"] 3)
  require(ess-roxy)
  byte-code("\301\302!\210\301\303!\210\301\304!\210\301\305!\210\301\306!\210\301\307!\210\301\310!\210\301\311!\210\301\312!\210\301\313!\210\301\314!\210\301\315!\210\10\316Y\203:\0\301\317!\210\10\320Y\203D\0\301\321!\210\301\207" [emacs-major-version require cl-lib compile easymenu eldoc ess-mode ess-help ess-s-lang ess-roxy ess-r-completion ess-r-syntax ess-r-package ess-trns 25 ess-r-xref 26 ess-r-flymake] 2)
  require(ess-r-mode)
  byte-code("\304\305\306\10!\"\210\304\305\306\307\310\10\"!\"\210\311\312!\210\313\314\315\10\"!\210\316\317\11\"\204+\0\304\301\307\320\10\"\"\210\311\321!\210\311\322\323\324#\203;\0\311\325!\210\311\326!\210\n\203J\0\311\327!\210\202N\0\311\330!\210\311\331!\210\311\332!\210\311\333!\210\311\334!\210\311\335!\210\313\314\336\13\"!\210\311\337!\210\311\340!\210\313\314\341\13\"!\210\311\342!\210\311\343!\210\313\344!\210\345\346!\207" [ess-lisp-directory Info-default-directory-list ess-microsoft-p ess-customize-alist add-to-list load-path file-name-as-directory expand-file-name "obsolete" require ess-utils ess-write-to-dribble-buffer format "[ess-site:] ess-lisp-directory = '%s'" locate-file "ess.info" "../doc/info/" ess-r-mode julia-mode nil no-error ess-julia ess-sp3-d ess-sp6w-d ess-sp6-d essd-els ess-stata-mode ess-sas-d ess-bugs-d ess-jags-d "[ess-site.el]: ess-customize-alist=%s \n" ess-noweb ess-swv "[ess-site.el _2_]: ess-customize-alist=%s \n" ess-mouse ess-toolbar "[ess-site:] *very* end ..." provide ess-site] 6)
  require(ess-site)
  load-with-code-conversion("/home/david/.emacs.d/init.el" "/home/david/.emacs.d/init.el" t t)
  load("/home/david/.emacs.d/init" noerror nomessage)
  #f(compiled-function () #<bytecode 0x81ca523fb55d790>)()
  #f(compiled-function () #<bytecode -0x4307d7bb01d2857>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x4307d7bb01d2857>) (error) startup--debug)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1e334c369b0a8a33>) #f(compiled-function () #<bytecode 0x731968ef8c7b19b>) t)
  command-line()
  normal-top-level()
Steps to reproduce
  1. Install emacs-ess via XBPS.
  2. Add the correct load-path configuration and (require 'ess-site) to ~/.emacs.d/init.el.
  3. Launch Emacs normally.
  4. The initialization fails immediately with the file-missing error.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the emacs-ess-18.10.2_5 package, the load-path and require entries in ~/.emacs.d/init.el, and emacs --debug-init. Trace the require chain through ess-site, ess-r-mode, ess-roxy, and essddr, focusing on the missing ess-rd.el file; compare with upstream issue ESS#1338. Done means the package installs and (require 'ess-site) completes without the file-missing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs, r
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.