The Welkin Suite Forum

Code Coverage highlighting Doesn't show



Code Coverage highlighting Doesn't show

  • Please log in to reply

#1
mac version welkinsuite

colton.larocca

    Posted 01 Nov 2017

    I have a mac but windows users on my team have the same issue. We have tried building, running tests and using the refresh in different order. The color highlighting doesnt show.


    • 1

    16 replies to this topic

    #2

    kate.dulko

      Posted 01 Nov 2017

      Hi Colton,


      Thank you for sharing this issue with us.


      We got your bug report, and according to your TWS log files, the reason for the issue is related to duplicate files in a solution file.

      We will investigate a reason for appearing duplicates.


      Right now, for solving the issue locally, I kindly ask you to open a project folder (there is a 'Reveal in Finder' option for this in the context menu of your project in the Solution Explorer) and delete a '*.sfsln' file.

      When you will open your project after this, the files will be created again and will contain correct data.


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


      Thank you,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        


      #3

      colton.larocca

        Posted 02 Nov 2017

        Hi Kate, 


        Thanks for the quick reply. The deletion didnt seem to have any effect.



        #4

        smo

          Posted 02 Nov 2017

          Hi Kate,

          I confirm that I have the same issue on Windows with the Error 1 An item with the same key has already been added. 1 1 (cf screenshot)

          The color highlighting doesn't work.


          Thanks.


          Stephane


          Attached Files


          #5

          alex.jung

            Posted 02 Nov 2017

            Can confirm same issue as Colton on the mac; and can confirm deleting the .sfsln had no effect.





            #6

            kate.dulko

              Posted 02 Nov 2017

              Hi guys,


              Thank you for your posts.


              Stephane and Alex, I kindly ask you to send us your TWS log files via the 'Report a Bug' option in the Help menu so we could make sure that there is the same reason for the issue. In this case, when you go through the Help -> Report a Bug, please enable the 'Attach Log File' checkbox and put your emails.


              Looks like the issue occurs when the IDE composes the list of files for the Code Coverage panel. May I please ask you to tell me if you can see the list of all the files after clicking the 'Refresh' button on the panel?


              Also, I kindly ask you to check if there are some files with the same name (classes, triggers, or a class and trigger). If you don't see the list of all the files in the IDE, please check this in Developer Console in the Code Coverage list.


              All this information will help us greatly in our investigation and solve the issue.


              Thank you,

              Kate



              Kate Dulko
              Customer Relations

              The Welkin Suite

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

               

                


              #7

              smo

                Posted 03 Nov 2017

                Hi Kate,


                I've sent the log files; I also attach them to this post.


                Thanks


                Attached Files


                #8

                kate.dulko

                  Posted 03 Nov 2017

                  Hi Stephane,


                  Thank you for your bug report and for the attached log file.


                  Yes, the reason is the same, this is why I kindly ask you to tell me if you can see the list of files in the Code Coverage panel after you click the 'Refresh' button.

                  Also, this would be very helpful for us if you can check if (in TWS IDE or in Developer Console) if there are files with the same name in the list of the Code Coverage data.


                  Looking forward to your response.


                  Thank you,

                  Kate


                  Kate Dulko
                  Customer Relations

                  The Welkin Suite

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

                   

                    


                  #9

                  smo

                    Posted 03 Nov 2017

                    Hi Kate,

                    You are right.

                    I have 2 classes with same name in the code coverage panel.

                    What do I need to do to resolve my issue?

                    Thanks again for your help.


                    Stephane



                    #10

                    kate.dulko

                      Posted 03 Nov 2017

                      Hi Stephane,


                      Thank you for your quick response!


                      Can you please tell me if this is one and the same class file from your organization or there are two different classes with the same name on your org? If these are different files do they have the same  ID on the organization?

                      Do these two classes have the same value of code coverage?

                      All this information will help us greatly to solve the issue or find a way hor to handle this case.


                      Currently, as a workaround, if this is acceptable for you can rename one of the files.


                      Thank you,

                      Kate


                      Kate Dulko
                      Customer Relations

                      The Welkin Suite

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

                       

                        


                      #11

                      colton.larocca

                        Posted 03 Nov 2017

                        Hi Kate, 


                        Any update? 



                        #12

                        kate.dulko

                          Posted 03 Nov 2017

                          Hi Colton,


                          Since there is the same error in your log files which Stephane had, I kindly ask you to check also if there are files with the same name in the list of classes and triggers in the Code Coverage panel (or in Developer Console).

                          Exactly this case is the reason for the issue.


                          Our developers will work on handling this situation.


                          Thank you,

                          Kate



                          Kate Dulko
                          Customer Relations

                          The Welkin Suite

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

                           

                            


                          #13

                          colton.larocca

                            Posted 03 Nov 2017

                            Hi Kate, 

                            When we run tests one of our classes shows up as another class.

                            Example class A and Class B. When tests are ran both classes show up as Class A. 


                            When we look at the classes they appear to be properly named. Is this something that can be resolved?



                            #14

                            kate.dulko

                              Posted 07 Nov 2017

                              Hi Colton,


                              Thank you for your response and for this additional information.


                              May I please clarify if these class files have the same name in the Test Result panel when you run tests or in the Code Coverage panel?

                              All the data for both panels we retrieve directly from your Salesforce organization, so can I please ask you to check if the same is reproduced on your org when you run tests or check code coverage?


                              If you see these files with the same name in the Code Coverage panel, can you please tell me if everything stays correctly after you click on the 'Refresh' button?

                              Is the issue related to the code coverage highlighting is reproduced after you click 'Refresh'?


                              Thank you,

                              Kate


                              Kate Dulko
                              Customer Relations

                              The Welkin Suite

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

                               

                                


                              #15

                              colton.larocca

                                Posted 07 Nov 2017

                                Hi Kate,


                                We only see the issue on code coverage.  We can reproduce the error. Refreshing doesn't fix , we get an 0 out of 1 errors or 0 out of 2 errors...



                                #16

                                kate.dulko

                                  Posted 07 Nov 2017

                                  Hi Colton,


                                  Thank you for your response.


                                  Just to clarify if I understood properly: the class file with the name B stays in the Code Coverage panel with the incorrect name A after refreshing the list in the ID.


                                  May I please ask you to send us a screenshot or screen-video how the issue is reproduced for you? Of course, if this is acceptable for you. You can send it to info@welkinsuite.com or to my email - kate.dulko@welkinsuite.com.


                                  Thank you,

                                  Kate



                                  Kate Dulko
                                  Customer Relations

                                  The Welkin Suite

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

                                   

                                    


                                  #17

                                  kate.dulko

                                    Posted 30 Nov 2017

                                    Hi Colton,


                                    Thank you for your letter and for the screenshot.


                                    Actually, the reason for the issue when you don't see the Code Coverage coloring is exactly the case when there are duplicated files in the list. And we see this on the screenshot you've sent.

                                    Now we will try to understand what causes such behavior.


                                    First of all, may I please ask you to check if there are the same duplicated files in the list of Code Coverage in the Developer Console? 

                                    If yes, please open each of them and check if these files have the same ID. You can check it in the Developer Console also.


                                    Also, can you please let me know if you used sorting by Name in the Code Coverage list in TWS?


                                    Thank you for your collaboration. This information will help us to find a way to solve the issue.


                                    Regards,

                                    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