Forum Discussion

phani's avatar
phani
Advisor
9 years ago

Lithium SDK: unable to upload changes

Hi,

 

We are unable to upload changes performed in local SDK plugin repository. Following is the command which we used to upload.

command: li submit-plugin

 

Studio version showing Plugin checkin record. But we are not seeing the changes in component which we performed before upload in local SDK plugin repository.

 

Attached upload logs.

 

Community URL: https://italent.demo.lithium.com/

 

Your help could be highly appreciated.

Thanks & Regards,

Phani

6 Replies

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    9 years ago

    Hi phani,

    It looks like you perhaps exported the Studio plugin to the SDK plugin, but didn't clear the Studio plugin before you uploaded your local SDK changes. Files with the same name in the Studio plugin will always override versions in the SDK plugin.  

     

    You have two options to clear the versions in Studio plugin. 

     

    You can use li clear-studio-plugin at the command line with the specific plugin point flag:

    li clear-studio-plugin --points asset, badge_icon  --force

     

    If you're doing this, be sure that you have exported all files from the Studio plugin to the SDK plugin first. (I'm guessing you did this export already.)

     

    Alternatively, if you have just a few specific asset and badge icons you want to override, you could delete those specifically from Studio using the Studio UI. This option works around the all-or-nothing nature of the li clear-studio-plugin command.

     

     

  • phani's avatar
    phani
    Advisor
    9 years ago

    Hi SuzieH,

     

    Thanks for the clarification. 

     

    I am trying to understand what exactly clear-studio-plugin command does? Could you please provide more clarity on following commands?

    1. clear-plugin 

    2. clear-studio-plugin 

     

    Thanks & Regards,

    Phani

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    9 years ago

    Hi phani 

    I meant to follow up with you on this earlier. I've added more information to the Developer Workflow section of the SDK documentation about clearing the studio and sdk plugins. It talks about From the SDK documentation, go to Learn > Developer Workflow and scroll to the Creating a Development Strategy section. (We're also working on getting deep linking working in the Developer Documentation Portal.)

  • phani's avatar
    phani
    Advisor
    9 years ago

    Great! Thank you SuzieH,

     

    Could you please help us to solve the following scenario?

     

    1. We have 3 new custom components, 3 endpoints and 2 custom pages.

    2. Places above components in their places in local repository.

    3. Submitted the plugin using "li submit-plugin"

     

    All new components,endpoints and custom pages are uploaded into community. In this case we did not perform studio export before submitting the plugin since we do not want all components, endpoints, and pages in our local repository and also SDK icon in studio should only show to the newly uploaded components,endpoints and custom pages.

     

    Now we want want to perform some changes in the components which we uploaded in previous SDK push.

    We have used the same command which is "li submit-plugin".

    But command prompt throwing the following error "A file in SDK plugin is overridden in Lithium Studio".

     

    We are unable to upload the changes using SDK plugin

     

    Thanks & Regards,

    Phani

     

     

  • phani's avatar
    phani
    Advisor
    9 years ago

    Hi SuzieH,

     

    Looks like one of our engineer overridden the custom component (uploaded using SDK) in studio. In this case is there anyway to override that component from SDK without exporting entire studio components plugin into local repository?

     

    Thanks & Regards,

    Phani