bugGNU Octave - Bugs: bug #38698, Incorrect location of parse error

 
 

bug #38698: Incorrect location of parse error

Submitted by:  Torok Levente <lev>
Submitted on:  Wed 10 Apr 2013 01:09:47 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: Wont FixAssigned to: None
Originator Name: LevOpen/Closed: Closed
Release: 3.6.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 10 Apr 2013 07:37:01 PM UTC, comment #2:

I took a look. The problem is clearly the missing final bracket. Octave believes it is still in the middle of defining a matrix when it encounters the END-OF-FILE marker.

The parser has undergone a lot of work on the development branch and the problem has been fixed there. Unfortunately the changes are so large that they can't easily be backported to the stable branch.

So, we won't fix this bug on stable, but it will be fixed by the next major release of Octave (3.8.0 or 4.0.0).

Rik <rik5>
Project Administrator
Wed 10 Apr 2013 06:47:18 PM UTC, comment #1:

Something went wrong with your upload. Can you try to attach the file again to this bug report so that we can look at it?

Rik <rik5>
Project Administrator
Wed 10 Apr 2013 01:09:47 PM UTC, original submission:

With octave 3.6.4 on ubuntu 12.04 I ran the following attached test file and I got:

octave:1> test
error: invalid character '�' (ASCII 255) near line 4, column 1
parse error near line 4 of file /net/gaia/home/levente/source/octave/dataCleaning/test.m

where test.m contained the following 3 lines:
"dt = [[ 1;2; 0];

"

Lev

Torok Levente <lev>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #27834:  test.m added by lev (20B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by lev (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 project members can vote.

     

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 10 Apr 2013 07:37:01 PM UTCrik5StatusNeed Info=>Wont Fix
      Open/ClosedOpen=>Closed
      SummaryIn correct error report=>Incorrect location of parse error
    Wed 10 Apr 2013 06:54:50 PM UTClevAttached File-=>Added test.m, #27834
    Wed 10 Apr 2013 06:47:18 PM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1