View previous topic :: View next topic |
Author |
Message |
3-S-E
Joined: 16 Jun 2008 Posts: 54
|
Posted: Sun Jun 29, 2008 1:55 pm Post subject: No auto-completion inside a template-class |
|
|
I've wrote a simple class using a generic typ.
It compiles fine, no syntactic errors.
autocompletion does not work, but it does in other modules / classes of the same project. Pressing Ctrl. + Space key opens an empty box containing no variables and no methods. It seams that also no other syntactic and semantic checking is working properly within a template-definition.
Maybe the template-definition is marked as syntactic incorrect and because it error occurs relatively far on top of a module the complete following code gets ignored?! |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Sun Jun 29, 2008 7:44 pm Post subject: |
|
|
Autocompletion inside templates (templates, templated classes, templated functions, etc.) is not yet implemented. The thing is, we currently take advantage of DMD's semantic pass to gather information about the current module and offer autocompletion from it. But... semantic is not run for template declarations, it is just run for template instantiations. So it's like inside a template definition no semantic is run. That's why there's no help there.
I tried to run semantic for templates anyway, but I got all kind of ugly and nasty exceptions which I didn't know how to fix. So autocompletion for templates needs a totally different approach, at least if it's going to be based on DMD's code. |
|
Back to top |
|
|
3-S-E
Joined: 16 Jun 2008 Posts: 54
|
Posted: Mon Jun 30, 2008 3:37 am Post subject: |
|
|
alright! |
|
Back to top |
|
|
|