DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

Cna't tips object's vars. #151

Open zoujiaqing opened 7 years ago

zoujiaqing commented 7 years ago

Code example:

@Entity
@Table("f_image_info")
struct FImageInfo
{
    @Primarykey(1)
    string hash;

    @Field("w",2)
    int widght;

    @Field("h",3)
    int hight;

    @Field("ext",4)
    string ext;
} 

......

    auto iter = query.Select("select * from f_image_info LIMIT 10");
    foreach(int i,FImageInfo info; iter){
        writeln("index : ", i, "   hash is : ", info.hash, " w = ", info.widght, "  h = ", info.hight, "  ext = ", info.ext);
    }

bug, don't auto tips FImageInfo's vars? screenshot_20161229_183355

bruno-medeiros commented 7 years ago

You need to have the entity project have the dub describe operation resolve successfully, otherwise you'll get errors like the above. And for that, all the DUB dependencies need to be available.