Your message dated Wed, 07 May 2014 13:00:08 +0000
with message-id <[email protected]>
and subject line Bug#703361: fixed in opentoken 5.0a-1
has caused the Debian Bug report #703361,
regarding Column function returns wrong result
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
703361: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703361
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: opentoken
Version: 4.0b

The Column function is off by 1 for all lines other than the first. 

The following small program tests the output of the Ada_Lexer package: 

with Ada.Text_IO;  use Ada.Text_IO;
with Ada_Lexer;  use Ada_Lexer;
with Ada.Command_Line;  use Ada.Command_Line;
procedure Parse is
    F : File_Type;
begin
    Ada.Text_IO.Open (F, In_File, Ada.Command_Line.Argument (1));
    Set_Input_Feeder(F);
    Set_Comments_Reportable(True);

    loop
        Find_Next;
        exit when Token_ID = End_Of_File_T;
        Put_Line ("Found token: " & Ada_Token'Image(Token_ID) &
                     " line=" & integer'image(Line) &
                     " column=" & integer'image(Column) &
                     " lexeme=" & Lexeme);
    end loop;
end Parse;    
    
When run on a file containing this text:

with Ada.Text_IO;
use Ada.Text_IO;
procedure Hello is
begin
    Put_Line ("Hello");
end Hello;

the first part of the output looks like:

Found token: WITH_T line= 1 column= 1 lexeme=with
Found token: IDENTIFIER_T line= 1 column= 6 lexeme=Ada
Found token: DOT_T line= 1 column= 9 lexeme=.
Found token: IDENTIFIER_T line= 1 column= 10 lexeme=Text_IO
Found token: SEMICOLON_T line= 1 column= 17 lexeme=;
Found token: USE_T line= 2 column= 2 lexeme=use
Found token: IDENTIFIER_T line= 2 column= 6 lexeme=Ada
Found token: DOT_T line= 2 column= 9 lexeme=.
Found token: IDENTIFIER_T line= 2 column= 10 lexeme=Text_IO
Found token: SEMICOLON_T line= 2 column= 17 lexeme=;
Found token: PROCEDURE_T line= 3 column= 2 lexeme=procedure
    
Note that on line 2 (of the "hello" program), Ada_Lexer says the
column number of "use" is 2 (should be 1), of "Ada" is 6 (should be
5), and so on.

The problem is that Opentoken.Token.Enumerated.Analyzer.-
Characters_After_Last_EOL does not compute its result correctly if
Slice_Tail >= Analyzer.Buffer_Head.

--- End Message ---
--- Begin Message ---
Source: opentoken
Source-Version: 5.0a-1

