bugGNU Octave - Bugs: bug #30920, Octave unable to find user...

 
 

bug #30920: Octave unable to find user functions after changing directory

Submitted by:  None
Submitted on:  Tue 31 Aug 2010 03:57:18 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Jaroslav Hajek <highegg>
Originator Name: Jacques BeilinOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.4
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.

 

(Jump to the original submission Jump to the original submission)

Wed 15 Sep 2010 06:30:30 PM UTC, comment #8:

Likewise, using this recipe I can also reproduce the problem using Octave 3.2.4, but not with the development sources, so I think the problem has been fixed.

Sorry, I don't know which changeset it is that fixed the problem. There have been quite a few changes to load-path.cc...

I'm closing this report since I think the problem is fixed. If you can reproduce it with a copy of Octave built from the development sources, then reopen the bug report.

John W. Eaton <jwe>
Project Administrator
Tue 14 Sep 2010 08:02:18 PM UTC, comment #7:

I can reproduce this problem with octave-3.2.3 packaged by Ubuntu. However, I cannot reproduce the problem with self-compiled development sources.

Judd Storrs <judd>
Tue 14 Sep 2010 07:57:15 PM UTC, comment #6:

Yes, it should be `/home/peter/nw/ltfat/pp/isoctave.m` with a slash, it was cut-n-paste error.

Filesystem is ext3, but I can also reproduce this in Ubuntu, Fedora and WinXP.

Simplest steps to reproduce it:

In a shell:

> mkdir pp
> cd pp
> echo "1" > testme.m
> mkdir qq
> octave


octave:2> addpath(pwd)
octave:3> cd qq
octave:4> testme
error: no such file, `/home/peter/pp/qq/testme.m`
error: no such file, `/home/peter/pp/qq/testme.m`

Peter Søndergaard <psoenderg>
Tue 14 Sep 2010 06:39:03 PM UTC, comment #5:

Shouldn't this be:

Note the initial slash I added before home/... Was that slash missing from octave's output or was this a typo when you entered the message into the bugtracker?

Judd Storrs <judd>
Tue 14 Sep 2010 06:03:11 PM UTC, comment #4:

What kind of filesystem is/home/peter/nw/ltfat? extN? VFAT? NTFS?

John W. Eaton <jwe>
Project Administrator
Tue 14 Sep 2010 01:01:18 PM UTC, comment #3:

I see something like this on:

- Ubuntu 32 bit, with Octave 3.2.3
- WinXP 32 bit, octave 3.2.4

I don't see it on

- Fedora 64 bit, Octave 3.2.4

In my case:

/home/peter/nw/ltfat

contains the function "isoctave.m", which return 1. "/home/peter/nw/ltfat" is in the path.

If pwd = /home/peter/nw/, which is not in the path, it works.
If pwd = /home/peter/nw/ltfat, it works.
If pwd = /home/peter/nw/ltfat/gabor, which is in the path, it works.

if pwd = /home/peter/nw/ltfat/pp, which is NOT in the path it get the following error messages:

error: no such file, `home/peter/nw/ltfat/pp/isoctave.m`
error: no such file, `home/peter/nw/ltfat/pp/isoctave.m`
error: no such file, `home/peter/nw/ltfat/pp/isoctave.m`
error: no such file, `home/peter/nw/ltfat/pp/isoctave.m`
error: no such file, `home/peter/nw/ltfat/pp/isoctave.m`

which is true: "isoctave" is not in /pp, it is in the parent directory.

I can't see a pattern of when and when not it works, as I get different incorrect behaviour depending on which machine I test, but the error message is always the same, it is looking in the wrong dir.

Peter Søndergaard <psoenderg>
Wed 08 Sep 2010 03:44:51 PM UTC, comment #2:

I tried to reproduce this by doing this (linux):

This works for me in the 3.0.5, 3.2.3 from Ubuntu repositories and a self-compiled development version (also works without the -qf).

Judd Storrs <judd>
Wed 01 Sep 2010 07:35:33 AM UTC, comment #1:

I can't reproduce this. Can anyone else?

Jaroslav Hajek <highegg>In charge of this item.
Tue 31 Aug 2010 03:57:18 PM UTC, original submission:

The problem happens also on linux.

1. using the cd command, I move to my script directory.
2. I try to run the script by typing exercice_alti in the terminal. I get the following message :

error: `exercice_alti' undefined near line 31 column 1

It seems to be ok if I run source ("exercice_alti.m")

I had the problem with this script but also on several other scripts.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21360:  exercice_alti.m added by None (964B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by psoenderg (Posted a comment)
  • -unavailable- added by judd (Posted a comment)
  • -unavailable- added by highegg (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 15 Sep 2010 06:30:30 PM UTCjweStatusWorks For Me=>Fixed
      Open/ClosedOpen=>Closed
    Wed 01 Sep 2010 07:35:33 AM UTChigheggCategoryNone=>Interpreter
      Item GroupOther=>Incorrect Result
      StatusNone=>Works For Me
      Assigned toNone=>highegg
    Tue 31 Aug 2010 03:57:18 PM UTCNoneAttached File-=>Added exercice_alti.m, #21360

    Back to the top


    Powered by Savane 3.1-cleanup1