mozart / mozart2

Mozart Programming System v2
http://mozart.github.io/
BSD 2-Clause "Simplified" License
564 stars 94 forks source link

Windows XP oz popup: "Mozart Fatal Error Cannot find GNU Emacs or XEmacs.", though Emacs is installed and in PATH #39

Open mcandre opened 11 years ago

mcandre commented 11 years ago

The ozc compiler and emacs work fine on my Windows machine, but when I try to run oz, I get a popup.

Trace:

C:\> oz
(popup)
Mozart Fatal Error

Cannot find GNU Emacs or XEmacs.

Screenshot:

mozart-fatal-error

System:

I regularly use Emacs in Windows; emacs and runemacs are in %PATH%.

$ specs oz emacs os
Specs:

specs 0.3
https://github.com/mcandre/specs#readme

ozc -v
Mozart Compiler 1.4.0 (20080703) playing Oz 3

%******************** command line option error *****************
%**
%** no input files given
%**
%** Hint: Use --help to obtain usage information

emacs --version
GNU Emacs 24.2.1
Copyright (C) 2012 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows XP Professional
OS Version:                5.1.2600 Service Pack 3 Build 2600
sjmackenzie commented 11 years ago

You need to set the OZEMACS environment variable. (Memory serving correctly)

mcandre commented 11 years ago

Thank you. OZEMACS=runemacs.exe fixed this for me. :)

sjmackenzie commented 11 years ago

Well there isn't a mozart2 windows installer yet. I'm not sure if windows installers can do this as I recall having to set Java environmental variables all integrated time.

sjrd commented 11 years ago

Windows installers can do this. It is a builtin feature of all setup "makers". We should certainly do this for the mozart2 Windows installer.

mcandre commented 11 years ago

Yes, Windows installers can do this!

I made a simple Emacs installer that added PATH: https://github.com/mcandre/emacs-win

This installer was created with Advanced Installer, but other popular installer-creators have the same feature.

sjmackenzie commented 11 years ago

wow excellent! do you think it's possible to extend that to the mozart2 package? There is an issue open for this very thing!