bugGNU Octave - Bugs: bug #65769, Error when running a new .m file

 
 

bug #65769: Error when running a new .m file

Submitter:  jeewantha <jeewantha24>
Submitted:  Wed 22 May 2024 05:03:01 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 9.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 25 Jul 2024 08:58:53 PM UTC, comment #6: 

I was seeing this same behavior on Octave 9.2.0 on Windows 10. I added the path to the current directory in my ~/.octaverc file with addpath("~"). This seems to have fixed the problem at least for files saved in that directory.

Note that the current directory is now listed twice in the Octave search path, once as "." and once as "C:\Users\DennisC". The addpath("~") call in .octaverc added the second entry which matches the text displayed as the current directory in the GUI toolbar.

P.S. I must still save all files in the current directory since I can't navigate in the File Save As dialog under Windows without the dialog hanging. There has been a long discussion about this in the forum at https://octave.discourse.group/t/octave-9-1-file-dialogs-not-responding-on-windows-10/5413

Dennis Cote <dennisc_hi>
Mon 08 Jul 2024 05:47:51 PM UTC, comment #5: 

Realized the other bug is already closed. Re-opened this one to keep track of the issue.

Markus Mützel <mmuetzel>
Group administrator
Fri 05 Jul 2024 03:43:04 PM UTC, comment #4: 

Marking as duplicate of bug #65548.

Markus Mützel <mmuetzel>
Group administrator
Fri 05 Jul 2024 01:56:18 PM UTC, comment #3: 

I get the same behavior in 9.2 on Windows. If you open a file and then save as a new file name, when you run it, you get the error. Running path(path()) fixes the problem.

Anonymous
Tue 04 Jun 2024 03:20:07 AM UTC, comment #2: 

No response.  Closing report.

Rik <rik5>
Group administrator
Thu 23 May 2024 06:24:34 AM UTC, comment #1: 

This sounds similar to bug #65548.

Can the new function be used after you executed `path(path())`?

Can you reproduce the issue with the release candidate for Octave 9.2.0? See: https://octave.discourse.group/t/release-candidate-for-octave-9-2-0-available/5579

Markus Mützel <mmuetzel>
Group administrator
Wed 22 May 2024 05:03:01 PM UTC, original submission:  

OS = windows 11
GNU octave 9.1.0

(1) I have a m file (analysis_2.m) which has a function analysis_2 and runs fine
(2) save it as a analysis_2b.m and change function name to analysis_2b.m and run it. The following error occurs


error: 'analysis_2b' undefined near line 1, column 1

This happens to me so many times.



jeewantha <jeewantha24>

 

(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 dennisc_hi (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by jeewantha24 (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 group members can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-10-17 nrjank Dependencies- bugs #66349 is dependent
    2024-07-25 rik5 Carbon-CopyRemoved 72865 -
    2024-07-08 mmuetzel SummaryError when running a m file Error when running a new .m file
    2024-07-08 mmuetzel StatusDuplicate Confirmed
        Open/ClosedClosed Open
    2024-07-05 mmuetzel StatusNeed Info Duplicate
        Dependencies- Depends on bugs #65548
    2024-06-04 rik5 Open/ClosedOpen Closed
    2024-05-23 mmuetzel StatusNone Need Info

    Back to the top

    Powered by Savane 3.14-21bf.
    Corresponding source code