Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
error report cites line-number which is not anywhere close to the actual error. (Mantis 7063) #102
In some cases camlp4 reports very odd line-numbers when there is an error.
When I compile the attached file:
ocamlfind c -g -c -syntax camlp4o -package mikmatch_str main.ml
I get the following error:
File "main.ml", line 8, characters 7-8:
There, camlp4 tells me that something is wrong on line 8, column 7
In this case, it seems that the reported line number with the error
This can be a source of frustration for programmers.
The attached file is very artificial, but I stumbled upon this with a real program I am working on.
added a commit
Feb 9, 2016
The problem comes from the fact that camlp4 accepts