Results 1 to 2 of 2

Thread: Circular requires reference for file C:\sim\ext\src\dom\CompositeElement.js

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    24
    Vote Rating
    0
      0  

    Default Circular requires reference for file C:\sim\ext\src\dom\CompositeElement.js

    While executing sencha command I got following:

    Code:
    [INF] Loading classpath entry C:\sim\sencha-compile-temp-dir\d57b2256-0624-4322-806b-9f16003778a8
    [ERR] Circular requires reference :
    C:\sim\app\Application.js ->
    C:\sim\ext\src\app\Application.js ->
    C:\sim\ext\src\app\Controller.js ->
    C:\sim\ext\src\app\EventBus.js ->
    C:\sim\ext\src\app\domain\Component.js ->
    C:\sim\ext\src\app\EventDomain.js ->
    C:\sim\ext\src\dom\CompositeElement.js ->
    C:\sim\ext\src\dom\CompositeElementLite.js ->
    C:\sim\ext\src\dom\Element.js ->
    C:\sim\app\util\override\Positionable.js ->
    C:\sim\ext\src\dom\CompositeElement.js
    [ERR] Error executing page compilation Circular requires reference for file C:\sim\ext\src\dom\CompositeElement.js
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExCircularReference: Circular requires reference for file C:\sim\ext\sr
    c\dom\CompositeElement.js
    [ERR]
    [ERR] Total time: 1 minute 40 seconds
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR] C:\sim\.sencha\app\build-impl.xml:471: com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExCircularReference: Circular re
    quires reference for file C:\sim\ext\src\dom\CompositeElement.js
    [ERR]   at com.sencha.tools.compiler
    [ERR] .sources.SourceFileDependencySorter.processFileDependencies(SourceFileDependencySorter.java:169)
    [ERR]
    [ERR] Total time: 1 minute 41 seconds
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    C:\sim\.sencha\app\build-impl.xml:471: com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExCircularReference: Circular requires
     reference for file C:\sim\ext\src\dom\CompositeElement.js
    Its not like that CompositeElement.js is extending itself (Its extending CompositeElementLite.js);

    What is causing circular reference ??

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      0  

    Default

    You can use the -d debug flag to get all the log messages. A circular reference doesn't mean that a component is extending itself, it means that it is requiring a class that is also requiring it. So class A would require class B and class B would require class A.

    I have not had an issue building an app myself, this would mean that others would have issues every time.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •