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

NullReferenceException in applyBindingRedirects during "update nuget package" #1074

Closed
vbfox opened this issue Sep 21, 2015 · 3 comments
Closed
Labels

Comments

@vbfox
Copy link
Contributor

vbfox commented Sep 21, 2015

Just hapenned to me on 2.3.0.0

c:\Code\project>paket update nuget stidgen
Paket version 2.3.0.0
Updating stidgen in c:\Code\project\paket.dependencies group Main
Resolving packages for group Main:
 - stidgen 0.5.0
Locked version resolution written to c:\Code\project\paket.lock
Downloading stidgen 0.5.0

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at <StartupCode$Paket-Core>[email protected](FSharpOption`1 o)
   at [email protected](b& )
   at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   at Microsoft.FSharp.Collections.SeqModule.TryHead[T](IEnumerable`1 source)
   at Paket.ProjectFile.GetTargetProfile()
   at Paket.BindingRedirects.applyBindingRedirects(FSharpFunc`2 bindingRedirects, String configFilePath)
   at Paket.BindingRedirects.applyBindingRedirectsToFolder@146-3.Invoke(String configFilePath)
   at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc`2 action, IEnumerable`1 source)
   at Paket.InstallProcess.InstallIntoProjects(InstallerOptions options, DependenciesFile dependenciesFile, LockFile lockFile, FSharpList`1 projects)
   at <StartupCode$Paket-Core>[email protected](Unit unitVar0)
   at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
   at [email protected](ParseResults`1 results)
   at Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
   at [email protected](Command command, String[] args)
   at Paket.Program.main()
   at <StartupCode$paket>.$Paket.Program.main@()

Part of the paket.dependencies :

framework: >= net40

#############################################################################
# Official NuGet package repository
source https://nuget.org/api/v2

nuget stidgen

Binding redirect aren't enabled anywhere, we do it by hand for now (Still didn't change after #1042 was fixed)

I plan to investigate a little more if I have time but I wanted to get the bug report out there in case anyone know where it come from.

@forki
Copy link
Member

forki commented Sep 21, 2015

@mrinaldi related to your changes?

@vbfox
Copy link
Contributor Author

vbfox commented Sep 21, 2015

I reverted to 2.2.3 and the bug isn't there anymore.

@forki
Copy link
Member

forki commented Sep 21, 2015

Ok will investigate in a minute
On Sep 21, 2015 2:51 PM, "Julien Roncaglia" [email protected]
wrote:

I reverted to 2.2.3 and the bug isn't there anymore.


Reply to this email directly or view it on GitHub
#1074 (comment).

@forki forki added the bug label Sep 21, 2015
@forki forki closed this as completed Sep 21, 2015
vbfox added a commit to vbfox/Paket that referenced this issue Sep 21, 2015
Fix differently fsprojects#1074 by using Seq.choose instead of a try/with
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

2 participants