Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] camlp4 not track valid position in source file
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Artem Prysyaznuk <artem_pr@y...>
Subject: [Caml-list] camlp4 not track valid position in source file
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