Re: [ANN] Bantam: a lightweight file manager for X11
Matt Gushee <mgushee <at> havenrock.com>
2005-05-02 06:21:29 GMT
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 <at> 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
Sys.getenv("BANTAM_USER_DIR")
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
exist).
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
(Continue reading)