bugGNU Octave - Bugs: bug #62928, Error sourcing file message when...

 
 

bug #62928: Error sourcing file message when script with embedded '.' in filename has syntax error

Submitter:  None
Submitted:  Sun 21 Aug 2022 02:43:06 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Richard Lobb Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.4.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Aug 2022 05:08:03 PM UTC, comment #1: 

Happily, this has already been fixed.  Please upgrade to the current stable version (7.2).  Below is a sample session


octave-7.2.0 junk.1.m
error: 'xxx' undefined near line 1, column 1
error: called from
    junk.1.m at line 1 column 1



Rik <rik5>
Group administrator
Sun 21 Aug 2022 02:43:06 AM UTC, original submission:  

With Octave 6.4.0 if you have a script called, say, junk.m with a syntax error and you run it with

octave --no-window-system junk.m

you get the correct error message, e.g. "error: parse error near line 1 .."

But if you rename the file to, say, junk.1.m and try to run that you instead get told

error: source: error sourcing file '<workingdir>/junk.1.m'

If there is no syntax error, the command works fine.

With version 5.2 of Octave you get both the expected syntax error report and the 'error sourcing file' message.

Sample terminal dialogue with Octave 6.4:

blah:~$ cat >junk.m
x = 10(;
blah:~$ octave --no-window-system junk.m
error: parse error near line 1 of file /home/xxx/junk.m

  syntax error

>>> x = 10(;

           ^
blah:~$ cp junk.m junk.1.m
blah:~$ octave --no-window-system junk.1.m
error: source: error sourcing file '/home/xxx/junk.1.m'





Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  •  

    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 group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-23 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2022-08-22 mmuetzel Dependencies- bugs #62931 is dependent

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code