Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shifted line numbers in Camlp4 scripts #3776

Closed
vicuna opened this issue Aug 29, 2005 · 1 comment
Closed

Shifted line numbers in Camlp4 scripts #3776

vicuna opened this issue Aug 29, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 29, 2005

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.

@vicuna
Copy link
Author

vicuna commented Oct 21, 2005

Comment author: administrator

Camlp4 issues.
Fixed by MM, 2005-10-21.

@vicuna vicuna closed this as completed Oct 21, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant