Zack,

On 5 September 2018 at 06:22, Dirk Eddelbuettel wrote:
| 
| Hi Zack,
| 
| Thanks for the report. I am CCing David who was very helpful with the
| transition to elpa-ess.  I am wondering if we can address this here, or
| whether I need to talk to upstream about this.
| 
| David, any thought? Is this something that (package-initialize) may fix?
| Another trick to pass the "installed-in" directory to the package?  Or ask
| upstream? 
| 
| Dirk
| 
| On 3 September 2018 at 13:51, Zack Weinberg wrote:
| | Package: elpa-ess
| | Version: 17.11-5
| | Severity: normal
| | 
| | When you start an R process from inside ESS, it's supposed to load a
| | file ".load.R" that, among other things, sets it up so C-c C-v works.
| | R-initialize-on-start is looking for this file in the wrong place.
| | I get these error messages in *Messages*:
| | 
| | Type C-h m for help on ESS version 17.11
| | Cannot read history file /home/zack/.Rhistory
| | ess-tracebug mode enabled
| | load ESSR: + + + Error in file(filename, "r", encoding = encoding) : 
| |   cannot open the connection
| | In addition: Warning message:
| | In file(filename, "r", encoding = encoding) :
| |   cannot open file ’/usr/share/ess/etc/ESSR/R/.load.R’: No such file or 
directory

I _cannot_ reproduce that right now in a pristine testing/unstable session
running off Docker's r-base container (which I co-maintain):

  Loading /etc/emacs/site-start.d/00debian.el (source)...done
  For information about GNU Emacs and the GNU system, type C-h C-a.
  Type C-h m for help on ESS version 17.11
  Cannot read history file /.Rhistory
  ess-tracebug mode enabled

is all I have in *Message* after I do M-x R.

Exactly _how_ do you launch the R session leading to the error?

| | The directory /usr/share/ess does not exist.
| | The package has actually installed .load.R in
| | /usr/share/emacs/site-lisp/elpa-src/ess-17.11/etc/ESSR/R/.load.R
| | If I manually do
| | 
| | source("/usr/share/emacs/site-lisp/elpa-src/ess-17.11/etc/ESSR/R/.load.R")
| | load.ESSR("/usr/share/emacs/site-lisp/elpa-src/ess-17.11/etc/ESSR/R")
| | 
| | then C-c C-v starts working again.
| | 
| | The bad path is coming from the 'ess-etc-directory' variable.  C-h v says:
| | 
| | ess-etc-directory is a variable defined in ‘ess-site.el’.
| | Its value is "/usr/share/ess/etc/"

Not for me:

  ess-etc-directory is a variable defined in ‘ess-utils.el’.
  Its value is "/usr/share/emacs/site-lisp/elpa/ess-17.11/etc/"

I have _no_ .emacs here or anything that could interfere.  So the package
looks clean to me.

Dirk

