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

Maven 2 & 3 differences on dependency:analyze with cycle

Here's the dependency tree I'm using: [INFO] ------------------------------------------------------------------------ [INFO] Building PA 0.0.2-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] ---…
jaypi
  • 223
  • 2
  • 13
0
votes
1 answer

Google Sheets Array Formula Sum Previous Cell in Column Referencing Itself

Like the title suggests; I, for the life of me, can't seem to get a simple array formula to work without getting a circular dependency error. The basic formula is beyond simple. The formula is put into the cell directly below, in the same column…
0
votes
1 answer

Resolving Circular Dependencies Java

Below I posted a simple Java code example with circular dependencies. MyObject has two members (myObject1 and myObject2) that have a reference to the object itself. Is there a way to resolve the dependencies but keep the functionality? public…
nafets
  • 19
  • 2
0
votes
1 answer

Is there a nice way to solve this circular dependency situation?

I have a large project, let's call it proj, with a bunch of sub-projects, let's call those subproj_1 to subproj_n. I also have a separate project called tool. tool depends on subproj_1. subproj_2 depends on tool (in test scope only). Our CI…
MK.
  • 33,605
  • 18
  • 74
  • 111
0
votes
1 answer

EXC_BAD_ACCESS (code=1) on iPad 2, iPhone4S and iPhone5 only

this has been bugging me all morning, I have searched the hell out of this website and I can't find any reference to this issue. Within my project I have 2 objects with circular dependancies set up exactly like this; ClassA.h @class…
0
votes
1 answer

Updating GUI from a different class?

Perhaps this is a very basic question, please pardon me if it is --- I'm a beginner in C#. I have a WPF GUI for sending commands to a receiver. The commands are ASCII texts. Now, I separated the communication part into a separate project because I…
Andy
  • 245
  • 5
  • 18
0
votes
2 answers

C++ Error LNK2005 When Adding a New HeaderFile

I am working on a project for school. I am aware of my circular dependency(And have read most of the resolutions here for that previously) but it works currently the way I need it to. Sadly I'm pretty sure it is also the cause of my woes. I would…
0
votes
0 answers

RuntimeError when using custom controller for Devise

I wanted to customize some actions in Devise, so I generated my own custom_registration_controller.rb and pointed the devise routes there: devise_for :members, controllers: { registrations: 'custom_registration' } I copied and pasted the contents…
Jeff Caros
  • 919
  • 5
  • 12
  • 32
0
votes
0 answers

Avoid same-origin-policy violation in JSON.stringify() by skipping restricted elements

I'm using JSON.stringify() with a custom replacer to stringify the window object of a given page. On some pages I understandably get the same-origin-policy error that interrupts the execution. What I would like to do is to safely handle the…
0
votes
1 answer

Issue with circular dependency even after separating definitions

Please see my previous post here: Undefined type error even with forward declaration I moved the definitions to cpp files and I still face the issue. Any ideas why? My files look like this: Header1.hpp #ifndef HEADER1_HPP #define…
ashish g
  • 429
  • 1
  • 7
  • 16
0
votes
1 answer

Python circular reference : How do I go about this specific case?

I'm working with tornado and websockets(sockjs) and having trouble while handling incoming messages, getting around this specific case which is that of a circular class reference. The issue is not related to websockets per se, but essentially the…
vivekanon
  • 1,813
  • 3
  • 22
  • 44
0
votes
1 answer

Breaking Python Circular Imports

How to break this particular circular import. I added a trivial example added at top to highlight the issue. module_tit.py import tat class Tit def tit(x): return tat.inst.tat(x) inst = Tit() if __name__=='__main__: print "tit 12…
Dan Oblinger
  • 489
  • 3
  • 15
0
votes
0 answers

Best solution for circular dependency in a rails form with nested attributes

I have the following model structure: class Test < ActiveRecord::Base has_many :questions end class Question < ActiveRecord::Base belongs_to :test belongs_to :answer, class_name: 'Choice' has_many :choices, dependent: :destroy end class…
0
votes
0 answers

C++ List of Class Instances and Circular Dependencies

I have a base class in my project in which each newly created instance will store a pointer to itself in a static vector in another class. Unfortunately this creates a circular dependency. AInstList.cpp class AInstList { static std::vector
Camander
  • 147
  • 1
  • 10
0
votes
1 answer

AngularJS Circular Dependency - Transformers

looking for a bit of advice if possible. In dealing with an API and nested resources, I'm trying to make a set of "transformers" which format the data into a more usable format. In doing this, I have to create a circular dependency, due to the…
user43138
  • 227
  • 1
  • 3
  • 10