Errors As-You-Type
Posted: Sun May 25, 2014 10:52 am
I'm somewhat new to CodeLite, but I'm really liking what's here.
One thing I noticed is that when using Clang autocompletion, triggering autocomplete has the side effect of showing you all the errors in the file because Clang has to reparse it. It looks like this doesn't cause any significant latency, and I was wondering if the same Clang backend could be used to implement Intellisense-like continuous error detection to show likely compiler errors before you hit compile.
I realize that this would be Clang-only, as ctags just wasn't built for this, but is there any big reason it couldn't work? Just wait for the user to stop typing for, say, half a second, then trigger a reparse and show the errors.
I'd be willing to look into implementing it if it seems feasible. Any thoughts?
One thing I noticed is that when using Clang autocompletion, triggering autocomplete has the side effect of showing you all the errors in the file because Clang has to reparse it. It looks like this doesn't cause any significant latency, and I was wondering if the same Clang backend could be used to implement Intellisense-like continuous error detection to show likely compiler errors before you hit compile.
I realize that this would be Clang-only, as ctags just wasn't built for this, but is there any big reason it couldn't work? Just wait for the user to stop typing for, say, half a second, then trigger a reparse and show the errors.
I'd be willing to look into implementing it if it seems feasible. Any thoughts?