Ticket #155 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

error if passed a non-existent filename

Reported by: leedo Owned by:
Priority: minor Milestone:
Component: editor Version: 0.17
Keywords: Cc:


Still haven't gotten Padre to successfully launch on OS X, but I did notice that when I try to pass it a non-existent filename it gives me this warning:

read_file '/Users/leedo/test.pl' - sysopen: No such file or directory at /opt/local/lib/perl5/site_perl/5.10.0/Padre/Document.pm line 307

Padre could do a simple check if the file exists before trying to open and if it doesn't exist make a new file. Or you could just wait until the user tries to save to create the file.

Change History

comment:1 Changed 5 years ago by jquelin

  • Status changed from new to closed
  • Resolution set to fixed

fixed in r3346 - file will be created first if it does not exist.

note however that there will still be an error if you try to open a non-existent file:

  • in a directory that doesn't exist
  • in a directory where you don't have write rights
Note: See TracTickets for help on using tickets.