Questions tagged [cyclic-dependency]

Cyclic Dependency occurs when objects form an infinite recurring dependency graph. The head points to the tail and the tail points to the head.

123 questions
2
votes
0 answers

Using an Express Server along with a Websocket Server; how can I trigger a Websocket send event after a POST to one of my routes?

I am currently making a backend server that uses Express and Websockets in Typescript. From a high level, my issue is that I would like to make it so that when I receive a POST to one of my routes, the handler for that route sends a message to a…
n0k
  • 23
  • 5
2
votes
1 answer

How to resolve cyclic dependency in my SpriteKit game classes

I have: 1. Class GameScene that extends SKSCene: #import #import "GameLogic.h" #import "Hero.h" @interface GameScene : SKScene -(void) addHeroMovementLineSegmentTo:(CGPoint)newTrajectoryPoint; @property (nonatomic)…
Vladimir Despotovic
  • 3,200
  • 2
  • 30
  • 58
2
votes
0 answers

How to deal with this cyclic module dependency in Haskell

Simplified version of hierarchy: module A where import MyState data A a = A (StateT MyState IO a) deriving (...) Now there is a module MyState: module MyState where import SomeType data MyState = MyState { st :: SomeType, ... } Finally the…
ksaveljev
  • 550
  • 2
  • 16
2
votes
1 answer

Resolve cyclic dependency in template

I'm trying to implement a Fibonacci heap of pointers of a class called Node using Boost. typedef boost::heap::fibonacci_heap FibonacciHeap; typedef FibonacciHeap::handle_type HeapHandle; So far, so good. But I also want to store handles for…
Domderon
  • 263
  • 1
  • 4
1
vote
3 answers

Attempting to define two dependable structures in C

I am trying to define two structures in C when the second struct uses the first as an array member and has two pointer members of itself. Visual Studio does not like my code: syntax error : '}' syntax error : identifier 'tokenListNode' syntax error…
AdiB
  • 185
  • 1
  • 1
  • 12
1
vote
0 answers

MongoDB cyclic dependency error with mapReduce

I experienced a cyclic dependency error within mongoDB: var mapFunction1 = function() { var key = this.sex; var value = { count: 1, price: this.height }; …
ramo
  • 11
  • 2
1
vote
2 answers

Cyclic dependency in Maven, chickens and eggs

I have a project called 'talktome', with no runtime dependencies. Also I have project 'talktome-tools', which depends on 'talktome'. No problems, until I realize that the unit-tests in 'talktome' depends on 'talktome-tools'. What solutions are…
doniatio
  • 13
  • 3
1
vote
0 answers

tomcat startup throws stackoverflowerror because of cyclic inheritance dependencies

I deployed my application war to tomcat, threw StackOverflowError after startup, the stacktrace is shown in the picture below. According to the stacktrace tip and source code, i can find the cyclic inheritance dependencies…
Jadic
  • 33
  • 1
  • 7
1
vote
0 answers

Cyclic dependencies in spring Beans: what's wrong with it?

I've heard many times a "cyclic beans problem" in spring framework. Could anyone describe when does it appear? I see 3 cases: Bean A has autowired field of bean B, bean B has autowired field A. No constructors, no setters. Both A and B has fields…
J.J. Beam
  • 2,612
  • 2
  • 26
  • 55
1
vote
2 answers

How can you re-arrange items in an array based on its dependencies? and also detect any cyclic dependency

Given the type: class Field{ public string Name{get;set;} public string[] DependsOn{get;set;} } Let's say I have an array of Field items: List fields = new List(); fields.Add(new Field() { Name = "FirstName" }); fields.Add(new…
Tawani
  • 11,067
  • 20
  • 82
  • 106
1
vote
0 answers

How to calculate changing vertex weights in directed graphwith cyclic dependencies?

I am making a small game in Java to practice programming and came across this little issue that I can't seem to solve on my own. In this game, I want to build a virtual shop where I can buy and sell items. Most items can only be obtained in the game…
1
vote
1 answer

Terraform | Cyclic dependency in "apply" stage when using "depends_on" for module

I'm struggling with cyclic dependency issue in terraform apply stage when using depends_on on a module. The error I got in apply is: * Cycle: aws_appautoscaling_policy.queue_depth_based_scale_out_policy,…
Aditya
  • 1,334
  • 1
  • 12
  • 23
1
vote
0 answers

Angular 5 APP_INITIALIZER gives Cyclic dependency error

Angular 5 error. I am having trouble with getting user details on page refresh from browser. I am trying to load the data using APP_INITIALIZER but getting below error - compiler.js:19390 Uncaught Error: Provider parse errors: Cannot instantiate…
1
vote
1 answer

What is the best practice of filling `dag_id` of `ExternalTaskSensor` in Airflow 1.9.0?

How do you fill ExternalTaskSensor parameter external_dag_id? Hardcode. It's very simple but hard to mantain DAG, if external DAG's dag_id changed you must keep in mind to change external_dag_id also. Even some misspell that is unware. or import…
MoreFreeze
  • 2,856
  • 3
  • 24
  • 34
1
vote
1 answer

Angular Provider, Cyclic Dependency Error

I get this error: Provider parse errors: Cannot instantiate cyclic dependency! I have a Component to make http calls to my backend: backend.component.ts import { HttpClient } from '@angular/common/http'; public basicQuery(): void { …
HansDampfHH
  • 575
  • 1
  • 4
  • 10
1 2 3
8 9