We believe that the bug you reported is fixed in the latest version of
opentoken, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nicolas Boulenguez <[email protected]> (supplier of updated opentoken package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 01 May 2014 14:02:53 +0200
Source: opentoken
Binary: libopentoken4-dev libopentoken-dbg libopentoken7
Architecture: source amd64
Version: 5.0a-1
Distribution: unstable
Urgency: medium
Maintainer: Nicolas Boulenguez <[email protected]>
Changed-By: Nicolas Boulenguez <[email protected]>
Description: 
 libopentoken-dbg - OpenToken lexical analysis library for Ada: debug symbols
 libopentoken4-dev - OpenToken lexical analysis library for Ada: development
 libopentoken7 - OpenToken lexical analysis library for Ada: shared library
Closes: 703361
Changes: 
 opentoken (5.0a-1) unstable; urgency=medium
 .
   * New upstream release relying on gnat-4.9. Closes: #703361.
     Library and -dev packages renamed per Ada policy.
   * New user guide. Lintian override: GFDL, but without invariant section.
     Remove opentoken_developer_tools.html (install documentation).
   * rules: run-tests obsoleted by sadt from devscripts.
   * Upstream files are all executable, fix remaining permissions.
Checksums-Sha1: 
 141d8318e66b4f53d201ce0657dc33ecf8467217 2072 opentoken_5.0a-1.dsc
 b7dad0d2b072f97e9b310d17895aa59dad2c1e77 160140 opentoken_5.0a.orig.tar.bz2
 b543500bd011b686567a8994a399a8b0c14e332a 6664 opentoken_5.0a-1.debian.tar.xz
 40d0e15c6081ec969f71e2599683105bf9527cca 641632 
libopentoken4-dev_5.0a-1_amd64.deb
 c48b0540dabd2b35ef781c5c62c2c9646201920c 304024 
libopentoken-dbg_5.0a-1_amd64.deb
 1a162b5e8563c6bed46ceebb592249e1573b6060 180900 libopentoken7_5.0a-1_amd64.deb
Checksums-Sha256: 
 d0e8bc3f30de179b89316b85d27bd4047468be49e17ac242c2aa78747ab2164e 2072 
opentoken_5.0a-1.dsc
 25d294e106b77b81b251405eb9e1424d2c216dec911c16afa2f2047b982ea641 160140 
opentoken_5.0a.orig.tar.bz2
 ff41a431a570dffb9eade25f1b02e24631d207dda571b1ade2867c0a96456be1 6664 
opentoken_5.0a-1.debian.tar.xz
 455d49358f06470e1a1ecf67b3e747ec8f604223ff6e49080dfd47ae6ab7477a 641632 
libopentoken4-dev_5.0a-1_amd64.deb
 9c9fac6595269d09d1524330c5a57539e6a13214fc36524f367a45f465486eb4 304024 
libopentoken-dbg_5.0a-1_amd64.deb
 8b5c8f7ebe6c2a5d5e38d03f28e94aa0be6b8fdd0aee95969de7d1a749fb2d69 180900 
libopentoken7_5.0a-1_amd64.deb
Files: 
 80863e8117a08edb58df179e958afe38 641632 libdevel extra 
libopentoken4-dev_5.0a-1_amd64.deb
 490e0f2bbf9852997dbfbf240c99543b 304024 debug extra 
libopentoken-dbg_5.0a-1_amd64.deb
 8cc223930e4cb713c34ad2777ebafd1f 180900 libs extra 
libopentoken7_5.0a-1_amd64.deb
 5e8d54044f3a457308ca3f24fa7ff24e 2072 libdevel extra opentoken_5.0a-1.dsc
 68627f939db89dbb44a1104e6dcb4b16 160140 libdevel extra 
opentoken_5.0a.orig.tar.bz2
 0782defd36704301f7ad808060690e76 6664 libdevel extra 
opentoken_5.0a-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJTYk4vAAoJELUqnPRJDfyN8oIP/RNmpwmK3HwjwD1gii19/42R
hvJ6z83+0yR8qR5cE4PO8rirrp7nNIV9nuu/yUDUaO4Jn6UIQ1bFPGecypIuA1a0
2CUVNh2TGzL6TlBBvzEjpALBiwCBc7gwZ9Is5NkKdtl6mQw6j3r3xZTt/dIf/ISc
O6nGzD8YnUYQDn+aEKqm9e3W6Gcb5f3RmD9m11WAMdb7jEaHUqtry8c7QFNp2GR8
k1g/YvYuli8MQHWfihb3mrH+ShyzChLGRjNeY8UHNPS/G5c6Iuj7e7yTlyQjWmdA
986R19r5T9RoShCO0iaDAWxqqKGugsbCCpiPgcSQ2NpCJMhUQ/vTcwQtnxPZXUVP
3TQ811D9OJg/0X6Jx2hNRMtpXDZIosFoDMxcODexkFgS7XR+ix2ArBM3L7SUhOmi
Y+LZY2IPEnRWtBVKOXZUEtwNMK5kN7NSzNdWwoLpRFurhuFn9iVEnl9fNnuVfHIR
YO8+p3Yt10bZuLO/kxS/Mw1UD7hHraaZ7MsxF9h404SH0NMpbz2tMeehzL/XI+/H
9Byb95NVZSj9UBslJcjzzmt7EZy1gYLXKqQJ1Yd+T42MrzX4z9PkSuXjHxjK5vSg
3Wet1vvYx/zzR4Pt7v+SSdYifJ1OyULRENlrRLIBkkK4BC/c7JQ5xPi9TkCR6xtZ
TfV+kx9IDRV1X+jC4Wk9
=bIn8
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to