Thread overview
VisualD: Intellisense broke?
Aug 07, 2017
Johnson Jones
Aug 07, 2017
Rainer Schuetze
Aug 07, 2017
FoxyBrown
August 07, 2017
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.



August 07, 2017

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?
August 07, 2017
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.