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

Failing convert from nuget with exception #830

Closed
Stift opened this issue May 20, 2015 · 9 comments
Closed

Failing convert from nuget with exception #830

Stift opened this issue May 20, 2015 · 9 comments

Comments

@Stift
Copy link
Contributor

Stift commented May 20, 2015

When I convert a solution I get the following exception:

...
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at <StartupCode$Paket-Core>[email protected](XmlNode node)
   at Microsoft.FSharp.Primitives.Basics.List.iter[T](FSharpFunc`2 f, FSharpList`1 x)
   at [email protected](IEnumerable`1& next)
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
   at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
   at [email protected](DependenciesFile _arg1)
   at Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   at Paket.NuGetConvert.createResult(DirectoryInfo rootDirectory, NugetEnv nugetEnv, CredsMigrationMode credsMirationMode)
   at Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   at Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   at Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   at <StartupCode$Paket-Core>[email protected](Unit unitVar0)
   at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
   at [email protected](ArgParseResults`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 <StartupCode$paket>.$Paket.Program.main@()
@forki
Copy link
Member

forki commented May 20, 2015

woupsi. NPE - I love them.

can you please try to debug this (or create a repro). I assume it's in createPaketEnv.
debugging should be easy. clone the repo, set Paket.exe as startup project. Set working dir to your solution path and put "convert-from-nuget" in the command line arg.

/cc @theimowski

@Stift
Copy link
Contributor Author

Stift commented May 20, 2015

Will do in the late afternoon when I have time. Just wanted to let you know early.

@forki
Copy link
Member

forki commented May 20, 2015

thanks. Unfortunately can't see the issue without further data. ;-)

2015-05-20 15:27 GMT+02:00 Christian [email protected]:

Will do in the late afternoon when I have time. Just wanted to let you
know early.


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

@theimowski
Copy link
Member

I'll have a look - maybe can predict what went wrong

theimowski added a commit to theimowski/Paket that referenced this issue May 20, 2015
@Stift
Copy link
Contributor Author

Stift commented May 20, 2015

I've got the error. I will provide a fix today. Just have to write some unit tests for this. I think I can provide a pull request this evening

@Stift
Copy link
Contributor Author

Stift commented May 20, 2015

Oh @theimowski was faster. Then I only provide some unit tests...

@forki
Copy link
Member

forki commented May 20, 2015

Yeah this guy is amazing ;-)
On May 20, 2015 4:25 PM, "Christian" [email protected] wrote:

Oh @theimowski https://github.com/theimowski was faster. Then I only
provide some unit tests...


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

@theimowski
Copy link
Member

😤

@Stift
Copy link
Contributor Author

Stift commented May 20, 2015

absolutely admit 🍰

forki added a commit that referenced this issue May 20, 2015
@forki forki closed this as completed May 27, 2015
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

No branches or pull requests

3 participants