bugGNU nano - Bugs: bug #42639, opening a file in a non-existent...

 
 

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

bug #42639: opening a file in a non-existent directory gives a strange statusbar message

Submitter:  Benno Schulenberg <bens>
Submitted:  Sat 28 Jun 2014 02:21:07 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  astyanax Open/Closed:  Closed

Fri 11 Jul 2014 10:41:00 AM UTC, comment #3: 

Thanks for catching that!  Re-fixed in r5058.

Chris Allegretta <astyanax>
Group administrator
Thu 10 Jul 2014 10:11:12 AM UTC, comment #2: 

Oooff.  Revision 5056 breaks nano for me: I cannot open any file any more, it says: "[ Error writing lock file: Directory '/home/ben/Repositories/LATEST' doesn't exist ]" -- but the directory does exist, I'm right in the middle of it: src/nano TODO.

Benno Schulenberg <bens>
Group administrator
Thu 03 Jul 2014 04:01:29 AM UTC, comment #1: 

Fixed in r5056. 

Now that I'm thinking about it though, there's a bigger problem, which is that when using locking, we now seem to drop the file passed on the command line if we run into locking issues, which is not the previous behavior.  Fixing that will probably obviate this issue, but I'll open a new bug regardless.

Chris Allegretta <astyanax>
Group administrator
Sat 28 Jun 2014 02:21:07 PM UTC, original submission:  

Trying to open a file in a directory that does not exist, produces a puzzling error message on the statusbar.

Try running 'nano thisisatypo/somefile'.  Nano will show an empty buffer and the statusbar will say: "[ Error writing lock file thisisatypo/.somefile.swp: Bad file descriptor ]".

Nano should recognize that some component of the given patch does not exist and, with a warning, skip that command-line argument.

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 astyanax (Updated the item)
  • -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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-28 bens Open/ClosedOpen Closed
    2014-07-11 astyanax StatusIn Progress Fixed
    2014-07-10 bens StatusFixed In Progress
        Open/ClosedClosed Open
    2014-07-03 astyanax StatusNone Fixed
        Open/ClosedOpen Closed
    2014-07-03 astyanax Assigned toNone astyanax
    2014-06-29 bens Summaryopening a file in a non-existent directory gives strange error message opening a file in a non-existent directory gives a strange statusbar message

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code