GithubHelp home page GithubHelp logo

Comments (4)

brunobowden avatar brunobowden commented on July 21, 2024

It's designed to fail in this way. If you enable cycleFinder and it finds a
cycle, it will fail the build. My code currently runs clean with no cycles,
so I want it to alert on all new cycles.

What I'll do is add a "cycleFinderMaxCycles" integer value, that in this
case you could set to 1. So the build will work if there's only one cycle,
then fail if a new cycle is added (that's what you want to know about).

On Tue Feb 10 2015 at 8:11:26 AM Confile [email protected] wrote:

Cycle Finder Task Exit with Failure. I am not sure if this is fixable, but
so far I had the same problem when I created the cycle finder task.

Works correct but gives a Failure output.

BUILD SUCCESSFUL

Total time: 3.293 secs
http-server:TestJ2Objc mg$ gradle j2objcCycleFinder
:addAptCompilerArgs
:compileJava
:processResources UP-TO-DATE
:classes
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:j2objcCycleFinder

***** Found reference cycle *****
NumberIncrementer -> (field x with type JSNIExample)
JSNIExample -> (field x with type NumberIncrementer)
----- Full Types -----
Lcom/example/incrementer/shared/NumberIncrementer;
Lcom/example/incrementer/shared/JSNIExample;

1 CYCLES FOUND.
:j2objcCycleFinder FAILED

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/mg/Documents/Grails/GGTS3.6.2/TestJ2Objc/j2objc.gradle' line: 277

  • What went wrong:
    Execution failed for task ':j2objcCycleFinder'.

    Process 'command '/Applications/J2Objc/j2objc-0.9.6/cycle_finder'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.552 secs


Reply to this email directly or view it on GitHub
https://github.com/brunobowden/j2objc-gradle/issues/5.

from j2objc-gradle.

brunobowden avatar brunobowden commented on July 21, 2024

See this code for "testExecutedCheck" which has similar logic, happy to accept a patch from you. It's not that hard to change. Otherwise I'll get to it later today...
https://github.com/brunobowden/j2objc-gradle/blob/master/j2objc.gradle#L482

from j2objc-gradle.

brunobowden avatar brunobowden commented on July 21, 2024

You can now fix it with the latest version and following config:

j2objcConfig {
cycleFinder true
cycleFinderExpectedCycles 1
}

from j2objc-gradle.

confile avatar confile commented on July 21, 2024

LGTM

from j2objc-gradle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.