Skip to content

Observable.flatten bugfix - #1330

Merged
forki merged 1 commit into
fsprojects:masterfrom
ForNeVeR:bugfix/observable-flatten
Dec 28, 2015
Merged

forki merged 1 commit into
fsprojects:masterfrom
ForNeVeR:bugfix/observable-flatten

Conversation

@ForNeVeR

Copy link
Copy Markdown
Contributor

Current implementation of Observable.flatten never calls obs.OnComplete, and that leads to a bug in Paket.VisualStudio (and possibly adds problems for another users of this API).

Instead of writing that method here (it could be difficult for a general case), I've decided to simply use FSharp.Control.Reactive instead.

This PR will close fsprojects/Paket.VisualStudio#60.

Please note that you'll have to include FSharp.Control.Reactive.dll in a future builds of Paket.VisualStudio, and I've found that it's not trivial to achieve (because Paket.VisualStudio have no direct dependency on this package). In my local environment I got this fixed by adding reference to FSharp.Control.Reactive into a main Paket.VisualStudio assembly, but maybe there is some more conventional way.

…ervable.flatten.

This will fix a bug when observer.OnComplete never gets called in SearchPackagesByName operation.
@forki
forki merged commit 4883fbf into fsprojects:master Dec 28, 2015
@forki

forki commented Dec 28, 2015

Copy link
Copy Markdown
Member

thx for hunting down this bug. But the dependencies is very big, so I tried to fix it directly. Could you please review: afe98e4

thx

@ForNeVeR

Copy link
Copy Markdown
Contributor Author

@forki I got your point, I'll review (and test) that change tonight. Thanks for the answer.

@ForNeVeR

Copy link
Copy Markdown
Contributor Author

@forki yup that works very good (I've tried the latest releases Paket.VisualStudio version), and the code looks ok to me. Thank you!

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.

Type ahead does not work properly in Add package window

2 participants