bugGNU Octave - Bugs: bug #57820, [octave forge]...

 
 

bug #57820: [octave forge] (fuzzy-logic-toolkit) build failure: parse error on anonymous function

Submitter:  Andrew Janke <apjanke>
Submitted:  Sat 15 Feb 2020 03:57:20 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.2.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 15 Feb 2020 08:17:00 PM UTC, comment #4: 

Thanks!

Andrew Janke <apjanke>
Sat 15 Feb 2020 08:16:32 PM UTC, comment #3: 

Duplicate of bug #57559.

Mike Miller <mtmiller>
Group Member
Sat 15 Feb 2020 08:15:23 PM UTC, comment #2: 

I think this bug has already been reported and fixed in the repository, but hasn't been released yet. I'll look for the previous bug.

Mike Miller <mtmiller>
Group Member
Sat 15 Feb 2020 04:24:37 AM UTC, comment #1: 

Oops; a bad "verbatim" tag lost the rest of my post.

Here's the error:


octave:10> pkg install -forge fuzzy-logic-toolkit
parse error near line 165 of file /Users/janke/octave/fuzzy-logic-toolkit-0.4.5/defuzz.m

  anonymous function bodies must be single expressions

>>>   y_val = @(y_val) if (y_val == max_y) 1 else 0 endif;
                        ^

error: called from
    doc_cache_create>create_cache at line 109 column 20
    gen_doc_cache_in_dir>@<anonymous> at line 143 column 16
    doc_cache_create>gen_doc_cache_in_dir at line 144 column 9
    doc_cache_create at line 55 column 12
    install>generate_lookfor_cache at line 800 column 5
    install at line 229 column 7
    pkg at line 441 column 9
octave:10>


Andrew Janke <apjanke>
Sat 15 Feb 2020 03:57:20 AM UTC, original submission:  

When trying to install fuzz-logic-toolkit 0.4.5 in Octave 5.2.0 on macOS 10.14, I'm getting this error:


octave:10> pkg install -forge fuzzy-logic-toolkit
parse error near line 165 of file /Users/janke/octave/fuzzy-logic-toolkit-0.4.5/defuzz.m

  anonymous function bodies must be single expressions

>>>   y_val = @(y_val) if (y_val == max_y) 1 else 0 endif;
                        ^

error: called from
    doc_cache_create>create_cache at line 109 column 20
    gen_doc_cache_in_dir>@<anonymous> at line 143 column 16
    doc_cache_create>gen_doc_cache_in_dir at line 144 column 9
    doc_cache_create at line 55 column 12
    install>generate_lookfor_cache at line 800 column 5
    install at line 229 column 7
    pkg at line 441 column 9
+verbatim+

Andrew Janke <apjanke>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by apjanke (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-15 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #57559
    2020-02-15 mtmiller Summary[fuzzy-logic-toolkit] Build failure: parse error on anonymous function [octave forge] (fuzzy-logic-toolkit) build failure: parse error on anonymous function

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code