The Welkin Suite Forum

[Fixed] Bug when updating only helper / controller



Bug when updating only helper / controller

  • Please log in to reply

#1
windows version welkinsuite

ilanl

    Posted 26 Jul 2018 and edited 16 Aug 2018

    Hi,

    When uploading a lightning controller or helper (not component) of a lightnign component, I am receiving the following error: Main markup cannot be empty. If you are trying to delete the Lightning definition bundle, directly delete the bundle instead..



    7 replies to this topic

    #2

    ilanl

      Posted 26 Jul 2018

      It simply impossible to work with lightning components now.



      #3

      kate.dulko

        Posted 26 Jul 2018

        Hi Ilan,


        Thank you for sharing this with us.


        May I please to clarify some additional details so that we could detect a reason for the issue?

        Here are my questions:

        1. Please open the Pending Changes panel before deploying your changes and please let me know which files do you have in the list.
        2. Please select the necessary file(s) (your helper/controller) there (in the Pending changes list) and deploy them directly from this panel - for this please use the command from the toolbar in this panel.
        3. Also, can you please share what do you have in the Output panel as a result of the deployment process.

        Looking forward to your response and we would be happy to solve the issue as soon as possible.


        Thank you,

        Kate


        Kate Dulko
        Customer Relations

        The Welkin Suite

        twitter: @KateDulko
        skype id: d_katerina
        e-mail: kate.dulko@welkinsuite.com

         

          


        #4

        marian.iovi

          Posted 27 Jul 2018

          Hi Kate,
          I had the same issue when I tried to deploy a modification in a helper.js from a lightning component using "Deploy project (F5)" command. I successfully deploy the code modifying the component too.
          Also trying a second time, following the same steps, everything works as expected. I will test more and back here with a set of steps to reproduce this.
          Thank you!



          #5

          funkyuzzi

            Posted 27 Jul 2018

            I had a similar experience where it deleted everything but the cmp from my bundle.

            Kate, I checked the Pending changes and it had nothing under the Working Set or Other metadata.

            Once re-created the files and put back all the code, TWS only updated one of the files. I had to quit TWS and re-open to get all the files updated.

            At this point, I'm very wary of continuing to use this new version. Is there a way my colleagues who have not yet installed it can opt out of the upgrade until things are settled?

            Thanks,

            Chris





            #6

            funkyuzzi

              Posted 27 Jul 2018 and edited 27 Jul 2018

              I think it might be related to the merge functionality when a remote file has been changed since you pulled it and you're trying to update it.

              Or possibly to updates where Apex and Lightning resources are both included.



              #7

              ihor.zhabolenko

                Posted 27 Jul 2018 and edited 31 Jul 2018

                Hi all, 

                Thank you for sharing this with us.

                We have fixed this problem. You can update your IDE to the last version.

                Thank you, Ihor.



                TWS Team


                #8

                kate.dulko

                  Posted 31 Jul 2018

                  Hi guys,


                  Thank you for prompt sharing this issue - as Ihor wrote, we fixed this.


                  A reason for the issue was related to the merged mechanism for the deployment functionality for different metadata types - TWS uses different approaches in updating process for different metadata types and some of the cases were not included to this mechanism.


                  Please let me know if the issue would be reproduced after updating the IDE.

                  In another case, I'll close the current topic as fixed.



                  Thank you,

                  Kate


                  Kate Dulko
                  Customer Relations

                  The Welkin Suite

                  twitter: @KateDulko
                  skype id: d_katerina
                  e-mail: kate.dulko@welkinsuite.com

                   

                    


                  Boost Your Productivity. Get Started Today

                  Try Free Trial