English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[ANN] Bantam: a lightweight file manager for X11
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-02 (06:21)
From: Matt Gushee <mgushee@h...>
Subject: Re: [Caml-list] [ANN] Bantam: a lightweight file manager for X11
Janne Hellsten wrote:

 > Hi Matt,
 > I compiled this with Ocaml 3.08.3 & Tcl/Tk 8.4.  Alas, not all is
 > well.  When I run bantam.bin, I get this:
 > janne@nurbian:~/bantam-0.1$ ./bantam.bin Fatal error: exception Not_found
 > Raised by primitive operation at unknown location
 > This was all I got with byte-code and OCAMLRUNPARAM=b=1.  Native
 > version printed just the Not_found exception info.

Well, you're being too clever! You (no, I don't really mean you, the 
OCaml developer, I mean "you" the generic user) are not supposed to know 
bantam.bin even exists; you're just supposed to run 'bantam', which is a 
shell script.

The cause of that exception is


That variable is set by the 'bantam' shell script to its default value, 
$HOME/.bantam; or you can override it by setting the variable manually 
(BTW, the shell script also creates the $BANTAM_USER_DIR if it doesn't 

Now, I agree this is a problem. I suppose that exception should be 
handled, and maybe there's a need for better documentation. I'm not 
really sure of the best way to deal with this, but one of my objectives 
was to be able to produce an easily installed, relocatable binary. And 
there needs to be a per-user directory for configuration, helper 
scripts, and trash. The shell script is a bit of a kludge, but I don't 
see another way to do it without either (a) eliminating flexibility in 
installation or (b) limiting the audience for the program to OCaml 
developers. I'm open to suggestions.

I appreciate the feedback. I'll add an exception handler in the next 
version. Meanwhile, see what happens if you just run 'bantam.'

Best regards,

Matt Gushee
Englewood, CO, USA