[ESS] ess stata won't start

Rodney Sparapani rsparapa at mcw.edu
Thu Sep 4 23:11:45 CEST 2008


XIANG AO wrote:
> XIANG AO wrote:
>> * Subject: ess-mode 5.3.0; ess stata won't start
> *>* --text follows this line--
> *>*
> *>* I was able to run ess stata before, but it stopped working since
> *>* yesterday.  It repports:  "/usr/bin/env: stata: No such file or
> *>* directory", and "Error in post-command-hook: (void-variable
> *>* infereior-ess-font-lock-keywords)...
> *>*
> *>* Please help...  Thank you so much!
> *>*
> *>* Emacs  : GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9)
> *>*  of 2008-05-02 on king, modified by Ubuntu
> *>* Package: ess-mode 5.3.0
> *>*
> *>* current state:
> *>* ==============
> *>* (setq
> *>*  ess-language "STA"
> *>*  ess-dialect "Stata"
> *>*  ess-ask-for-ess-directory t
> *>*  ess-ask-about-transfile nil
> *>*  ess-directory nil
> *>*  ess-keep-dump-files "always"
> *>*  ess-source-directory "/tmp/"
> *>*  )
> *>* [ess-site.el]: ess-customize-alist=nil
> *>* [ess-site.el _2_]: ess-customize-alist=nil
> *>* (S): ess-s-versions-create making M-x defuns for (R): ess-r-versions-create
> *>* making M-x defuns for (STA): ess-dialect=nil , buf=*scratch*
> *>* (inferior-ess 0): ess-start-args=TERM=emacs stata
> *>* ess-setq-vars-default 0: ess-language=Initial, -dialect=nil, buf=nil,
> *>* comint..echoes=nil, comint..sender=comint-simple-send
> *>* ess-setq-vars-default 1: ess-language=STA, -dialect=Stata, buf=nil,
> *>* comint..echoes=nil, comint..sender=comint-simple-send
> *>* (inf-ess 1): lang=STA, dialect=Stata, tmp-dialect=Stata, buf=*scratch*
> *>* (inf-ess 1.1): procname=Stata temp-dialect=Stata, buf-name=*Stata*
> *>* (inferior-ess) Method #3 start=/home/xao/ buf=*Stata*
> *>* (ess-setq-vars-LOCAL): language=STA, dialect=Stata, buf=nil,
> *>* comint..echoes=nil, comint..sender=comint-simple-send
> *>* (inf-ess 2.1): ess-language=STA, ess-dialect=Stata buf=*Stata*
> *>* (inf-ess 2.2): start args = TERM=emacs stata , inf-ess-start-args=TERM=emacs
> *>* stata
> *>* (inf-ess finish [STA(Stata), env(nil,nil)]
> *>* (ess-multi 0):  inf-ess-start-args=TERM=emacs stata , comint-..echoes=nil
> *>* (i-ess 1): buf=*Stata*, lang=STA, comint..echo=nil,
> *>* comint..sender=comint-simple-send,
> *>* (i-ess 2): buf=*Stata*, lang=STA, comint..echo=t,
> *>* comint..sender=inferior-ess-input-sender,
> *>* (ess-setq-vars-LOCAL): language=STA, dialect=Stata, buf=nil,
> *>* comint..echoes=t, comint..sender=inferior-ess-input-sender
> *>* (i-ess 3): curr-buf=*Stata*, comint..echo=t,
> *>* comint..sender=inferior-ess-input-sender,
> *>* (ess-multi post inf-ess: start-args=TERM=emacs stata , comint-echoes=t
> *>* (ess-multi 1):  start-args=TERM=emacs stata
> *>* Making Process...Buf *Stata*, Proc Stata, Prog env
> *>*  Start File=nil, Args= TERM=emacs stata .
> *>*
> *
> Is stata still in your PATH?  If you open a *shell* buffer and type
> stata does it start?
> 
> Yes.  I opened a shell within emacs and start stata just fine...
> 

Oh wait, try the following in *shell*:
/usr/bin/env stata

That's the line it seems to be gagging on.  Not sure where exactly this
comes from, but probably some where in ess-inf.el




More information about the ESS-help mailing list