racket-mode finds wrong version of Racket

30 views
Skip to first unread message

David Storrs

unread,
Dec 16, 2019, 12:28:50 PM12/16/19
to Racket Users
I just now updated to 7.5 from 7.3, then updated my .bashrc to have the correct path.  I'm using GNU Emacs in Terminal on OSX 10.11.


$ echo $PATH
[...stuff that isn't Racket...]:/Applications/Racket_v7.5.0.10/bin:[...stuff that isn't Racket...]

From a .rkt file:
C-c C-c
Welcome to Racket v7.3.

; Kill the Racket command server buffer
C-x C-k

; back to the .rkt file, try again
C-c C-c
Welcome to Racket v7.3.

; kill and restart emacs
C-x C-c
$ emacs
C-c C-c
Welcome to Racket v7.3.

Killing and restarting Terminal and reloading Emacs from scratch finally worked.

Is there any way that I could have resolved this without getting quite so nuclear?  I googled around and could not find anything.

bruno cuconato

unread,
Dec 16, 2019, 12:56:14 PM12/16/19
to David Storrs, Racket Users
Emacs has a few ways to update environment variables (see
https://www.gnu.org/software/emacs/manual/html_node/emacs/Environment.html),
but IMHO they are not very practical if updating several variables — I
always prefer to simply restart Emacs, or not to add anything to $PATH
but to symlink files to somewhere in my PATH (when that approach is
viable).


since you are using OSX,
https://github.com/purcell/exec-path-from-shell might be useful to
you.

-- bruno cuconato
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAE8gKodzUn8ZU4Yd2eV26xrBKyb0XW0mSBRNuj5WmE_ZtQW3MA%40mail.gmail.com.

David Storrs

unread,
Dec 16, 2019, 3:49:07 PM12/16/19
to bruno cuconato, Racket Users
Thanks, Bruno. Much appreciated.
Reply all
Reply to author
Forward
0 new messages