Skip to content

Conversation

@mrinaldi
Copy link

This PR is an attempt to fix #240.

@smoothdeveloper
Copy link
Collaborator

Bump, can we get this merged and released in a new beta?

@dsevastianov
Copy link
Contributor

I'm still unable to reproduce it, can you please provide step by step instructions with relevant code, minimal test would be ideal.

@smoothdeveloper
Copy link
Collaborator

Can we get a beta released with this merged in? this is really making the library unusable and has been open for quite a while.

Seeing how the cache is used, I doubt a test can be added without refactoring internal class, we can create a separate ticket about testing usage of the cache.

@dsevastianov
Copy link
Contributor

I went through steps in VS ticket and still couldn't reproduce it. Are you guys absolutely sure you don't have something like F# power tools installed as well?

That notwithstanding, I'm not sure I like what proposed change is achieving. First of all, disposeCache function needs to be renamed as it doesn't actually dispose cache anymore. Second, I think it should be clearing cache rather then disposing it as it makes SingleRootTypeProvider unstable, which apparently results in the issue you are experiencing. I guess if 'Invalidate' replaces types in cache it will work close to what is expected, but explicitly clearing it would address all kinds of dirty state stuck after invalidation. Does it make sense?

@smoothdeveloper
Copy link
Collaborator

Good call @dsevastianov, I'll try without VFPT, and I'll also try to confirm the bug doesn't happen with this merged in and report back.

I agree the fix might not be ideal, but if it does remove the issue, it will definitely be an improvement to the end-user.

@smoothdeveloper
Copy link
Collaborator

@dsevastianov the issue also happens with VFPT uninstalled. I'm going to try a fix following your instructions (clearing cache instead of disposing).

smoothdeveloper added a commit to smoothdeveloper/FSharp.Data.SqlClient that referenced this pull request Dec 28, 2016
…ojects#241 and suggestion from @dsevastianov to clear the cache instead of disposing it.
@smoothdeveloper smoothdeveloper mentioned this pull request Dec 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SqlFile crashes Visual Studio

3 participants