www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - VisualD intelli sense not working

reply Jiyan <jiyan jiyan.info> writes:
Hey,
i am using VisualD, the debugger is working correctly and if i 
write sth like import std. it show me the correct suggestions 
(stdio etc) but if i write sth like

struct A{int a;}
A b;
b.

Intelli sense doesnt work

What might be wrong with my configuration?
Apr 11 2020
parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 11/04/2020 16:21, Jiyan wrote:
 Hey,
 i am using VisualD, the debugger is working correctly and if i write sth
 like import std. it show me the correct suggestions (stdio etc) but if i
 write sth like
 
 struct A{int a;}
 A b;
 b.
If you write this code at module scope, it isn't valid because a declaration is expected, but it looks like you are starting an expression. inside a function, it this works for me. I get different results depending on what semantic engine is used, though. You can try switching them with the "use DMD parsing engine" setting on the Text Editor->D->Intellisense options page.
 
 Intelli sense doesnt work
 
 What might be wrong with my configuration?
"doesnt work" is rather unspecific. Does that mean it doesn't show a completion box, or that there are no results, or too many?
Apr 11 2020
parent Jiyan <jiyan jiyan.info> writes:
On Sunday, 12 April 2020 at 05:41:48 UTC, Rainer Schuetze wrote:
 On 11/04/2020 16:21, Jiyan wrote:
 [...]
If you write this code at module scope, it isn't valid because a declaration is expected, but it looks like you are starting an expression. inside a function, it this works for me. I get different results depending on what semantic engine is used, though. You can try switching them with the "use DMD parsing engine" setting on the Text Editor->D->Intellisense options page.
 [...]
"doesnt work" is rather unspecific. Does that mean it doesn't show a completion box, or that there are no results, or too many?
Hey, i fixed the problem by reinstalling VisualD, i had an old version of it. Thank you it works now :)
Apr 12 2020