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

Paket failed with: The input sequence was empty. #1071

Closed
kshanafelt opened this issue Sep 19, 2015 · 0 comments
Closed

Paket failed with: The input sequence was empty. #1071

kshanafelt opened this issue Sep 19, 2015 · 0 comments
Labels

Comments

@kshanafelt
Copy link

This is my paket.dependcies file:

source https://nuget.org/api/v2

github kshanafelt/commandline build.fsx

Here is what I get:
Note this is for a initial pull, without a paket-files folder, and without a paket.lock file

PS C:\src\Projects\r> .\.paket\paket.exe install --verbose
Paket version 2.2.1.0
found: C:\src\Projects\DeBlorber\paket.dependencies
Parsing C:\src\Projects\DeBlorber\paket.dependencies
Paket failed with:
        The input sequence was empty.
Parameter name: source
StackTrace:
     at Microsoft.FSharp.Collections.SeqModule.Last[T](IEnumerable`1 source)
   at <StartupCode$Paket-Core>[email protected](Tuple`2 tupledArg)
   at [email protected](b& )
   at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
   at <StartupCode$Paket-Core>[email protected](GroupName k, RequirementsGroup group)
   at Microsoft.FSharp.Collections.MapTreeModule.mapiOpt[a,b,c](FSharpFunc`3 f, MapTree`2 m)
   at Microsoft.FSharp.Collections.FSharpMap`2.Map[b](FSharpFunc`2 f)
   at [email protected](DependenciesFile d, FSharpMap`2 g)
   at Paket.UpdateProcess.selectiveUpdate(FSharpFunc`2 resolve, LockFile lockFile, DependenciesFile dependenciesFile, Boolean updateAll, FSharpOption`1 package)
   at Paket.UpdateProcess.SelectiveUpdate(DependenciesFile dependenciesFile, Boolean updateAll, FSharpOption`1 exclude, Boolean force)
   at Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, Boolean updateAll, FSharpOption`1 exclude, UpdaterOptions options)
   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()
PS C:\src\Projects\>

Oddly I get the same error if I try the example in the tutorial (http://fsprojects.github.io/Paket/github-dependencies.html):

paket.dependcies:

source https://nuget.org/api/v2

github fsharp/FAKE modules/Octokit/Octokit.fsx

I did however find a fix, this works:

paket.dependcies:

source https://nuget.org/api/v2

nuget CommandLineParser

github kshanafelt/commandline build.fsx

Also GitHub paths to files that didn't also have a paket.dependcies file in their same folder seemed to work. For example this worked for me:

paket.dependcies:

source https://nuget.org/api/v2

github kshanafelt/commandline  src/CommandLine/CommandLine.csproj

It's seems odd, but it seems that to pull a GitHub dependency that has a paket.dependcies file next to it, you also need to pull a nuget dependency.

I don't know much f#, or I would have tried to fix it, but the error seem to be coming from Seq.last here:
https://github.com/fsprojects/Paket/blob/2.2.1/src/Paket.Core/DependenciesFile.fs#L436

@forki forki added the bug label Sep 21, 2015
@forki forki closed this as completed in 45a6ebd Sep 21, 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