bugGNU nano - Bugs: bug #58984, poor error message for something...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58984: poor error message for something like "light,red"

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 19 Aug 2020 02:04:23 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 19 Aug 2020 02:48:13 PM UTC, comment #1: 

Fixed in git, commit 68d71f64, by ensuring that "bright" and "light" are prefixes before stepping beyond them.

The bug existed since at least version 2.0.6.

Benno Schulenberg <bens>
Group administrator
Wed 19 Aug 2020 02:04:23 PM UTC, original submission:  

To reproduce, move your ~/.nanorc out of the way and create a new one with just the following contents:

syntax default
color bright,red "word"

(Note the mistaken comma between "bright" and "red".  I use the deprecated "bright" here in order to test also older versions.)

Now run: 'src/nano README' and type ^X.  It says:

Error in /home/ben/.nanorc on line 2: Color "" not understood

That empty string is poor feedback.  Preferably it would say that "bright"/"light" should not be followed by a comma, but saying that "bright" or "light" is not the name of a color will be good enough.

Benno Schulenberg <bens>
Group administrator

 

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

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 bens (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-25 bens Open/ClosedOpen Closed
    2020-08-19 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code