bugGNU Octave - Bugs: bug #58401, Script and function files not...

 
 

bug #58401: Script and function files not found in cached network drive

Submitted by:  Roberto Fernandez <qbort>
Submitted on:  Tue 19 May 2020 10:18:52 AM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Confirmed Assigned to:  None
Originator Name:  Qbort Open/Closed:  Open
Release:  6.0.90 Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sun 31 May 2020 06:11:09 PM UTC, comment #1: 

I can conform this on Windows 7 and there are some interesting observations:

  1. As in the original post, saving and running a file, e.g. as "ccc.m" leads to "error: 'ccc' undefined near line 1, column 1" although the file exists
  2. Following comands "ccc" in the console lead to the same error
  3. "run('ccc') does not work
  4. "source('ccc.m')" works
  5. "edit ccc" works
  6. Adding the path of the offline network share explicitly to Octave's task solves the problem
  7. The problem does not occurr when the file is already existing when octave starts
  8. All this is not GUI-related and also happens in the CLI

It seems that Octave is not able to handle the current directory as a member of the search path if it is on offline network share. Changing category from GUI to Interpreter.

Torsten Lilge <ttl>
Project Member
Tue 19 May 2020 10:18:52 AM UTC, original submission:  

My configuration:
OS: Windows 10
Octave version: 5.1.0
Network drive mounted on "Z:"
A folder in "Z:" has been marked in Windows as "Always available offline"
Network disconnected (i.e. working on the "offline" copy)

Steps to reproduce:

  1. Open Octave GUI
  2. Use the 'File Browser' to navigate to a folder on the cached network drive ("Z:" for me). This folder should already have ".m" files to run (that were created before opening Octave).
  3. Open one of those files in the editor and "Save File and Run" icon. (This should run fine)
  4. Go to editor tab
  5. Click "New File" icon
  6. Write any Octave code in the blank file (e.g. my_var=20;)
  7. Click "Save File and Run" icon and save as 'my_new_file.m' in the current directory (network drive)

After above steps, in the command window, the following error is displayed:

error: 'my_new_file' undefined near line 1 column 1

The file is correctly displayed in the Octave File browser.

When I close and re-open Octave GUI and navigate to the folder again, I am able to run the file.

This seems to only be a problem with cached network mounted drives (I cannot reproduce the same problem when I follow above steps in any folder in my C: drive or when I do it in an "online" network mounted drive)

Roberto Fernandez <qbort>

 

(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 qbort (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-31 ttl CategoryGUI => Interpreter
        StatusNone => Confirmed
        Release5.1.0 => 6.0.90
        SummaryError 'undefined near line 1 column 1' when running a new file created through the GUI editor in a cached network drive => Script and function files not found in cached network drive

    Back to the top


    Powered by Savane 3.5