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 Paket.SemVer.Parse(String version) #876

Closed
mexx opened this issue Jun 15, 2015 · 5 comments
Closed

NullReferenceException in Paket.SemVer.Parse(String version) #876

mexx opened this issue Jun 15, 2015 · 5 comments
Labels

Comments

@mexx
Copy link
Member

mexx commented Jun 15, 2015

I was converting a project from NuGet and run into this:

Ausnahmefehler: System.NullReferenceException: Der Objektverweis wurde nicht auf
 eine Objektinstanz festgelegt.
   bei Paket.SemVer.Parse(String version)
   bei Paket.Releases.doesNotExistsOrIsNewer(FileInfo file, SemVerInfo latest)
   bei Microsoft.FSharp.Primitives.Basics.List.filter[T](FSharpFunc`2 predicate, FSharpList`1 l)
   bei [email protected](SemVerInfo _arg2)
   bei Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   bei Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   bei Paket.Releases.downloadLatestVersionOf(FSharpList`1 files, String destDir)
   bei Paket.VSIntegration.TurnOnAutoRestore(PaketEnv environment)
   bei Paket.NuGetConvert.replaceNugetWithPaket(Boolean initAutoRestore, Boolean installAfter, ConvertResultR result)
   bei <StartupCode$Paket-Core>[email protected](Unit unitVar0)
   bei Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
   bei [email protected](ArgParseResults`1 results)
   bei Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] args)
   bei [email protected](Command command, String[] args)
   bei <StartupCode$paket>.$Paket.Program.main@()

Unfortunately I can't share the original project for reproduction.

@mexx
Copy link
Member Author

mexx commented Jun 15, 2015

Paket version: 1.14.0.0

@mexx
Copy link
Member Author

mexx commented Jun 15, 2015

Introduced in 4c1ae17, paket.targets don't have a VersionInfo attached.

@mexx
Copy link
Member Author

mexx commented Jun 15, 2015

paket auto-restore on fails when paket.targets is present.

@forki
Copy link
Member

forki commented Jun 15, 2015

can you please try to fix it!? thx

@forki forki added the bug label Jun 15, 2015
@forki
Copy link
Member

forki commented Jun 16, 2015

ok this makes me think of what do we do with the targets.file.
We can't decide if it's outdated. So let's do a different approach and download all files if one is oudated.

/cc @Bomret

@forki forki closed this as completed in e29012a Jun 16, 2015
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