| | 
| | 
| | However, the string 'ess-etc-directory' does not appear anywhere in
| | ess-site.el.  It appears actually to be defined in ess-utils.el, but
| | if I try to re-execute the code in ess-utils.el that sets its value,
| | that doesn't work either:
| | 
| | ERROR:ess-site.el:ess-etc-directory
| | Relative to ess-lisp-directory, one of the following must exist:
| | ../etc/ess, ../etc, ../../etc/ess or ./etc
| | 
| | C-h v ess-lisp-directory says:
| | 
| | ess-lisp-directory is a variable defined in ‘ess-site.el’.
| | Its value is "/usr/share/emacs/site-lisp/ess"
| | 
| | That directory does exist, but it's not part of the package and I
| | don't know how to debug this any further. In case it helps:
| | 
| | $ ls -l /usr/share/emacs/site-lisp/ess
| | total 1224
| | -rw-r--r-- 1 root root   1670 Aug 18 11:30 ess-arc-d.elc
| | -rw-r--r-- 1 root root   6913 Aug 18 11:30 ess-bugs-d.elc
| | -rw-r--r-- 1 root root   7732 Aug 18 11:30 ess-bugs-l.elc
| | -rw-r--r-- 1 root root   1275 Aug 18 11:30 ess-compat.elc
| | -rw-r--r-- 1 root root   1022 Aug 18 11:30 ess-comp.elc
| | -rw-r--r-- 1 root root  92727 Aug 18 11:30 ess-custom.elc
| | -rw-r--r-- 1 root root   5008 Aug 18 11:30 ess-dde.elc
| | -rw-r--r-- 1 root root   1483 Aug 18 11:30 ess-debug.elc
| | -rw-r--r-- 1 root root   6471 Aug 18 11:30 essd-els.elc
| | -rw-r--r-- 1 root root   2658 Aug 18 11:30 ess.elc
| | -rw-r--r-- 1 root root    551 Aug 18 11:30 ess-eldoc.elc
| | -rw-r--r-- 1 root root   4222 Aug 18 11:30 ess-font-lock.elc
| | -rw-r--r-- 1 root root   3457 Aug 18 11:30 ess-generics.elc
| | -rw-r--r-- 1 root root  17029 Aug 18 11:30 ess-gretl.elc
| | -rw-r--r-- 1 root root  30779 Aug 18 11:30 ess-help.elc
| | -rw-r--r-- 1 root root  95795 Aug 18 11:30 ess-inf.elc
| | -rw-r--r-- 1 root root   3242 Aug 18 11:30 ess-install.elc
| | -rw-r--r-- 1 root root   6140 Aug 18 11:30 ess-jags-d.elc
| | -rw-r--r-- 1 root root  15544 Aug 18 11:30 ess-julia.elc
| | -rw-r--r-- 1 root root   1282 Aug 18 11:30 ess-lsp-l.elc
| | -rw-r--r-- 1 root root  28374 Aug 18 11:30 ess-mode.elc
| | -rw-r--r-- 1 root root   6168 Aug 18 11:30 ess-mouse.elc
| | -rw-r--r-- 1 root root   2436 Aug 18 11:30 ess-noweb.elc
| | -rw-r--r-- 1 root root   7374 Aug 18 11:30 ess-noweb-font-lock-mode.elc
| | -rw-r--r-- 1 root root  46287 Aug 18 11:30 ess-noweb-mode.elc
| | -rw-r--r-- 1 root root   2527 Aug 18 11:30 ess-omg-d.elc
| | -rw-r--r-- 1 root root   2880 Aug 18 11:30 ess-omg-l.elc
| | -rw-r--r-- 1 root root    526 Aug 18 11:30 ess-pkg.elc
| | -rw-r--r-- 1 root root   2792 Aug 18 11:30 ess-r-a.elc
| | -rw-r--r-- 1 root root   2901 Aug 18 11:30 ess-r-args.elc
| | -rw-r--r-- 1 root root  15170 Aug 18 11:30 ess-r-completion.elc
| | -rw-r--r-- 1 root root  14133 Aug 18 11:30 ess-rd.elc
| | -rw-r--r-- 1 root root  10279 Aug 18 11:30 ess-rdired.elc
| | -rw-r--r-- 1 root root   6136 Aug 18 11:30 ess-r-gui.elc
| | -rw-r--r-- 1 root root  63776 Aug 18 11:30 ess-r-mode.elc
| | -rw-r--r-- 1 root root  30334 Aug 18 11:30 ess-roxy.elc
| | -rw-r--r-- 1 root root  16162 Aug 18 11:30 ess-r-package.elc
| | -rw-r--r-- 1 root root  40232 Aug 18 11:30 ess-r-syntax.elc
| | -rw-r--r-- 1 root root  11715 Aug 18 11:30 ess-rutils.elc
| | -rw-r--r-- 1 root root   1785 Aug 18 11:30 ess-s3-d.elc
| | -rw-r--r-- 1 root root   1914 Aug 18 11:30 ess-s4-d.elc
| | -rw-r--r-- 1 root root  38396 Aug 18 11:30 ess-sas-a.elc
| | -rw-r--r-- 1 root root   6830 Aug 18 11:30 ess-sas-d.elc
| | -rw-r--r-- 1 root root  41313 Aug 18 11:30 ess-sas-l.elc
| | -rw-r--r-- 1 root root   1283 Aug 18 11:30 ess-send2.elc
| | -rw-r--r-- 1 root root   1121 Aug 18 11:30 ess-send.elc
| | -rw-r--r-- 1 root root   3821 Aug 18 11:30 ess-site.elc
| | -rw-r--r-- 1 root root  19292 Aug 18 11:30 ess-s-lang.elc
| | -rw-r--r-- 1 root root   2001 Aug 18 11:30 ess-sp3-d.elc
| | -rw-r--r-- 1 root root  11131 Aug 18 11:30 ess-sp4-d.elc
| | -rw-r--r-- 1 root root   2024 Aug 18 11:30 ess-sp5-d.elc
| | -rw-r--r-- 1 root root   7989 Aug 18 11:30 ess-sp6-d.elc
| | -rw-r--r-- 1 root root  17563 Aug 18 11:30 ess-sp6w-d.elc
| | -rw-r--r-- 1 root root  22380 Aug 18 11:30 ess-stata-lang.elc
| | -rw-r--r-- 1 root root   4736 Aug 18 11:30 ess-stata-mode.elc
| | -rw-r--r-- 1 root root  10785 Aug 18 11:30 ess-swv.elc
| | -rw-r--r-- 1 root root   4368 Aug 18 11:30 ess-toolbar.elc
| | -rw-r--r-- 1 root root  86358 Aug 18 11:30 ess-tracebug.elc
| | -rw-r--r-- 1 root root   8708 Aug 18 11:30 ess-trns.elc
| | -rw-r--r-- 1 root root  40543 Aug 18 11:30 ess-utils.elc
| | -rw-r--r-- 1 root root   1612 Aug 18 11:30 ess-vst-d.elc
| | -rw-r--r-- 1 root root   2173 Aug 18 11:30 ess-xls-d.elc
| | -rw-r--r-- 1 root root    469 Aug 18 11:30 Install.log.gz
| | -rw-r--r-- 1 root root 142835 Aug 18 11:30 julia-mode.elc
| | -rw-r--r-- 1 root root   3253 Aug 18 11:30 make-regexp.elc
| | -rw-r--r-- 1 root root   9262 Aug 18 11:30 mouseme.elc
| | -rw-r--r-- 1 root root   4210 Aug 18 11:30 msdos.elc
| | -rw-r--r-- 1 root root     64 Aug 18 11:30 path.el
| | 
| | 
| | 
| | -- System Information:
| | Debian Release: buster/sid
| |   APT prefers unstable
| |   APT policy: (501, 'unstable'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'testing'), (101, 'experimental'), (1, 
'experimental-debug')
| | Architecture: amd64 (x86_64)
| | Foreign Architectures: i386
| | 
| | Kernel: Linux 4.17.0-3-amd64 (SMP w/8 CPU cores)
| | Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
| | Shell: /bin/sh linked to /bin/dash
| | Init: systemd (via /run/systemd/system)
| | LSM: AppArmor: enabled
| | 
| | Versions of packages elpa-ess depends on:
| | ii  dpkg            1.19.0.5+b1
| | ii  emacsen-common  3.0.2
| | ii  install-info    6.5.0.dfsg.1-4
| | 
| | Versions of packages elpa-ess recommends:
| | ii  r-base-core  3.5.1-1+b1
| | 
| | Versions of packages elpa-ess suggests:
| | pn  jags       <none>
| | pn  julia      <none>
| | pn  pspp       <none>
| | pn  xlispstat  <none>
| | 
| | -- no debconf information
| 
| -- 
| http://dirk.eddelbuettel.com | @eddelbuettel | [email protected]

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | [email protected]

Reply via email to