Bug 106257

Summary: It is possible to add non-existent file to a project, prompting later error messages
Product: [Applications] kile Reporter: Simon Anders <sanders>
Component: generalAssignee: Jeroen Wijnhout <spam>
Status: RESOLVED FIXED    
Severity: normal CC: thomas.braun
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Simon Anders 2005-05-25 11:23:49 UTC
Version:           Kile 1.7.1 (Using KDE 3.3.1-3.10 RedHat) (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs

If one adds a file to a project and --instead of selecting a file in the directory browsing window-- one types in a file name, one can add non-existing files. In this case, an error message is displayed, suggesting to the user that the operation failed. However, the file is appended to the project, and hence, whenever one later open the project, an error message is displayed that kile "could not read from the file" and the user should check her permission to read the file.

Suggestions: 

1. After displaying the error message that the file could not be found it should not be added to the project.

2. If, when opening a project, a file cannot be read, the error message should say (additions to existing message in underscores): "The file xxx could not be _found or_ not be read from. Check whether it _exists and_ whether you have read permission. _Do you want to remove the file from the project? Yes/No_"
Comment 1 Thomas Braun 2006-05-26 15:53:01 UTC
Hello,
thanks for your report.
We fixed this bug in the development (svn) version of kile.

We now warn the user (through the log window) if the file is not readable/existent and then don't add the file to the project. The same if it is already part of an project.

Regards,
Thomas Braun