Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370929

Summary: No error should be reported, when the Indexer tries to parse a files which does not exist anymore.
Product: [Tools] CDT Reporter: Caroline Klausecker <caroline.rieder>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, eclipse.sprigogin, yevshif
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Caroline Klausecker CLA 2012-02-08 05:37:13 EST
Build Identifier: Version: 3.7.1 Build id: M20110909-1335

While the indexer is running, delete a file which the indexer is about to parse. No error should be reported in the error log. The parser should just ignore the missing file.

Reproducible: Always

Steps to Reproduce:
1. Create a project with a source file
2. Start Indexer
3. Remove the file while the indexer is running
4. Error will be reported, when the file can not be found anymore
Comment 1 Caroline Klausecker CLA 2012-02-08 05:40:00 EST
org.eclipse.core.internal.resources.ResourceException: Resource '/xx/test.c' does not exist.
	at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
	at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
	at org.eclipse.core.internal.resources.File.getContents(File.java:287)
	at org.eclipse.cdt.internal.core.parser.InternalParserUtil.createWorkspaceFileContent(InternalParserUtil.java:157)
	at org.eclipse.cdt.core.parser.FileContent.create(FileContent.java:83)
	at org.eclipse.cdt.core.parser.FileContent.create(FileContent.java:67)
	at org.eclipse.cdt.internal.core.pdom.indexer.ProjectIndexerInputAdapter.getCodeReader(ProjectIndexerInputAdapter.java:296)
	at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.parseFile(AbstractIndexerTask.java:873)
	at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.parseLinkage(AbstractIndexerTask.java:741)
	at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.runTask(AbstractIndexerTask.java:371)
	at org.eclipse.cdt.internal.core.pdom.indexer.PDOMIndexerTask.run(PDOMIndexerTask.java:127)
	at org.eclipse.cdt.internal.core.pdom.PDOMIndexerJob.run(PDOMIndexerJob.java:137)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 2 Sergey Prigogin CLA 2013-01-24 15:44:37 EST

*** This bug has been marked as a duplicate of bug 352952 ***