Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

OTTER: Error when using module from default asset to plan from an other asset



  • Hello

    By default, the module from the default asset are not suffixed by Default:: when you select it form the visual editor.
    when you use it from a plan located in a different asset, you have the error : Unable to resolve method: *******
    One should search in the default asset when the asset is not defined for the module to avoid the pb
    or you must add default:: suffixe when you select a module form the UI - I think :-)

    Test case:
    In the default asset :
    Create a module Test

    ##AH:UseTextMode
    module test
    {
        Log-Debug Module from Default Asset;
    }
    

    In a test asset (in my case it is a Git Repository)
    Create a Plan TestPlan
    Select Test module from graphic mode

    ##AH:UseTextMode
    call test();
    

    Execution fail

    DEBUG: 2020-10-07 20:42:25Z - Job 1675 directly targets 1 server(s) by name.
    DEBUG: 2020-10-07 20:42:25Z - Skipping collection run; execute only.
    INFO : 2020-10-07 20:42:25Z - Collection run succeeded.
    DEBUG: 2020-10-07 20:42:25Z - Beginning execution run...
    ERROR: 2020-10-07 20:42:26Z - Unable to resolve method: test
    DEBUG: 2020-10-07 20:42:26Z - Cleaning up temporary files on Inedo Agent (v??, VM000037:46336)...
    

    Edit the Plan and add asset suffix to the module (in text mode)

    ##AH:UseTextMode
    call default::test();
    

    Execution succeed

    DEBUG: 2020-10-07 20:47:50Z - Job 1676 directly targets 1 server(s) by name.
    DEBUG: 2020-10-07 20:47:50Z - Skipping collection run; execute only.
    INFO : 2020-10-07 20:47:50Z - Collection run succeeded.
    DEBUG: 2020-10-07 20:47:50Z - Beginning execution run...
    DEBUG: 2020-10-07 20:47:50Z - Module from Default Asset
    INFO : 2020-10-07 20:47:50Z - Execution run succeeded.
    DEBUG: 2020-10-07 20:47:50Z - Cleaning up temporary files on Inedo Agent (v??, VM000037:46336)...
    

    Hope this help

    OTTER Version 2.2.23 (Build 1)

    Best regards
    PhilippeC.


  • inedo-engineer

    Thanks for the very detailed test case, we will be reviewing it quite soon and get a fix ASAP!



  • You're welcome 😊


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation