bugGNU Octave - Bugs: bug #65004, File saving is asking for...

 
 

bug #65004: File saving is asking for overwriting existing files because it already exists (also if it is wrong)

Submitter:  Sarah Kriesch <skriesch>
Submitted:  Sat 09 Dec 2023 12:43:50 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 8.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 28 Dec 2023 05:17:58 PM UTC, comment #10: 

This is annoying, but I don't know what more to do.  This feature works on all the platforms that we have tried it on.

Maybe there is something specific about Tumbleweed, or the way the packagers at openSUSE have compiled Octave, or the specific Qt libraries used.

Rik <rik5>
Group administrator
Thu 28 Dec 2023 01:58:54 PM UTC, comment #9: 

I have created the file mathematik.m today. I am receiving same results with every different file name, which does not exist.

I add the two screenshots, that you can see, that the filename really did not exist before.


Sarah Kriesch <skriesch>
Wed 27 Dec 2023 11:26:00 PM UTC, comment #8: 

Could you try an m-file with a name that definitely doesn't clash with anything in Octave's namespace such as "abc.m"?

Rik <rik5>
Group administrator
Sat 09 Dec 2023 03:18:12 PM UTC, comment #7: 

I can not find any special "USB thumb-drive" option to save in Octave.
Where is it?

If I choose my USB stick as a directory, I am receiving the same error message.

Sarah Kriesch <skriesch>
Sat 09 Dec 2023 01:49:41 PM UTC, comment #6: 

Do you get the same problem if you try to save file on say USB thumb-drive?

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Sat 09 Dec 2023 01:36:15 PM UTC, comment #5: 

Perhaps it is a Tumbleweed issue. I cannot reproduce the problem on Fedora/Ubuntu/Centos/Windows.

BTW, fibonacci.m is a function in "symbolic" toolbox.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Sat 09 Dec 2023 01:31:44 PM UTC, comment #4: 

I have checked that before.
The test.oct file did not exist before. The same counts to "All files" and I wanted to create a fibonacci.m file.

Every time afterwards the error message has been appearing, if I want to save a really "new" file.

Sarah Kriesch <skriesch>
Sat 09 Dec 2023 01:28:29 PM UTC, comment #3: 

File "Save As" menu list only "Octave Files" by default and
those are .m files not .oct.
Change "Octave Files" to "All files" and you will see that test.oct is already there.

Also not, that "test: is an internal octave's function. Creating the a user function with the same name can result with some unexpected results. Generally speaking you should avoid generic names like "test", "plot", "sin", "solve" etc...

Sincerely,

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Sat 09 Dec 2023 01:24:01 PM UTC, comment #2: 

That is happening also with Matlab (.m) files and after general saving. In this case, I have used the "save" button in GNU Octave to save the file in the correct directory.

Sarah Kriesch <skriesch>
Sat 09 Dec 2023 01:08:27 PM UTC, comment #1: 

Your picture shows that you are trying to create an oct file. Does this behavior show up only with mkoctfile or does it also show up with save?

Arun Giridhar <arungiridhar>
Group Member
Sat 09 Dec 2023 12:43:50 PM UTC, original submission:  

I am using GNU Octave with the version 8.4.0 on openSUSE Tumbleweed (GNU/Linux).

Every time after the creation of a new file and saving it, I will be asked, whether I want to save it, because a file with the same name already exists and it would be overwritten.

This error message is wrong, because all these file names are new and this error message is unexpected and wrong.

I attach the error message as a screenshot (in German).

I am clicking on "Yes" at the moment, because it can overwrite everything, what does not exist until now.

Sarah Kriesch <skriesch>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #55484:  Octave-mathematik.png added by skriesch (62KiB - image/png)
file #55425:  OctaveError.png added by skriesch (15KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by skriesch (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-28 rik5 StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2023-12-28 skriesch Attached File- Added Octave-mathematik.png, #55484
        Attached File- Added Octave-mathematik-error.png, #55485
    2023-12-27 rik5 StatusNone Need Info
    2023-12-09 skriesch Attached File- Added OctaveError.png, #55425

    Back to the top

    Powered by Savane 3.13-04b1.
    Corresponding source code