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
0
votes
1 answer

Cyclic dependencies on multi-module maven project

I have been writing a very simple blockchain in java for the last few weeks as a maven project with Intellij. When I began this project, I was okay with everything residing in a single module, even though there are technically two artifacts that…
0
votes
0 answers

Spring boot + tomcat deployment + illegal cyclic inheritance dependencies Issue

I have created a spring boot application. When i try to deploy my application on tomcat server, the jetty dependency in pom.xml was causing the issue. I removed Jetty dependency and then tried to deploy. Now, I am getting the below error related to…
Nithin
  • 371
  • 7
  • 29
0
votes
0 answers

Cyclic dependencies in dict

I'm working on small tool to manage dependencies between applications. For example app_one depends on app_two and app_three. Simplest way to store those relations is dict dep = { 'app_one': 'app_two', 'app_two': '', 'app_three': 'app_one,…
0
votes
1 answer

How to implement a circular dependency in JPA with a class in the middle of it

I have the following problem in java/spring. I tried to simplify at maximum my problem with a more concrete case. To summarize, we have a class Country and each country is linked to many City. Each City is linked to another with an intermediate…
Chouch
  • 31
  • 1
  • 7
0
votes
1 answer

Parse Error: Cyclic Dependency in App Initializer

I am implementing app initializer and I came across cyclic dependency error as below Uncaught Error: Provider parse errors: Cannot instantiate cyclic dependency! ApplicationRef ("[ERROR ->]"): in NgModule AppModule in ./AppModule@-1:-1 at…
0
votes
2 answers

Cyclic depenency: IVisitor and Datas

I recently asked about cyclic dependency. The answer was to dedicate a project on interfaces (MyProject.Abstractions). Now, this project is the cause of another cyclic dependency, with a Visitor pattern. namespace MyProject.Abstractions { …
0
votes
1 answer

Cyclic dependency between Datas-project and Builders-project

Here is the code I want to achieve: A Character has strength, constitution, and some other stats. Each Character has BaseStats depending of his class. Each Character has RandomStats bonus, with positive values from 0 to 3. A stat may not be…
Maxime Recuerda
  • 476
  • 3
  • 14
0
votes
1 answer

Tying the knot in cyclic records

What is the best way to rewrite the following so it compiles? Both data-type depends on each other. {-# LANGUAGE OverloadedStrings, DuplicateRecordFields #-} data Syn = S { inputs :: [Neu] } data Neu = N { weigth :: Double, inputs :: [ Syn ] }
Dilawar
  • 5,438
  • 9
  • 45
  • 58
0
votes
1 answer

Is this a cyclic dependency

class foo{ Bar b; } class bar{ Class clazz = foo.class; } Does the above snippet show a cyclic dependency. Class foo has a reference of bar class object. Class bar has reference to foo class itself.
0
votes
1 answer

Circular template dependecy of variadic class templates

I'm trying to build a 'non-centralized' graph structure where nodes and edges cross-point themselves. Quite similar to this: Circular template reference structure. Although, I'm trying to support that nodes can hold several edges types of varying…
0
votes
1 answer

cyclic dependency in composite structure with template specialization

Does anyone know a way to use template specialization with a custom class which is used in a composite structure? To be specific, I'm writing a program to parse/validate an XML document where the XML data is stored in a custom composite tree…
0
votes
0 answers

Angular 4 Cyclic Dependency with Startup Service using Router

Have been getting a cyclic dependency error when using a startup service that depends on "Router" within my Angular 4 application. Error I get is as follows: Cannot instantiate cyclic dependency! ApplicationRef ("[ERROR ->]"): in NgModule…
Pat
  • 255
  • 2
  • 4
  • 16
0
votes
2 answers

Cyclic dependency and inheritance compilation error on c++

I have a problem in C++ that involves circular dependencies and inheritance. I have implemented the design in parts and I will use pesudocode to ilustrate where the problem happens. The first part is: //app.h include rel.h class Rel; // forward…
vicaba
  • 2,836
  • 1
  • 27
  • 45
0
votes
0 answers

Is there any way to resolve cyclic dependency like this

I'm writing a C compiler and I am on a stage of syntax analyzing. I've got a hierarchy of syntax tree nodes. I want to refactor code but I can't resolve dependencies like this. For example, here is a header with all predeclared classes and and…
0
votes
1 answer

Cyclic "import xyz as abc"

I have a problem when I try to have a cyclic import in Python 3. I am writing a PyQt4 app and I want to make some object available in the whole app. This way I end up having some files: index.py import source.blab as bl source/blab.py import…
Sven
  • 51
  • 3
1 2 3
8 9