bugGNU Octave - Bugs: bug #47919, Error messages for mismatched...

 
 

bug #47919: Error messages for mismatched struct fields is not informative

Submitted by:  Lachlan Andrew <lachlan>
Submitted on:  Fri 13 May 2016 11:51:24 PM UTC  
 
Category: InterpreterSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: Patch SubmittedAssigned to: Lachlan Andrew <lachlan>
Originator Name: LachlanOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 18 Jan 2017 11:38:49 PM UTC, comment #1:

What is the test case that results in this error message?

John W. Eaton <jwe>
Project Administrator
Fri 13 May 2016 11:51:24 PM UTC, original submission:

I'm not sure if this is worth the complexity, but when I got the error "orderfields: structs must have same fields up to order", I thought that it may be useful to indicate which fields were different.

The patch is less trivial than I expected, and probably not worth the maintenance burden, but since I have written it, I'll post it here once I have the bug number. Currently, if only one field is in one struct but not the other, it prints the name of that field; otherwise it prints the number of such fields. There are many more verbose possibilities (like listing all shared/LHS-only/RHS-only fields if that number is below a threshold), and I'm happy to implement something different if people think it is worth it, but I'm afraid of the tail wagging the dog.

Lachlan Andrew <lachlan>
Project MemberIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

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 lachlan (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 14 May 2016 12:58:34 AM UTClachlanAttached File-=>Added bug_47919_field_mismatch.v1.cset, #37153
      StatusNone=>Patch Submitted
      Assigned toNone=>lachlan

    Back to the top


    Powered by Savane 3.1-cleanup1