Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load Wakatime in sql v19 error below #36

Open
RanjithGJ opened this issue Mar 26, 2024 · 8 comments
Open

Can't load Wakatime in sql v19 error below #36

RanjithGJ opened this issue Mar 26, 2024 · 8 comments
Assignees
Labels

Comments

@RanjithGJ
Copy link

The WakaTimePackage package did not load correctly

The problem may have been caused by a configuration change or by the installation of another extension.You can get more information by examining the file 'C:\user|Admin|AppData\Roaming|Microsoft|AppEnv|15.0|ActivityLog.xml'.
Restarting Visual Studio could help resolve this issue.
sql

@gandarez
Copy link
Member

Hi @RanjithGJ can you please attach the logs C:\user|Admin|AppData\Roaming|Microsoft|AppEnv|15.0|ActivityLog.xml here?

@RanjithGJ
Copy link
Author

RanjithGJ commented Mar 27, 2024

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:output method="html"  encoding="utf-16"/>
    <xsl:template match="activity">
        <head>
        <title>Activity Monitor Log</title>
        <style type="text/css">
            body{ text-align: left; width: 100%;  font-family: Verdana, sans-serif; }

            table{ border: none;  border-collapse: separate;  width: 100%; }

            tr.title td{ font-size: 24px;  font-weight: bold; }

            th{ background: #d0d0d0;  font-weight: bold;  font-size: 10pt;  text-align: left; }
            tr{ background: #eeeeee}
            td, th{ font-size: 8pt;  padding: 1px;  border: none; }

            tr.info td{}
            tr.warning td{background-color:yellow;color:black}
            tr.error td{background-color:red;color:black}
            
            span {text-decoration:underline}
            a:hover{text-transform:uppercase;color: #9090F0;}
        </style>
        </head>

        <body>      
        <table>
            <tr class="title">
                <td colspan="7">Activity Monitor Log</td>
            </tr>             
            <tr>
                <td colspan="2">infos</td>
                <td colspan="5"><xsl:value-of select="count(entry[type='Information'])"/></td>
            </tr>
            <tr>
                <td colspan="2">warnings</td>
                <td colspan="5"><xsl:value-of select="count(entry[type='Warning'])"/></td>
            </tr>
            <tr>
                <td colspan="2">errors</td>
                <td colspan="5"><xsl:value-of select="count(entry[type='Error'])"/></td>
            </tr>
            <tr>
                <th width="20">#</th>
                <th width="50">Type</th>
                <th>Description</th>
                <th width="280">GUID</th>
                <th>Hr</th>                
                <th>Source</th>
                <th>Time (UTC)</th>
            </tr>               
            <xsl:apply-templates/>
        </table>

        </body>
    </xsl:template>

    <xsl:template match="entry">
        <!-- example 
        
          <entry>
            <record>136</record>
            <time>2004/02/26 00:42:59.706</time>
            <type>Error</type>
            <source>Microsoft Visual Studio</source>
            <description>Loading UI library</description>
            <guid>{00000000-0000-0000-0000-000000000000}</guid>
            <hr>800a006f</hr>
            <path></path>
        </entry>
        
        -->
        <xsl:choose>

            <xsl:when test="type='Information'">
                    <tr id="info" class="info">
                        <td><xsl:value-of select="record"/></td>
                        <td></td>
                        <xsl:call-template name="row"/>
                    </tr>                
            </xsl:when>                

            <xsl:when test="type='Warning'">
                    <tr id="warning" class="warning">
                        <td><xsl:value-of select="record"/></td>
                        <td>Warning</td>
                        <xsl:call-template name="row"/>
                    </tr>                
            </xsl:when>             

            <xsl:when test="type='Error'">
                    <tr id="error" class="error">
                        <td><xsl:value-of select="record"/></td>
                        <td>ERROR</td>
                        <xsl:call-template name="row"/>
                    </tr>                
            </xsl:when>                

        </xsl:choose>  

    </xsl:template>
    
    <xsl:template name="row">
                <td id="description"><xsl:value-of select="description"/><xsl:if test="path"><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<xsl:value-of select="path"/></xsl:if></td>
                <td id="guid"><xsl:value-of select="guid"/></td>    
                <td id="hr"><xsl:value-of select="hr"/></td>    
                <td><xsl:value-of select="source"/></td>    
                <td><xsl:value-of select="time"/></td>
    </xsl:template>            

</xsl:stylesheet>

@gandarez
Copy link
Member

It doesn't really help much there's no detailed log there. I'll try to debug on my side.

@gandarez
Copy link
Member

@RanjithGJ I couldnt reproduce it here using the same version distributed in this release. Can you double check if you followed exactly this instructions and copied the right folder?

For SSMS v19:
Copy the folder WakaTime.v18 to the desired installation folder:
C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Common7\IDE\Extensions\

@gandarez gandarez added question and removed bug labels Mar 28, 2024
@RanjithGJ
Copy link
Author

@gandarez ,Thank you for your guidance. Despite ensuring that I copied the folder to the correct path as instructed, I continue to encounter the same error mentioned previously. I have attached the folder path for your reference.

Your assistance in resolving this matter would be greatly appreciated.
wakatime_error

@andrewp74
Copy link

Hi @gandarez do you have any joy in resolving this issue? We are experiencing the same problem.

@RanjithGJ RanjithGJ closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@RanjithGJ RanjithGJ reopened this May 13, 2024
@RanjithGJ
Copy link
Author

Till now not resolved?

@RanjithGJ RanjithGJ closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
@RanjithGJ RanjithGJ reopened this Jul 11, 2024
@RanjithGJ
Copy link
Author

Till now not resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants