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

 
 

bug #30903: Error line numbers are wrong

Submitted by:  Jose Antonio Ortega Ruiz <jao>
Submitted on:  Mon 30 Aug 2010 02:08:56 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Oct 2011 02:23:28 PM UTCcivodulStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1