Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Circular project reference keeps crashing Klr.exe #786

Closed
anandparanjape opened this issue Oct 21, 2014 · 2 comments
Closed

Circular project reference keeps crashing Klr.exe #786

anandparanjape opened this issue Oct 21, 2014 · 2 comments

Comments

@anandparanjape
Copy link

In projectk projects, you can add references using add reference dialog.
If user adds circular reference then klr.exe keeps on crashing.
User can close solution from VS. as workaround to get out of this situation is to open project.json and remove this circular reference.
Package Manager log shows error like below. (this was fixed (#138) before but due to recent DTH work, issue resurfaced at another location.)

System.Exception: TODO: Circular dependency references not supported. Package 'WebApplication1'. at Microsoft.Framework.PackageManager.RestoreOperations.<>c__DisplayClass3.b__5(String name) at Microsoft.Framework.PackageManager.RestoreOperations.d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.Framework.PackageManager.RestoreOperations.d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.Framework.PackageManager.RestoreCommand.d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Framework.PackageManager.RestoreCommand.d__1.MoveNext() ---------- Restore failed TODO: Circular dependency references not supported. Package 'WebApplication1'.

@muratg
Copy link
Contributor

muratg commented Dec 5, 2014

@AnandJP Circular dependencies are not supported. This is actually called out in the exception message. If there are other issues, please refile. Thanks.

@muratg muratg closed this as completed Dec 5, 2014
@muratg
Copy link
Contributor

muratg commented Dec 23, 2014

Circular dependencies are not supported right now, but additionally there are 2 other issues.

  • KLR crash. (This is actually due to a stack overflow, and not because of the exception above)
  • KPM restore is actually installing some packages with Circular Dependencies if the second dependency is not already on disk. (If it is on disk, it throws the error above)

These two issues are tracked here: #997

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

2 participants