Skip to content

Exception when running kpm restore on sample apps #314

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

Closed
markejfmunro opened this issue Feb 12, 2015 · 3 comments
Closed

Exception when running kpm restore on sample apps #314

markejfmunro opened this issue Feb 12, 2015 · 3 comments

Comments

@markejfmunro
Copy link

Hi,

I have a fresh install of Ubuntu 14, mono and kpm etc and I have downloaded the samples apps to test and when I run kpm restore I am getting the following exception.

mark@ubuntu:~/Home/samples/HelloWeb$ kpm restore
Restoring packages for /home/mark/Home/samples/HelloWeb/project.json
CACHE https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Kestrel'
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Kestrel'
CACHE https://www.nuget.org/api/v2/package/Kestrel/1.0.0-beta1
CACHE https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Diagnostics'
GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Diagnostics'.
GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Hosting'.
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Hosting'
GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'.
CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
CACHE https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'

GET https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.StaticFiles'.

System.ArgumentException: (Internal)Expected an Exception or an IEnumerable
Parameter name: exceptionObject
at System.Threading.Tasks.TaskExceptionHolder.AddFaultException (System.Object exceptionObject) [0x00000] in :0
at System.Threading.Tasks.TaskExceptionHolder.Add (System.Object exceptionObject, Boolean representsCancellation) [0x00000] in :0
at System.Threading.Tasks.Task.AddException (System.Object exceptionObject, Boolean representsCancellation) [0x00000] in :0
at System.Threading.Tasks.Task.AddException (System.Object exceptionObject) [0x00000] in :0
at System.Threading.Tasks.Task1[TResult].TrySetException (System.Object exceptionObject) [0x00000] in <filename unknown>:0 at System.Threading.Tasks.Task+WhenAllPromise1[T].Invoke (System.Threading.Tasks.Task ignored) [0x00000] in :0
at System.Threading.Tasks.Task+WhenAllPromise1[T]..ctor (System.Threading.Tasks.Task1[] tasks) [0x00000] in :0
at System.Threading.Tasks.Task.InternalWhenAll[TResult](System.Threading.Tasks.Task1[] tasks) [0x00000] in <filename unknown>:0 at System.Threading.Tasks.Task.WhenAll[TResult](IEnumerable1 tasks) [0x00000] in :0
at Microsoft.Framework.PackageManager.RestoreCommand+d__1.MoveNext () [0x00000] in :0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in :0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in :0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in :0
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in :0

at Microsoft.Framework.PackageManager.RestoreCommand+d__1.MoveNext () [0x00000] in :0

Restore failed
(Internal)Expected an Exception or an IEnumerable
Parameter name: exceptionObject

Version info

mark@ubuntu:/Home/samples/HelloWeb$ kpm --version
1.0.0-beta2-10863
mark@ubuntu:
/Home/samples/HelloWeb$ mono --version
Mono JIT compiler version 3.99.0 (master/90e8672 Thu Feb 12 03:45:32 PST 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
mark@ubuntu:~/Home/samples/HelloWeb$

Any ideas, I have search the web with no success.

Cheers
Mark

@Tragetaschen
Copy link
Contributor

It's a bug in Mono's git HEAD atm.

I moved back to the official 3.12 release for the time being.

@markejfmunro
Copy link
Author

What is the best way to go about moving back to 3.12, I am new to this configuration

@Tragetaschen
Copy link
Contributor

That depends on how you installed Mono 3.99.0 from today. sudo make uninstall comes to mind.
As for installing 3.12, just follow the instructions on the link above.

SteveSandersonMS pushed a commit that referenced this issue Nov 27, 2018
This change removes the magic 'auto-lambda' feature that has some
unconvincing UX.

Also working around a razor bug where explicit expressions are lowered
incorrectly. This should make it possible to write code like:

<Foo Bar="@(e => { OnChanged(e); })" />
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants