Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] source lookup question

I suspect that there was something in implementation of DirectorySourceContainer that made it unsuitable to be used to solve the scalability problem described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=225805 but I don't remember what it was. https://bugs.eclipse.org/bugs/show_bug.cgi?id=225805#c18 and the following comments may shed some light on it.

-sergey

On Wed, Dec 9, 2015 at 3:50 PM, Alena Laskavaia <elaskavaia.cdt@xxxxxxxxx> wrote:
Call me dumb but I still don't know what is the difference. Both are directory on filesystem. Both will only work
when path is relative, because if it is absolute I assume you need path mapping instead. First one can return IFile and second don't?



On Wed, Dec 9, 2015 at 2:56 PM, Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx> wrote:
The Javadoc of CompilationDirectorySourceContainer reads:
/**
 * A directory in the local file system that is used for running the C/C++ compiler. This container
 * is intended to be used when debugging information produced by the C/C++ compiler contains paths
 * to the source and header files relative to the directory where the compiler is run from.
 * The assumption is that all files under a compilation directory are compiled relative to
 * that directory, unless they belong to another compilation directory container that is higher on
 * the source container list.
 * 
 * Source elements returned from <code>findSourceElements(...)</code> are instances of
 * <code>IFile</code> or <code>LocalFileStorage</code>.
 * <p>
 * Clients may instantiate this class. 
 * </p>
 * @noextend This class is not intended to be subclassed by clients.
 */

The Javadoc of DirectorySourceContainer for comparison:
**
 * A directory in the local file system. Source elements returned
 * from <code>findSourceElements(...)</code> are instances
 * of <code>LocalFileStorage</code>.
 * <p>
 * Clients may instantiate this class.
 * </p>
 * @since 3.0
 * @noextend This class is not intended to be subclassed by clients.
 */

-sergey

On Wed, Dec 9, 2015 at 11:05 AM, Mikhail Khodjaiants <mikhailkhod@xxxxxxxxxxxxxx> wrote:
Oh, I wasn't aware of it. Wasn't sure whether you were asking about the "Compilation directory" field in the path mapping dialog of the source lookup.
Regarding the "Compilation Directory" source container type, its' a question for Sergey. He contributed it.


On 09/12/2015 1:28 PM, Alena Laskavaia wrote:
In Source tab of debug configuration, I am not sure how its called, its for source lookup

On Tue, Dec 8, 2015 at 4:48 PM, Mikhail Khodjaiants <mikhailkhod@xxxxxxxxxxxxxx> wrote:
On 08/12/2015 3:35 PM, Alena Laskavaia wrote:
Is there practical difference between Compilation Directory and File System Directory
as source lookup containers? They both seems to accept only absolute path

Are you asking about path mapping?




_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top