www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - VisualD: Intellisense broke?

reply Johnson Jones <JJ Dynomite.com> writes:
Tried to do some work this morning and Intellisense is not 
showing.

Not sure what happened. Working fine yesterday.

It seems that when I converted my code to automatically generate 
some fields, the semantic engine is not seeing them ;/

I went from something like

struct X
{
    int a;
}

to

struct X
{
    mixin("int a;");
}

and now x. doesn't list a.

(or rather, I'm using with(x) and a. does nothing (a is a struct 
in that case))


There surely has to be a better way to get all this stuff to work 
consistently? It isn't magic that's going on behind the scenes 
and everything ultimately has to be well defined and meaningful.
Aug 07 2017
parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 07.08.2017 19:37, Johnson Jones wrote:
 Tried to do some work this morning and Intellisense is not showing.
 
 Not sure what happened. Working fine yesterday.
 
 It seems that when I converted my code to automatically generate some 
 fields, the semantic engine is not seeing them ;/
 
 I went from something like
 
 struct X
 {
     int a;
 }
 
 to
 
 struct X
 {
     mixin("int a;");
 }
 
 and now x. doesn't list a.
 
 (or rather, I'm using with(x) and a. does nothing (a is a struct in that 
 case))
 
 
 There surely has to be a better way to get all this stuff to work 
 consistently? It isn't magic that's going on behind the scenes and 
 everything ultimately has to be well defined and meaningful.
 
mixins are magic, as they usually also involve CTFE. Did you enable "mixin analysis" in the intellisense options?
Aug 07 2017
parent FoxyBrown <Foxy Brown.IPT> writes:
On Monday, 7 August 2017 at 17:55:04 UTC, Rainer Schuetze wrote:
 On 07.08.2017 19:37, Johnson Jones wrote:
 [...]
mixins are magic, as they usually also involve CTFE. Did you enable "mixin analysis" in the intellisense options?
yes.
Aug 07 2017