Bug 106257 - It is possible to add non-existent file to a project, prompting later error messages
Summary: It is possible to add non-existent file to a project, prompting later error m...
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jeroen Wijnhout
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 11:23 UTC by Simon Anders
Modified: 2006-05-26 15:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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