Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    otter
    3 Posts 2 Posters 7 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      philippe.camelio_3885
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • P Offline
          philippe.camelio_3885
          last edited by

          You're welcome 😊

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation