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.

Filter by
Sorted by
Tagged with
1 vote
3 answers
20 views

How to implement reverse circular array from index position in typescript?

I want to get last 12 months from current month using typescript. like suppose current month is Jule then my output should be ['August','September','October','November','December','January','February',...
Supriya's user avatar
  • 11
0 votes
0 answers
26 views

Linux kernel Device Tree cyclic dependency issue

When I tested Lnux kernel, dvi and tfp410 are not probed in BeagleBoard. After investigation I found they are cyclic dependency in the Device Tree, I have tried new fw_devlink_create_devlink() and ...
Kaijun Tang's user avatar
0 votes
0 answers
13 views

What do I have to change when I get the Circular Dependency Error with the code below?

I want to group various items within category, but when I try to group I get the Circular Dependency error about Item Group Code, I am using the code below to create the Item Group Code. Can someone ...
Thom's user avatar
  • 1
0 votes
0 answers
33 views

Circular header dependency in ECS

I'm trying to implement an ECS pattern for a videogame in C++. The three element of the pattern are mainly represented by a Manager (EntityManager, ComponentManager, System Manager) which are defined ...
Alessandro Bosa's user avatar
0 votes
0 answers
31 views

Circular Dependency Problem in JPA entities: SpringBoot

I am working on a Spring Boot + MySQL project. I intend to develop a feature: There are several stages, A,B,C,D,E,.... There are two entities X and Y who can perform some actions which would cause ...
ayush's user avatar
  • 534
1 vote
0 answers
44 views

SQL relationship accessible via two properties and how to enforce this relationship when inserting data

I have a SQL database that I have modelled by EF Core code first approach. The problem I'm facing is related to only a small part of that model, so I will isolate it and try to explain the issue with ...
olejhar's user avatar
  • 11
-2 votes
0 answers
36 views

in C++, got problem when using template specialization and #ifndef [duplicate]

i made two .hpp and .cpp like this: Bureaucrat.hpp #include "Form.hpp" class Form; class Bureaucrat { ... void using(Form& rhs); } namespace std{ template<> void swap&...
justStudent's user avatar
1 vote
0 answers
49 views

Circular dependencies in Nextjs 13 and Storyblok

This is my first time using Next.js 13 with Storyblok. To get started, I used this template which worked great in the begining. But now I am running into a circular dependency error. Error occurred ...
mattisvensson's user avatar
0 votes
1 answer
25 views

Need help to create a new Table for PO numbers from separate tables that will not trigger a circular dependency in Power Bi

I need help to create a new table that will not trigger a circular dependency in PowerBi. I want to create a separate table with all the PO numbers from different reports that come from different ERPs,...
Toño Tolosa's user avatar
1 vote
1 answer
43 views

I want to make this uml association while also avoiding a circular relationship

So my main issue is that both of Members and Roles have a field called team. I was thinking maybe have team and role be associated with each other and then member will be linked to roles. But that ...
Issues's user avatar
  • 21
0 votes
1 answer
41 views

Concern in Managing Platform-Specific Features

I'm wondering how to address a concern I have. I have a "foo" and multiple conditional platform-specific "foos" (e.g., winFoo, LinuxFoo, or AndroidFoo), where all the platform-...
Jôsùå's user avatar
1 vote
0 answers
47 views

NG0200: How to break circular dependency between standalone and non-standalone component

I have two angular components inside a library I'm working on (LibAComponent and LibBComponent). LibAComponent is declared in MyLibModule and LibBComponent is a standalone component. Is it possible ...
user22799690's user avatar
0 votes
0 answers
18 views

Circular slider to continue counting after 360 degrees

I aim to create a circular slider which you slide to increase a value - in the current code 60 secs for 360 degrees. Unfortunately it stops after 360 degrees or goes back to zero again. I am searching ...
TheIndigoFox's user avatar
0 votes
0 answers
36 views

HackerEarth - Codemonk - Circular Equation Problem

Hi folks I am solving a problem Circular Equation in Python 3.8.10 language and this problem is on HackerEarth Platform under Codemonk/Number Theory Part I* section and below I have attached exact ...
Mohammad Shafqat Siddiqui's user avatar
0 votes
0 answers
10 views

Change text or string to Arc Shape

enter image description herethis is my code and i want it to be more arc shape like the image below ub.data.textShapeArcConfiguration = { curve: 800, offset_y: -1000, text_height: 1600, bottom: 1600, ...
Christopher Ross's user avatar
0 votes
0 answers
19 views

Many to many relationship between two entities from different modules

I am trying to create an application with 2 microservices. I have a spring boot app with two modules: device and user. Now I need to make the following mapping: one user can have multiple devices and ...
Flavia Moldovan's user avatar
0 votes
0 answers
105 views

Maven complains that "org.omg.CORBA" does not exist while trying to build JacORB

I'm trying to build JacORB via Maven under version 17 of the JDK. I've run the command mvn clean install as instructed in page 14 of the docs, but got the following error: [ERROR] /home/mehdi/JacORB/...
Mehdi Charife's user avatar
0 votes
1 answer
41 views

Maven cyclic dependency error with EJBs acting as server as ejb client too

I created two projects with the same structure that will be packaged to ear and deployed using WildFly 29 Domain. A project contains an EJB module and a WEB module Let them be A and B I have done some ...
Maloda's user avatar
  • 1
0 votes
0 answers
12 views

How to Resolve React nested component circular dependency?

When using componentSelector in Item3, I'm getting a Circular Dependency warning. How can I address this? componentSelector.tsx export const componentSelector = { item1: Item1, item2: Item2, ...
whale's user avatar
  • 1
1 vote
2 answers
78 views

Trying to get rid of a circular Python dependency

I have an application (telegram python bot) with a lot of CONSTANTS in it, so I did a bit of a structure here: bot/ api.py bot.py constants.py functions.py keyboards.py Main ...
Alex Lebedev's user avatar
0 votes
2 answers
71 views

C++ circular dependency with header guards and forward declarations

I have a simple Vec3 classand a simple xMath class. The xMath class is supposed to change the Vec3. There are just 2 files Vec3.hpp and xMath.hpp (and I am not allowed to create other files). both ...
maverick1999's user avatar
0 votes
1 answer
76 views

Flask MVC with Circular Dependency (dependency injection?)

I'm trying to create models to form the mvc in flask but it's marked as a circular dependency (db in init), I even removed the models to test and put them in for the controllers to use the bank, but ...
Henrique Buzin's user avatar
0 votes
1 answer
69 views

"Circular Dependencies" but works perfectly; How to fix it

This program allows you to generate an activity (progress bar for example) during a long processing at the end of which the activity stops. A first callback generates the activity with a dcc.interval....
YaOo's user avatar
  • 1
0 votes
0 answers
106 views

NG0200: Circular dependency in DI detected while instantiating a provider / NG0203:

I'm currently working on a login component in my Angular front-end. I get this error upon clicking towards the button that navigates to the LoginComponent: ERROR Error: Uncaught (in promise): Error: ...
Yataai's user avatar
  • 11
1 vote
2 answers
62 views

In .NET, what is the best way to resolve this necessary circular dependency using injection?

Here are my three class examples. There are dozens of these Adapters, one for each entity in my dataset, and they handle all the conversions between different protocols for that entity. Works great ...
kamii's user avatar
  • 237
1 vote
1 answer
80 views

How to solve this circular dependency in Flutter

AuthRepository -> AuthDataSource -> ApiClient -> AuthInterceptor -> AuthRepository The objective here is to implement network request interception in AuthInterceptor. Specifically, if the ...
Faizan Malik's user avatar
1 vote
1 answer
80 views

Why doesn't cyclic reference with singleton instance holder throw StackOverflowError?

static class A { private static class InstanceHolder { private static final A a = new A(); } private final B b; private A() { b = B.getInstance(); } static A ...
leokom's user avatar
  • 1,954
0 votes
0 answers
29 views

Structure which avoids circular import in Python

I'm building float point model in python. Floating point formats are defined in class, and its operations such as multiply ... etc are defined in other modules as class. Below is directory structure: ....
jmg2027's user avatar
0 votes
0 answers
35 views

Python NameError on custom TypeVar while being imported

I've tried to import generic type to other module, but to fail NameError: name 'AT' is not defined even though I've imported it. I use python 3.8.10. This is the directory structure: ├── aa │ ├── ...
jmg2027's user avatar
0 votes
1 answer
23 views

Achieving circular bar chart [closed]

How to achieve evenly spaced data points in tableau circular bar chart? Current version of this Bar Chart WINDOW_COUNT(COUNTD([Radial Field])) * (INDEX() - 1)
folasade oluwatosin's user avatar
1 vote
1 answer
29 views

R Grid package solution for plotting angles on a circle

I would like to draw angles on the perimeter of a circle. This solution with grid package looked promising Circular plot with vectors in R for the customisation I need but I'm having trouble plotting ...
Lisa's user avatar
  • 25
0 votes
1 answer
51 views

Circular Depedency Socket.io NodeJS error

I'm building a chatting app and I'm at the point where I'm trying to make use of socket.io to handle real time messages. But the way I have structured my code in the backend I have a server.js and a ...
Rawley's user avatar
  • 19
1 vote
1 answer
53 views

Handling Many-to-Many Relationships in Go with GORM While Avoiding Circular Dependencies

I have two primary domain entities, User and Project, which have a many-to-many relationship. When I tried to reference each from the other (i.e., a slice of Projects in User and a slice of Users in ...
JangoCG's user avatar
  • 852
1 vote
1 answer
150 views

AWS Step Functions CDK IAM role circular dependency with distributed map state

I'm using AWS Step Functions with CDK (TypeScript) and I need to add a Distributed Map state. Unfortunately, CDK does not support this state yet (https://github.com/aws/aws-cdk/issues/23216). Since I ...
Simone Serra's user avatar
0 votes
0 answers
67 views

In NestJs, how do I resolve circular dependencies between types?

I have two services in two different modules that both need to call each other, but ran into circular dependency issues. After searching and finding dozens of answers recommending forwardRef(), I ...
Shaun's user avatar
  • 1
3 votes
0 answers
53 views

How to arrange the flow of reactive values in R Shiny in a manner that avoids circular dependencies?

The R Shiny code posted at the bottom allows the user to add columns to a rhandsontable table, allows manual inputs into the first row of the table, and automatically populates the non-editable second ...
Curious Jorge - user9788072's user avatar
1 vote
1 answer
43 views

Get most recent record from same column

Let's say I have a table that looks like this: Ticker Date Transaction Shares Price Average Cost ABEV3 01/Mar/2021 Purchase 77 $12.93 $12.93 ABEV3 04/May/2021 Purchase 73 $13.60 $13.26 ABEV3 04/...
leolapa's user avatar
  • 43
0 votes
1 answer
25 views

Measure that dynamically calculates average cost (avoiding circular dependency)

I imported an Excel table with thousands of purchases and sales transactions of shares of stock. The imported data: traded tickers, transaction dates, number of traded shares, types of trade (purchase ...
leolapa's user avatar
  • 43
1 vote
1 answer
26 views

Module A imports variable from module main and export it to module B. How to get module main export variable to A and import from B?

Here is my code: main.js: const fromMain = '123' export {fromMain} import {fromB} from './b.ts' console.log(fromB) a.js: import {fromMain} from "./main.ts"; const fromA = fromMain + 456 ...
Ooker's user avatar
  • 2,190
0 votes
0 answers
314 views

Annotation processing in not supported for module cycles

Build output: I am trying to build my project, but as there exists the circular dependency through the pom.xml file, i can't build my project. I have tried using @Lazy, but it is not working because ...
sid_cuber's user avatar
0 votes
0 answers
51 views

Nest js Circular Dependency & Mongoose Model imports

@Injectable() export class ItemService { constructor( @InjectModel(Item.name) private itemModel: Model<ItemDocument>, @Inject(REQUEST) private readonly request: Request, @...
DhodRaj S's user avatar
0 votes
1 answer
20 views

Managing Circular Dependencies and Type Hints Between Mutually Referencing Classes in Python

I have a scenario where I'm working with two classes, A and B, located in separate modules a.py and b.py. Class A uses class B as a type hint, and class B uses class A in its functionality(Association ...
sfmqrb's user avatar
  • 3
1 vote
1 answer
43 views

DAX Refer to previous row within a measure

Given the data below where Queue2 represent the difference between the Input and Output if the input is greater than the output: And the following measure to determine the amount of items in the ...
Sweepster's user avatar
  • 1,860
2 votes
0 answers
104 views

How can I register my own injection providers globally to work around circular module dependencies?

We can use Angular's @Injectable decorator to make a service available for dependency injection throughout the application. In this case, the service class itself will be used as the injection token; ...
F-H's user avatar
  • 737
0 votes
1 answer
123 views

Circular dependencies between spring included components?

I have multiple applications that share the same configuration classes and once with spring boot v3 I received multiple circular dependencies errors. Most of them were legit mistakes from my side and ...
r.m.ghimis's user avatar
1 vote
0 answers
145 views

How to avoid circular imports when using Python type hints

I'm trying to figure out what would be the best solution to avoid circular imports in a situation where I'm using Protocol and type hints. The problem is the following: I have some storage targets ...
Carlos Azevedo's user avatar
1 vote
2 answers
143 views

FastAPI many to many relationship, multiple models and schemas (circular dependencies error)

i'm new with FastAPI, actually i spend much time trying solve my problem, i read many and test diferente Solutions but not working. The Problem is this: I have a table School, my model and my schema: ...
Uziel Trujillo's user avatar
1 vote
1 answer
292 views

How to solve circular import + pydantic error when using strongly related classes?

I'm trying to separate two schemas, following a 'module' folder structure for my FastAPI app. But doing so causes a circular import error. I made a simpler version of the app to isolate the issue, ...
Abel Rodríguez's user avatar
0 votes
0 answers
20 views

How to structure python project to allow mutual dependency?

How to import both car and abstract_vehicle in main.py? I keep getting circular dependencies error or ModuleNotFoundError. Project structure ├── vehicles │ ├── __init__.py │ └── abstract_vehicle....
Gameriker's user avatar
2 votes
2 answers
70 views

how to split cyclic dependency with 'using' directive

Suppose classes A and B. Each can construct the other: // A.hpp #pragma once class B; class A { B foo(); }; // A.cpp #include <A.hpp> #include <B.hpp> B foo(){ return B(); } // B.hpp #...
Eyal Kamitchi's user avatar

1
2 3 4 5
35