bugGNU Octave - Bugs: bug #54961, Saving file with editor on a CIFS...

 
 

bug #54961: Saving file with editor on a CIFS share results in unexpected Error message

Submitter:  Bancal Samuel <sbancal>
Submitted:  Mon 05 Nov 2018 02:25:33 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Bancal Samuel Open/Closed:  * Closed
Release:  * 4.4.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 24 Nov 2018 01:09:10 PM UTC, comment #4: 

I have pushed changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/22edc076543e
with restoring line and column when reloading an externally changed file.

This workaround is the only thing we can do here without losing of the ability of keeping track of external changes. I am therefore closing the report.

Torsten Lilge <ttl>
Group Member
Tue 13 Nov 2018 09:00:51 PM UTC, comment #3: 

The workaround mentioned in comment #2 should be no problem. I will have a look at it.

We can also stop watching files on network shares, but I guess this is not the desired solution.

Torsten Lilge <ttl>
Group Member
Mon 05 Nov 2018 02:27:15 PM UTC, comment #2: 

By the way, an other workaround could be to enhance the "Reload externally changed files without prompt" option so that the cursor stays at the position it was just before saving.

Bancal Samuel <sbancal>
Mon 05 Nov 2018 02:26:36 PM UTC, comment #1: 

After some investigations, if we add the following arg "actimeo=0" to our mount.cifs command, that behaviour doesn't happen any more. But that disables completely files and dirs attribute cache ... which is not acceptable (e.g. some quick test demonstrates that some operations to become more than 8 times slower).

Bancal Samuel <sbancal>
Mon 05 Nov 2018 02:25:33 PM UTC, original submission:  

Hi,

While saving a file with GNU Octave editor on a CIFS share generates an error message, about 1 sec after the file is saved.

This error message says :
It seems that '/home/username/path/to/cifs_mounted/folder/one_file.m' has been modified by another application. Do you want to reload it?
[No] [Yes]

Is there a way to :

a) fix this? (since the file hasn't been changed!)
or
b) add an option "Don't reload externally changed files"? (as a workaround)

We have seen the option to "Reload externally changed files without prompt". That could also be a workaround ... but it's really uncomfortable since after reloading, the cursor get moved to the very beginning of the file every time the file is saved (and reloaded).

Tested softwares are :

+ Octave 4.2.2 on Ubuntu 18.04
+ Octave 4.4.1 on Ubuntu 18.10

Thanks,
Samuel Bancal

Bancal Samuel <sbancal>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by sbancal (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-24 ttl StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code