Skip to content

Failing convert from nuget with exception #830

Closed

Description

@Stift

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@()

Activity

  1. forki commented on May 20, 2015

    @forki
    Member

    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

  2. Stift commented on May 20, 2015

    @Stift
    ContributorAuthor

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

  3. forki commented on May 20, 2015

    @forki
    Member

    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).

  4. theimowski commented on May 20, 2015

    @theimowski
    Member

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

  5. Stift commented on May 20, 2015

    @Stift
    ContributorAuthor

    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

  6. Stift commented on May 20, 2015

    @Stift
    ContributorAuthor

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

  7. forki commented on May 20, 2015

    @forki
    Member

    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).

  8. theimowski commented on May 20, 2015

    @theimowski
    Member

    😤

  9. Stift commented on May 20, 2015

    @Stift
    ContributorAuthor

    absolutely admit 🍰

  10. added a commit that references this issue on May 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions