You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 3776 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Martin Jambon
Version: 3.08.3, 3.08.4
OS: Linux
Submission from: burnham.ljcrf.edu (192.231.106.2)
Custom toplevels made with ocamlmktop and camlp4o.cma do not count the first
line of scripts (#! ...) when reporting errors:
$ cat toto.ml
#! /usr/bin/env ./top
let x = error
$ ocamlmktop -o top
$ ./toto.ml
File "./toto.ml", line 2, characters 8-13:
Unbound value error
$ ocamlmktop -o top -I +camlp4 camlp4o.cma
$ ./toto.ml
File "./toto.ml", line 1, characters 30-35:
Unbound value error
It seems that the characters are counted correctly from the beginning of the
file, but for some reason the first two lines are counted as one.
The text was updated successfully, but these errors were encountered:
Original bug ID: 3776
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Martin Jambon
Version: 3.08.3, 3.08.4
OS: Linux
Submission from: burnham.ljcrf.edu (192.231.106.2)
Custom toplevels made with ocamlmktop and camlp4o.cma do not count the first
line of scripts (#! ...) when reporting errors:
$ cat toto.ml
#! /usr/bin/env ./top
let x = error
$ ocamlmktop -o top
$ ./toto.ml
File "./toto.ml", line 2, characters 8-13:
Unbound value error
$ ocamlmktop -o top -I +camlp4 camlp4o.cma
$ ./toto.ml
File "./toto.ml", line 1, characters 30-35:
Unbound value error
It seems that the characters are counted correctly from the beginning of the
file, but for some reason the first two lines are counted as one.
The text was updated successfully, but these errors were encountered: