Comments (5)
ccls starts indexing the whole project (with compile_commands.json
or hierarchical .ccls
) after it received the initialize
request telling it where the project resides. When you open the first file in your editor, the indexer threads are working in the background, while the main thread is serving requests from the language client plugin.
If you want to have headless indexing, you may use some specialized language client to just send an initialize
request then wait.
I'd like to precompile
This is usually unnecessary because the main thread can still serve requests before the indexing is finished. The index will also be updated automatically when you save a file in your editor (textDocument/didSave
triggers re-indexing of that file).
Also I'm not sure how dereferencing would work adhoc.
Sorry I don't understand your question.
from ccls.
I had thought dereferencing type definitions required a global view of the codebase in order to be accurate. Is that not the case?
Will initialize return when indexing is complete?
from ccls.
from ccls.
I have added some description to README.md
It starts indexing the whole project (including subprojects if exist) parallelly when you open the first file, while the main thread can serve requests before the indexing is complete.
Saving files will incrementally update the index.
from ccls.
Also check out #98 for the standalone indexing mode -index
from ccls.
Related Issues (20)
- Unity build indexing cpp files HOT 2
- Customize initialization options in S-exp has no effect HOT 1
- expected expression (ccls 4) when declaring a variable directly underneath `case`
- warning: multiple different client offset_encodings detected for buffer HOT 1
- Question: Need help with configuration
- Some header file are recognized of c not c++
- Feature Request : Add option to control nice level of indexer
- cause too much memory HOT 5
- YCM command `GoToSymbol` report `IndexError: list index out of range`
- CCLS doesn't scale well to much higher thread counts
- When I use this plug-in to retrieve projects, it will always be stuck at 99% progress, causing the memory to keep increasing.
- ccls complains no matching member function errors
- CCLS detects my C headers as C++ headers
- Can't use ccls with ESP32 related projects
- Critical memory leak HOT 1
- Data race detected in do_initialize/getDriverMode/RegisterStatistic
- Building on windows does not work as described in wiki HOT 1
- ccls does not recognize C attributes
- alternate among multiple compile_command.json files
- unknown type name 'uint64_t' (ccls 2) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccls.