Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » index ignores my .cpp, no matter what
index ignores my .cpp, no matter what [message #1386147] Fri, 13 June 2014 15:42 Go to next message
Dio Santo is currently offline Dio SantoFriend
Messages: 6
Registered: August 2012
Junior Member
I have set -Xms512m -Xmx2048m and the memory usage of java is 1G. The cache limit is set to the highest possible values (75%, 2G max). I have manually selected the folder that contains this file as a source folder, and all the other compilation units there are being parsed. This file here instead is big and somehow it hits an hard hidden limit, and whenever I try to, for example, get all the references to a variable (ctrl + alt + h), it says that the file is not currently in the index.

Quite unnerving.
Re: index ignores my .cpp, no matter what [message #1386275 is a reply to message #1386147] Mon, 16 June 2014 10:18 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
In Preferences->C/C++->Indexer is a hard limit for files bigger than 8 MB. There are also the limits for the indexer cache defined. Perhaps you hit one of these.

And there is a scalability limit defined in Preferences->C/C++->Editor->Scalability. It will turn off indexing files that exceed a certain amount of lines. You should check this, too.

If all above fails...

Tracing the CDT indexer:
* use command line option -debug <options-file>
* put the following in the options file:

# turns on tracing for the cdt-core plugin
org.eclipse.cdt.core/debug=true

# Reports sequence of files indexed
org.eclipse.cdt.core/debug/indexer/activity=false

# Reports statistics for indexer
org.eclipse.cdt.core/debug/indexer/statistics=false

# Reports unresolved inclusions for indexer
org.eclipse.cdt.core/debug/indexer/problems/inclusion=false

# Reports scanner-problems for indexer (other than unresolved includes)
org.eclipse.cdt.core/debug/indexer/problems/scanner=false

# Reports syntax-problems for indexer
org.eclipse.cdt.core/debug/indexer/problems/syntax=false

# Reports problems for indexer, including inclusion-, scanner-, syntax- and
resolution-problems.
org.eclipse.cdt.core/debug/indexer/problems=false


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: index ignores my .cpp, no matter what [message #1386587 is a reply to message #1386275] Wed, 18 June 2014 12:13 Go to previous message
Dio Santo is currently offline Dio SantoFriend
Messages: 6
Registered: August 2012
Junior Member
What should I look for? The debug file is loaded, but nothing particular is printed on the console.

EDIT:
it actually prints twice "### Excluding compile: org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage::addBinding", but not when I click on index->reubild

[Updated on: Wed, 18 June 2014 12:17]

Report message to a moderator

Previous Topic:Cryptic error messages
Next Topic:Utilizing Virtual Folder
Goto Forum:
  


Current Time: Sat Apr 27 05:07:16 GMT 2024

Powered by FUDForum. Page generated in 0.03084 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top