Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“type provider” not recognized when building project #189

Closed
tpetricek opened this issue Sep 5, 2013 · 2 comments
Closed

“type provider” not recognized when building project #189

tpetricek opened this issue Sep 5, 2013 · 2 comments
Labels

Comments

@tpetricek
Copy link
Member

I was able to reproduce this on my machine, so I suppose there is something wrong going on...

@troykershaw
Copy link

Hi Tomas, I was able to recreate the issue with this simpler code example: https://gist.github.com/troykershaw/6459750

@ovatsus
Copy link

ovatsus commented Sep 12, 2013

Regarding the repro gist, the problem is that the type for Ul is added as member to DomainTypes in an AddMembersDelayed call for DomainTypes.Span, and not for DomainTypes, which means that if the members of Span are not accessed, the inner types will never be created. IntelliSense must be calling AddMembersDelayed too much, so the problem only manifests itself in compilation. I'll fix it by using AddMembers instead (another option would be to nest Ul inside DomainTypes.Span, but that would be less user friendly)
JsonProvider doesn't has this problem, as it doesn't use AddMembersDelayed

PS: @dsyme, is it worth it to report this as a performance bug to fsbugs? Even if no member of Span is requested and mouse is never over it to request the tooltip, AddMembersDelayed seems to be called recursivly.

ovatsus pushed a commit that referenced this issue Sep 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants