Questions tagged [circular-dependency]

circular dependency is a relation between two or more modules which either directly or indirectly depend on each other to function properly.

1693 questions
0
votes
0 answers

Angular circular dependency fix with forwardref

I've got a Problem. We are running good with Unit Tests in our Project but now we found a circular dependency and no we cant change it that easy. So I created a little project to see how we could fix this or workaround. So now I devided to try it…
N. Schum
  • 1
  • 1
0
votes
1 answer

Circular Inclusion using Singleton and child class

While working on a little game of mine, I ran into a circular dependency related issue. Say I'm using 2 classes and a helper namespace(all include guarded), where Base is the main game class, Player the player object and a child of Entity, and…
tbvanderwoude
  • 587
  • 6
  • 17
0
votes
3 answers

Python Circular dependencies, unable to link variable to other file

I am working on a program that allows me to directly edit a word document through a tkinter application. I am trying to link the tkinter input from my gui file to my main file so that I can execute my docx functions. When I try to execute my code…
7051108
  • 25
  • 1
  • 1
  • 5
0
votes
1 answer

Circular Referencing Packages - Python/Django

During the course of a GraphQL implementation I'm finding myself making a lot of circular references to keep the packages modular. Consider the following folder structure. project/ __init__.py graphql/ __init__.py inputs/ …
0
votes
1 answer

Removing Circular Dependency in Native android

I have a file A.c and another file B.c, There is a function func1 in A.c which is defined in B.c and a function func2 in B.c which is defined in A.c. Now when I am trying to build the separate so library with A.c and B.c, then the compiler throws…
0
votes
0 answers

Compiling c++ code with multiple classes that reference each other

I am very new to c++ and I am having trouble with circular dependencies. I have these classes that call each other, and now I have no clue how to compile this code correctly. Main.cpp #include "ClassB.hpp" //Rate #include "ClassC.hpp"…
S. J.
  • 11
  • 3
0
votes
0 answers

Circular dependency detected while autoloading constant User + After removing active admin

I was using active admin but mistakenly integrated in wrong repo. When I found it and I removed everything about active admin from that repo but still find issue related to active admin. Don't understand how my application find that admin namespace…
0
votes
2 answers

How to avoid the circular dependency in this scenario?

The current program results in stackoverflow exception which i know why. How could I avoid the circular dependency here. How can i make the three classes independent of each other though the classes are dependent to each other(just imagine that the…
0
votes
1 answer

Angular2 Shared component with dynamic not shared components

I have two modules (M1, M2) with two components on every one (CL1,CI2,CL3,CI4): A ListComponent and an ItemComponent. I created a shared module which has SearchComponent to looking for items to populate the lists. SearchComponent call a backend…
Fran b
  • 3,016
  • 6
  • 38
  • 65
0
votes
3 answers

How to solve cyclic dependencies while installing software on linux?

I am new to the computing world. My intention is to figure out a generic approach to solve cyclic dependencies while installing new software on Linux, if it exists. Here I am using the case of Google chrome to better illustrate my question. While…
0
votes
1 answer

C++ circular dependency on public aliases (typdef/using) defined inside a class/struct

Is there a way to break circular dependencies like the following without moving both using/typedef aliases outside classes? // header A.h #ifdef A #define A #include "B.h" class A { using ID = uint32_t; void some_func(B::ID id); }; #endif A //…
0
votes
1 answer

Ionic2 - Reusing Service with TabsPage breaks app, causes runtime error on startup

I am new to Ionic2 and have come across an error from what seems to be a circular dependency with a page that I can't figure out. Error: Can't resolve all parameters for HiredJobsPage: (?). I whittled my code down to bare bones in order to pinpoint…
EmacsVI
  • 571
  • 1
  • 5
  • 15
0
votes
1 answer

Can this circular dependency in TypeScript be refactored so separate TypeScript files are possible?

I have those TypeScript classes in the same .ts file because there are import dependencies. I would appreciate if someone could help me refactor the code so I could remove the circular reference of imports: The first one is the abstract GenericModel…
Michail Michailidis
  • 11,792
  • 6
  • 63
  • 106
0
votes
1 answer

How can I resolve a circular dependency between different ECMAScript modules?

I am creating a class called Carousel and from within that class want to call a class called Pips that will be tied to the carousel through a parent-child relationship. The problem I have is that I am receiving the following error: Super expression…
Tom Pinchen
  • 2,467
  • 7
  • 33
  • 53
0
votes
1 answer

Making a module partially imported

I have a package with a couple of modules config, and logging (amongst others). The logging module provides a method to log to the package's log file (which is defined in the config module). The config module contains a bunch of static config values…
DanielGibbs
  • 9,910
  • 11
  • 76
  • 121