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

Camlp4 and line number #3179

Closed
vicuna opened this issue Sep 17, 2004 · 4 comments
Closed

Camlp4 and line number #3179

vicuna opened this issue Sep 17, 2004 · 4 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 17, 2004

Original bug ID: 3179
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Virgile Prevosto
Version: 3.08.1
OS: Linux (Debian sarge)
Submission from: mpino2410.ag2.mpi-sb.mpg.de (139.19.24.15)

[Might be related to bug #3074]
Hello,
camlp4 seems to "forget" to increment the line number when a string is split on
two lines with '', so that warning and error positions become inaccurate:

---------- error.ml ------
let a = "a very long
string";;

let b = a; a;;
----------- error.ml ------
~/unison-sync/Camltries [558]$ ocamlc error.ml
File "error.ml", line 4, characters 8-9:
Warning: this expression should have type unit.
~/unison-sync/Camltries [559]$ ocamlc -pp camlp4o error.ml
File "error.ml", line 3, characters 8-9:
Warning: this expression should have type unit.

E tutto per oggi, a la prossima volta
Virgile

@vicuna
Copy link
Author

vicuna commented Sep 20, 2004

Comment author: administrator

[Might be related to bug #3074]

This is precisely bug #3074, and it's been fixed in the CVS (see
http://caml.inria.fr/bin/caml-bugs/fixed?id=3074;user=guest;selectid=3074)

-- Michel Mauny

@vicuna
Copy link
Author

vicuna commented Sep 20, 2004

Comment author: administrator

See fixed bug #3074.

@vicuna vicuna closed this as completed Sep 20, 2004
@vicuna
Copy link
Author

vicuna commented Sep 22, 2004

Comment author: administrator

Le 20.09.2004, à 11:13:32, Michel Mauny a écrit:

[Might be related to bug #3074]

This is precisely bug #3074, and it's been fixed in the CVS
It is indeed fixed in the cvs version, but from the cvs log, it
seems that it was rather related to bug #2865 than to #3074
(revision 1.20.2.2 does not fix the problem, while 1.20.2.3 does).
Thanks anyway,

--
E tutto per oggi, a la prossima volta
Virgile

@vicuna
Copy link
Author

vicuna commented Sep 22, 2004

Comment author: administrator

Pour info, le bug #2865 est resté ouvert car, comme le dit la note
dans le BTS, "line numbering remains buggy when there are newlines in
antiquotations", et c'est malheureusement bcp plus difficile à réparer
que la numérotation des lignes en présence de chaînes de caractères
contenant des newlines (#3074).

Cela dit, il se peut en effet que les logs soient un peu confus sur
ces problèmes qui concernent tous la numérotation de ligne.

-- Michel

virgile.prevosto@m4x.org wrote/écrivait (Wed, Sep 22, 2004 at 12:06:33PM +0200):

Le 20.09.2004, à 11:13:32, Michel Mauny a écrit:

[Might be related to bug #3074]

This is precisely bug #3074, and it's been fixed in the CVS
It is indeed fixed in the cvs version, but from the cvs log, it
seems that it was rather related to bug #2865 than to #3074
(revision 1.20.2.2 does not fix the problem, while 1.20.2.3 does).
Thanks anyway,

--
E tutto per oggi, a la prossima volta
Virgile


Caml-devel mailing list
Caml-devel@yquem.inria.fr
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-devel

--

@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