Giter Site home page Giter Site logo

Comments (8)

stdweird avatar stdweird commented on July 17, 2024

that's odd. failed compilations should give clear error.

from maven-tools.

stdweird avatar stdweird commented on July 17, 2024

indeed, no clear error in this case

# VERBOSE template-library-core path found /home/stdweird/git/quattor/template-library-core
# DEBUG: Pan compiler called from directory /home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/src/test/resources (proc panc --formats json --output-dir /home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/target/test/profiles --include-path .:/home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/target/pan:/home/stdweird/git/quattor/template-library-core basic.pan) 
# execute command diff -u /home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/target/test/cache/basic/global.lock -
# execute command diff -u /home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/target/test/cache/basic/global.lock - no status set, using 0
# execute command diff -u /home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/target/test/cache/basic/global.lock - no desired stdout set, using empty string
# execute command diff -u /home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/target/test/cache/basic/global.lock - no desired stderr set, using empty string
Unable to fetch profile basic at /home/stdweird/git/quattor/configuration-modules-core/ncm-syslog/target/dependency/build-scripts/Test/Quattor.pm line 241.
BEGIN failed--compilation aborted at src/test/perl/configure.t line 6.
src/test/perl/configure.t .. 

from maven-tools.

stdweird avatar stdweird commented on July 17, 2024

so one issue is clearly an panc issue: why does this compilation end with exitcode 0?

from maven-tools.

jouvin avatar jouvin commented on July 17, 2024

No this is not a compilation issue. The template is fine. Just it is not declared as an object template. Because of this it seems that use Quattor qw(xxx) never returns (neither a success nor an error)...

from maven-tools.

stdweird avatar stdweird commented on July 17, 2024

@jouvin so running panc on a non-object template is considered ok as a syntax check? it just seems a bit odd.

from maven-tools.

jouvin avatar jouvin commented on July 17, 2024

Sure, I think you can compile whatever template is syntactically correct and has nothing unresolved. But I just checked and in this case, there is no output (json) file produced. I think this is the reason why use Quattor qw(xxx) never completes: it probably waits for the json file to appear. I don't know this part of the code: is there any possibility to have a timeout?

This is clearly annoying as it is quite difficult to diagnose... I loosed quite sometime before understanding the issue.

from maven-tools.

stdweird avatar stdweird commented on July 17, 2024

it does not hang, it continues and then fails with some error that CCM can't find the json file. but this is fixed in #127, just waiting for merge and new release

from maven-tools.

jouvin avatar jouvin commented on July 17, 2024

As for me, it never entered the main code (after the initial use). But thanks for the fix, I'll try to look at it tomorrow in more details.

from maven-tools.

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.