Summary: | Cannot add files to/remove files from project correctly if the project is opened by a symbolic-linked path | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Jie Gao <gaoj> |
Component: | Build tools: Custom Makefiles | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jie Gao
2005-03-29 03:36:54 UTC
This is with a "Custom Project", correct? Yes, I only work with "custom project". So all the problems I experienced and tests I made were with custom project. But I'm not sure if other types of projects have the same problem or not. These days I found this problem is not so "simple" as not knowing symbolic linked path, but seems more complicated (on FreeBSD). Firstly, for the symbolic linked path, kdevelop actually uses real path except for the home directory of a user. I found that if a symbolic linked directory is outside of my home directry, e.g. in /tmp, kdevelop will use the actual real path of that project directory. But unfortunately, for things inside a user's home directory, kdevelop always use $HOME to substitute the leading path in its config file. And in my case, $HOME is "/home/user" but it actually is /usr/home/user. This is the reason why m_projectDirectory is different from all project files' prefix. Secondly, even when opening a project is free from the $HOME confusion above, it still has problems adding files to the project. Files in the root directory of a project are OK. But for a file in some subdirectory in the project directory, no matter how deep it is, adding it only got a basename of the file in the .kdevelop.filelist file. The prefix relative to the project directory is ripped. I don't know how this should happen, because on a Linux system the kdevelop works fine without such problems. Fixed in svn. Relative and absolute paths and paths containing symlinks were not handled correctly. http://lists.kde.org/?l=kde-commits&m=113285732705490&w=2 Alex |