bugGuile - Bugs: bug #30903, Error line numbers are wrong

 
 

bug #30903: Error line numbers are wrong

Submitter:  Jose Antonio Ortega Ruiz <jao>
Submitted:  Mon 30 Aug 2010 02:08:56 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 Feb 2011 07:47:11 PM UTC, comment #2: 

Indeed.  See http://www.gnu.org/software/guile/docs/master/guile.html/Source-Properties.html#Source-Properties for the reason: `a' does not have any source properties associated with it.

To fix this, we would need a reader that returns an annotated datum instead of trusting to the source-propreties whash.

Andy Wingo <wingo>
Group administrator
Mon 30 Aug 2010 02:13:38 AM UTC, comment #1: 

Sorry, pasted the wrong error trace. Here's the real one:

;;; compiling foo.scm
;;; compiled /home/jao/.cache/guile/ccache/2.0-0.R-LE-4/home/jao/tmp/foo.scm.go
foo.scm:3:1: In procedure module-lookup:
foo.scm:3:1: Unbound variable: a


i.e., line 3 instead of line 5.

Jose Antonio Ortega Ruiz <jao>
Group Member
Mon 30 Aug 2010 02:08:56 AM UTC, original submission:  

In today's guile 1.9 (and since a while ago), line number and column reported by the repl on entering the debugger are wrong (they seem to always point some lines above the actual error).

E.g., loading this file:

    (define-module (foo))

    (define k 3)

    a

reports the undefined `a' error as:

    scheme@(guile-user)> (load "foo.scm")
    ;;; compiling foo.scm
    ;;; compiled /home/jao/.cache/guile/ccache/2.0-0.RLE-4/home  /jao/tmp/foo.scm.go
    foo.scm:1:1: In procedure module-lookup:
    foo.scm:1:1: Unbound variable: define-modue
    Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
    scheme@(guile-user) [1]>

i.e., line 1 instead of line 5.

Jose Antonio Ortega Ruiz <jao>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by civodul (Updated the item)
  • -email is unavailable- added by wingo (Posted a comment)
  • -email is unavailable- added by jao (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-22 civodul StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code