[Bug 79722] New: AutoProjectPart::slotCompileFile() uses non-robust path test

Craig Scott craig.scott at csiro.au
Fri Apr 16 01:58:06 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=79722      
           Summary: AutoProjectPart::slotCompileFile() uses non-robust path
                    test
           Product: kdevelop
           Version: 3.0.2
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel kdevelop org
        ReportedBy: craig.scott csiro au


Version:           3.0.2 (using KDE KDE 3.2.1)
Installed from:    RedHat RPMs

The result returned from projectDirectory() on line 853 of buildtools/autotools/autoprojectpart.cpp may make use of symbolic links. An issue arises in this case when the result for fi.dirPath() on line 847 contains the non-symbolic linked version of the same path. Since slopCompileFile() only tests if the start of the sourceDir string matches the project directory, it believes the paths are different when in fact they are not. As a result, it issues a message box saying "Can only compile files in directories which belong to the project", which is misleading to the user.

A temporary workaround for users is to use an absolute path in the project options for the project directory, although this is problematic if the project needs to be moved around.




More information about the KDevelop-devel mailing list