[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65398] classdef: asking for help with spuriou
From: |
Colin Macdonald |
Subject: |
[Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class |
Date: |
Sat, 2 Mar 2024 04:45:59 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?65398>
Summary: classdef: asking for help with spurious .m extension
breaks class
Group: GNU Octave
Submitter: cbm
Submitted: Sat 02 Mar 2024 09:45:59 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: stable
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 02 Mar 2024 09:45:59 AM UTC By: Colin Macdonald <cbm>
This is related to bug #61521.
Suppose you have a self-contained classdef file and you ask for the help with
.m tacked on:
>> help classdef_infile.m # <-- Note .m here, and *file* below
/
/
'classdef_infile.m' is a file from the file
/home/cbm/src/tmp/classdef_infile.m
CLASSDEF_INFILE A classdef living in a single m-file
Some tests:
>> 6 + 7
...
>> a = classdef_infile()
error: class not found: classdef_infile
error: called from
classdef_infile at line 39 column 18
Restart, try again without the .m:
>> help classdef_infile
'classdef_infile' is a class constructor from the file
/home/cbm/src/tmp/classdef_infile.m
CLASSDEF_INFILE A classdef living in a single m-file
Some tests:
...
>> classdef_infile()
ans =
class name = "default", age = 42
## BUT we can break it again by doing .m:
>> help classdef_infile.m
'classdef_infile.m' is a file from the file
/home/cbm/src/tmp/classdef_infile.m
CLASSDEF_INFILE A classdef living in a single m-file
Some tests:
...
>> classdef_infile()
error: class not found: classdef_infile
error: called from
classdef_infile at line 39 column 18
_______________________________________________________
File Attachments:
-------------------------------------------------------
Name: classdef_infile.m Size: 778B
<http://savannah.gnu.org/bugs/download.php?file_id=55763>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-42b89f0a56eefbb53369121f3b038a4b51995a07.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65398>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class,
Colin Macdonald <=
- [Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class, Rik, 2024/03/02
- [Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class, John W. Eaton, 2024/03/02
- [Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class, John W. Eaton, 2024/03/04
- [Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class, Rik, 2024/03/04
- [Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class, Colin Macdonald, 2024/03/04
- [Octave-bug-tracker] [bug #65398] classdef: asking for help with spurious .m extension breaks class, Rik, 2024/03/05