Closed elemakil closed 10 years ago
Did you update irony-mode since last night or does this error comes from a previous version?
For me usually the first time a completion occurs the timeout may be reached, since the file has to be parsed twice by libclang and then it keeps some things in cache and completion should perform better.
But if it happens even after the first parse maybe something is wrong. If you set a higher value for the timeout by customizing company-async-timeout
, i.e: M-: (setq company-async-timeout 10) RET
, does the completion returns with meaningful results?
Did you update irony-mode since last night or does this error comes from a previous version?
Eh... I just updated and in my simple test case the problem does not exist anymore. It seems that last night's update fixed the problem whatever it was. I'll close this issue if the problem does not reappear till the end of the day.
I was expecting last night commit to make things the same or slightly worse (but pretty sure it's unnoticeable), but not faster. But 6 days ago a commit should have made things better, so maybe it's the one that solved your problem, completion should perform better since this commit.
Dear @Sarcasm,
I'm not sure that this is related with https://github.com/Sarcasm/flycheck-irony/issues/3. But I do have the following message when I run company-complete-common
.
FYI, I'm using OS X 10.10.2. I've tried different llvm versions -- 3.4
, 3.5
, 3.6
, and different versions of emacs24.4 (24.4.1, 24.4.91). I can reproduce the problem in all combinations.
By the way, in Ubuntu, things are working in an expected way.
Debugger entered--Lisp error: (error "Company: Back-end company-irony async timeout with args (candidates )")
signal(error ("Company: Back-end company-irony async timeout with args (candidates )"))
error("Company: Back-end %s async timeout with args %s" company-irony (candidates ""))
company--force-sync(company-call-backend-raw (candidates "") company-irony)
company-call-backend(candidates "")
company--fetch-candidates("")
company-calculate-candidates("")
#[0 "\n\203 \nC\202\n \211\205\220 \211@\3009\204 \306!\203<
I'm experiencing timeout errors, namely:
When I kill the buffer, reopen the file and re-execute
irony-cdb-menu
for loading the compilation DB, completion works fine again (for some time).Below you can find the backtrace starting at
company-complete-common
, which is my entry-point for completion; note that<$$BYTECODE$$>
is a placeholder for some byte-code like part of the backtrace which can not be pasted into github: