Opened 11 years ago

Closed 11 years ago

#155 closed defect (fixed)

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/' - sysopen: No such file or directory at /opt/local/lib/perl5/site_perl/5.10.0/Padre/ 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 (1)

comment:1 Changed 11 years ago by jquelin

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

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.