caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] camlp4 not track valid position in source file
@ 2003-10-30 18:46 Artem Prysyaznuk
  0 siblings, 0 replies; only message in thread
From: Artem Prysyaznuk @ 2003-10-30 18:46 UTC (permalink / raw)
  To: caml-list

Hello, 

Next dialog shell describe problem:

$ ocamlc -version
  3.07+2
$ camlp4o -v
  Camlp4 version 3.07+2
$ cat a.ml
  let test () =
        raise Not_found;;
  test ();;
$ export OCAMLRUNPARAM=b

Without camlp4 all ok.

$ ocamlc -g a.ml
$ ./a.out
  Fatal error: exception Not_found
  Raised at file "a.ml", line 2, character 16
  Called from file "a.ml", line 3, character 7

But if I use camlp4o, output after exception:

$ ocamlc -pp camlp4o -g a.ml
$ ./a.out
Fatal error: exception Not_found
Raised at file "", line 1, character 31
Called from file "", line 1, character 41

So, file names and line numbers are missing.

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-30 18:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 18:46 [Caml-list] camlp4 not track valid position in source file Artem Prysyaznuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).