[OS X Emacs] Directory for loading ESSR

David Reitter david.reitter at gmail.com
Wed Jan 9 07:49:31 EST 2019


Hi Michael,

Yes, certainly, that would be the workaround.

I think that the culprit is here:

aquamacs/src/site-lisp/mode-preloads.el:

(setq ess-etc-directory (concat  (mac-resources-path)
				  "lisp/aquamacs/edit-modes/ess-mode/etc"
				  ))


This sets the directory, so it won’t get picked up later.

If ESS detects its own etc directory, I wonder if it can pick it up by itself, removing that line.  Could you try taking it out?  You’ll need to recompile Aquamacs.


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!




> On Jan 8, 2019, at 6:53 PM, Braun, Michael <braunm at mail.smu.edu> wrote:
> 
> Follow-up: I found a workaround.  I added (setq ess-etc-directory "~/Library/Preferences/Aquamacs Emacs/Packages/elpa/ess-18.10.2/etc”) to my Preferences.el file.  But this seems suboptimal, since I will have to change this with each update of ESS.
> 
> I did submit an issue to the ESS github (https://github.com/emacs-ess/ESS/issues/807), where it is believed to be an Aquamacs issue, not ESS.
> 
>> On Jan 1, 2019, at 3:57 PM, Braun, Michael <braunm at mail.smu.edu> wrote:
>> 
>> David:
>> 
>> Following your suggestion, I removed all non-Aquamacs versions of ESS, including the 18.10.2 version from Melpa.  With the Aquamacs built-in ESS 17.11, the error disappeared.
>> 
>> Then, working with the ESS git repository, I started backtracking when the error might have occurred in the commit history.  I traced it back to a commit shortly after 17.11 was released, on 19 Nov 2017 (commit 151b003 is the first time it appeared).  There was a change in lisp/ess-utils.el related to "Only try to detect `ess-etc-directory` if not already set up.”
>> 
>> I also downloaded Emacs for Mac OS X (26.1), to see if this error occurs on other emacsen.  It does not, even with the most recent ESS, v18.10.2.
>> 
>> Summary:  The included ESS 17.11 works fine on Aquamacs.  More recent ESS’s work on other emacsen, but not Aquamacs. I understand the most recent ESS versions are not yet supported by Aquamacs, but hopefully this information will help for when they are.
>> 
>> Thanks,
>> 
>> Michael
>> 
>> 
>> 
>> 
>> 
>>> On Dec 15, 2018, at 11:38 AM, Braun, Michael <braunm at mail.smu.edu> wrote:
>>> 
>>> Thanks for the direction.  I’ll work backwards through the ESS updates and see if that’s the problem.
>>> 
>>>> On Dec 15, 2018, at 8:39 AM, David Reitter <david.reitter at gmail.com> wrote:
>>>> 
>>>> Hi Michael,
>>>> 
>>>> If you read the error message carefully, you see an error, and then an additional warning that may or may not have anything with the error. I do not get the warning myself with the provided ESS version (and no, there is no /Users/dr/Nightly directory either here).
>>>> 
>>>> Aquamacs 3.4 had version 17.11 installed.  It doesn’t look like it’s been updated since.
>>>> 
>>>> So, this leads me to think there is a problem with the ESS in MELPA, either an incompatibility with the provided version or something independent.  It seems like there is a problem with the load path.
>>>> 
>>>> David
>>>> 
>>>> 
>>>> --
>>>> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
>>>> http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On Dec 14, 2018, at 12:51 PM, Braun, Michael <braunm at mail.smu.edu> wrote:
>>>>> 
>>>>> When launching an R process via ESS (M-x R), I get the following Emacs message:
>>>>> 
>>>>> 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 ’/Users/dr/Nightly/master/aquamacs-emacs.git/lisp/aquamacs/edit-modes/ess-mode/etc/ESSR/R/.load.R’: No such file or directory
>>>>> 
>>>>> It appears somewhere in the Aquamacs build process, the directory path on the builder’s computer is not replaced, as my user name is not “dr”.  Thus, Aquamacs cannot find ESSR.  This is causing problems with using the help functions in R.  For example:
>>>>> 
>>>>>> ?mean
>>>>> Error in .ess.help("mean") : could not find function ".ess.help"
>>>>> 
>>>>> The problem occurs when I use either the stable 3.4 version of Aquamacs, or the latest nightly build.  ESS version is 18.10.2, although I had the problem with 18.10 as well.  Not sure if it matters, but the latest ESS is a Melpa version.
>>>>> 
>>>>> Any suggestions or fixes would be appreciated.
>>>>> 
>>>>> Thanks.
>>>>> 
>>>>> Michael
>>>>> 
>>>>> _____________________________________________________________
>>>>> MacOSX-Emacs mailing list
>>>>> MacOSX-Emacs at email.esm.psu.edu
>>>>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>>>>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>>>> 
>>>> 
>>>> _____________________________________________________________
>>>> MacOSX-Emacs mailing list
>>>> MacOSX-Emacs at email.esm.psu.edu
>>>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>>>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>>> 
>>> 
>>> _____________________________________________________________
>>> MacOSX-Emacs mailing list
>>> MacOSX-Emacs at email.esm.psu.edu
>>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>> 
>> 
>> _____________________________________________________________
>> MacOSX-Emacs mailing list
>> MacOSX-Emacs at email.esm.psu.edu
>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
> 
> 
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx



More information about the MacOSX-Emacs mailing list