Skip to content

Cleanup - #86

Merged
forki merged 6 commits into
masterfrom
Cleanup
Sep 13, 2014
Merged

forki merged 6 commits into
masterfrom
Cleanup

Conversation

@forki

@forki forki commented Sep 11, 2014

Copy link
Copy Markdown
Member

I changed a LOT in this PR, but hopefully no functionality.

@agross could you please cross-check if your multi-package scenario still works (as good as before)?

@forki

forki commented Sep 11, 2014

Copy link
Copy Markdown
Member Author

This change is only a start. I found a way to make the code much nicer.

@forki

forki commented Sep 11, 2014

Copy link
Copy Markdown
Member Author

And as always the key is: use more types...

@agross

agross commented Sep 11, 2014

Copy link
Copy Markdown
Contributor

I have a direct dependency that defines an indirect dependency with a range version constraint. This is the relevant snippet from the lockfile:

Rtc.Data.EFDAL (1.0.0.3108)
      nHydrate (>= 5.1.2)
      Rtc.Data.EFDAL.Interfaces (>= 1.0.0, <  1.0.1)

Output:

Locked version resolutions written to ...
Paket failed with:
   could not parse version range ">= 1.0.0, <  1.0.1"

@forki

forki commented Sep 12, 2014

Copy link
Copy Markdown
Member Author

So if I understand correctly the lockfile gets written and the error happens during lockfile parsing?

@agross

agross commented Sep 12, 2014

Copy link
Copy Markdown
Contributor

Yes, that's corrent. The lockfile is the same as before (diffed two versions generated by master and this PR), but parsing it seems to fail.

@agross

agross commented Sep 12, 2014

Copy link
Copy Markdown
Contributor
   at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@598.Invoke(String message)
   at Microsoft.FSharp.Core.PrintfImpl.go@523-3[b,c,d](String fmt, Int32 len, FSharpFunc`2 outputChar, FSharpFunc`2 outa, b os, FSharpFunc`2 finalize, FSharpList`1 args, Int32 i)
   at Microsoft.FSharp.Core.PrintfImpl.run@521[b,c,d](FSharpFunc`2 initialize, String fmt, Int32 len, FSharpList`1 args)
   at Microsoft.FSharp.Core.PrintfImpl.capture@540[b,c,d](FSharpFunc`2 initialize, String fmt, Int32 len, FSharpList`1 args, Type ty, Int32 i)
   at <StartupCode$FSharp-Core>[email protected](T1 inp)
   at Paket.DependenciesFileParser.parseVersionRange(String text) in DependenciesFile.fs: line 34
   at [email protected](String line) in LockFile.fs: line 105
   at Microsoft.FSharp.Collections.SeqModule.Fold(FSharpFunc`2 folder, TState state, IEnumerable`1 source)
   at Paket.LockFile.Parse(IEnumerable`1 lines) in LockFile.fs: line 90
   at Paket.Process.Install(Boolean regenerate, Boolean force, String dependenciesFile) in Process.fs: line 50
   at <StartupCode$paket>.$Paket.Program.main@() in Program.fs: line 63

It's likely due to the fact that Paket.DependenciesFileParser.parseVersionRange is used to parse version ranges from paket.lock.

@forki

forki commented Sep 12, 2014

Copy link
Copy Markdown
Member Author

Yes that's clearly a bug. Even more important: we don't even use the
version after that point ;-)
On Sep 12, 2014 10:51 AM, "Alexander Groß" [email protected] wrote:

at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@598.Invoke(String message)
at Microsoft.FSharp.Core.PrintfImpl.go@523-3[b,c,d](String fmt, Int32 len, FSharpFunc2 outputChar, FSharpFunc2 outa, b os, FSharpFunc2 finalize, FSharpList1 args, Int32 i)
at Microsoft.FSharp.Core.PrintfImpl.run@521[b,c,d](FSharpFunc2 initialize, String fmt, Int32 len, FSharpList1 args)
at Microsoft.FSharp.Core.PrintfImpl.capture@540[b,c,d](FSharpFunc2 initialize, String fmt, Int32 len, FSharpList1 args, Type ty, Int32 i)
at <StartupCode$FSharp-Core>.$[email protected](T1 inp)
at Paket.DependenciesFileParser.parseVersionRange(String text) in DependenciesFile.fs: line 34
at [email protected](String line) in LockFile.fs: line 105
at Microsoft.FSharp.Collections.SeqModule.Fold(FSharpFunc2 folder, TState state, IEnumerable1 source)
at Paket.LockFile.Parse(IEnumerable`1 lines) in LockFile.fs: line 90
at Paket.Process.Install(Boolean regenerate, Boolean force, String dependenciesFile) in Process.fs: line 50
at <StartupCode$paket>.$Paket.Program.main@() in Program.fs: line 63

It's likely due to the fact that
Paket.DependenciesFileParser.parseVersionRange is used to parse version
ranges from paket.lock.

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

@forki

forki commented Sep 13, 2014

Copy link
Copy Markdown
Member Author

Fixed?

@agross

agross commented Sep 13, 2014

Copy link
Copy Markdown
Contributor

Fixed.

@forki forki closed this Sep 13, 2014
@forki forki reopened this Sep 13, 2014
forki added a commit that referenced this pull request Sep 13, 2014
@forki
forki merged commit c722c2b into master Sep 13, 2014
@forki
forki deleted the Cleanup branch September 13, 2014 10:25
forki pushed a commit that referenced this pull request Oct 13, 2014
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.

2 participants