Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Cna't tips object's vars. #151

Open
zoujiaqing opened this issue Dec 29, 2016 · 1 comment
Open

Cna't tips object's vars. #151

zoujiaqing opened this issue Dec 29, 2016 · 1 comment

Comments

@zoujiaqing
Copy link

zoujiaqing commented Dec 29, 2016

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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants