Giter VIP home page Giter VIP logo

visualstudio-wakatime's Introduction

WakaTime for Visual Studio

Build Status Coding time tracker

Visual Studio extension to quantify your coding using https://wakatime.com/.

Installation

  1. Inside Visual Studio, navigate to ExtensionsManage Extensions...
  2. Click the Online category at the left, then search for wakatime.
  3. Click the Download button, then click Install.
  4. Click the Restart Now button.
  5. Enter your api key, then press enter.
  6. Use Visual Studio and your coding activity will be displayed on your WakaTime dashboard.

Screen Shots

Project Overview

Supported Visual Studio Editions

  • Visual Studio 2015 (supported by v13.3.0 and earlier)
  • Visual Studio 2017
  • Visual Studio 2019
  • Visual Studio 2022

Visual Studio for Mac

Visual Studio for Mac is supported with the WakaTime for Monodevelop extension.

Visual Studio Express

Microsoft does not allow extensions for Visual Studio Express edition in the gallery. To use WakaTime for Visual Studio Express, download and install WakaTime for Express.

Alternatively, you may clone the github repo and build the extension using the Express build profile. The resulting bin/Express/WakaTime.vsix extension file will install into Visual Studio Express when run.

Contributing

Pull requests and issues are welcome! The main thing to know is we require specific branch name prefixes for PRs:

  • ^major/.+ - major
  • ^feature/.+ - minor
  • ^bugfix/.+ - patch
  • ^docs?/.+ - build
  • ^misc/.+ - build

To open and build this project, please use Visual Studio 2019.

For debugging, configure the product to open in a new Visual Studio instance:

  1. Open the project properties (ALT + ENTER)
  2. In the Debug tab, set to Start external program. e.g: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe
  3. Add command line arguments: /rootsuffix Exp
  4. Change the solution according to the version of Visual Studio you're targeting:
  • Release - Visual Studio 2015+

Note: The Debug solution is only for including debugger symbols.

Troubleshooting

Look for a ToolsWakaTime Settings menu in Visual Studio. If that menu doesn't exist, something prevented the WakaTime extension from loading.

Turn on debug mode from ToolsWakaTime Settings.

Are there error messages in your Visual Studio Output window?

Open the Output window from ViewOutput (ctrl + alt + O).

Output Window

If there are no messages in your Visual Studio Output window, check your .wakatime.log file:

C:\Users\<user>\.wakatime.log

Lastly, uncaught exceptions go to ActivityLog.xml. Uncaught exceptions are rare, so check your ActivityLog.xml only after checking your Output Window and .wakatime.log file.

The How to Debug Plugins guide shows how to check when coding activity was last received from your IDE using the User Agents API. For more general troubleshooting info, see the wakatime-cli Troubleshooting Section.

visualstudio-wakatime's People

Contributors

alanhamlett avatar chenecharry avatar davidgabrichidze avatar gandarez avatar jasonwei512 avatar jerone avatar lamrongol avatar mattlebrao avatar stelzi79 avatar yyjdelete avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

visualstudio-wakatime's Issues

offline / sync does not always work

visual studio 2015 community

Is there a way to trace the plug or easily access the wakatime.db?
I guess if the date stamp of the .db file is later than last work there is probably nothing to sync?

System.Runtime.InteropServices.COMException at EnvDTE._DTE.get_Solution()

I'm using VS2013 Premium, WakaTIme plugin version 5.0.4.
Besides ticket #26, this exception is still popping up and killing Visual Studio. I'm working on WPF application, and when I'm in the designer and I'll try to use scrollbars to move around the designer's view, 💥 , Visual Studio dies. If I take a look into event log, I see this:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
Stack:
at EnvDTE._DTE.get_Solution()
at WakaTime.WakaTimePackage.GetProjectName()
at WakaTime.WakaTimePackage.SendHeartbeat(System.String, Boolean)
at WakaTime.WakaTimePackage+<>c__DisplayClass3.b__2()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

Visual Studio Express 2015 for Desktop

WakaTime-express-v8.0.5.vsix
Wont install on Visual Studio Express 2015 for Desktop

Error Log

- Visual Studio MPF
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CheckForInstallBlockers(InstallableExtensionImpl extension, IInstalledExtensionList modifiedInstalledExtensionsList, Boolean isNestedExtension, Boolean& olderVersionInstalled)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallInternal(InstallableExtensionImpl extension, Boolean perMachine, Boolean isNestedExtension, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, UInt64 totalBytesToWrite, UInt64& totalBytesWritten, Boolean enforceCertificateCheckForUpgrade)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp, Boolean enforceCertificateCheckForUpgrade)
   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp, Boolean enforceCertificateCheckForUpgrade)

System.Runtime.InteropServices.COMException at EnvDTE._DTE.get_Solution()

arfmach wrote at https://visualstudiogallery.msdn.microsoft.com/ca0ea1f3-e824-4586-a73e-c8e4a65323d8/view/Discussions:

This is happening a lot and making VS2013 Community crash and be forced to close.

Exception Type       : System.Runtime.InteropServices.COMException
Exception Message    : O filtro de mensagens indicou que o aplicativo está ocupado. (Exceção de HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
Exception Stack Trace:    at EnvDTE._DTE.get_Solution()
   at WakaTime.WakaTimePackage.GetProjectName()
   at WakaTime.WakaTimePackage.SendHeartbeat(String fileName, Boolean isWrite)
   at WakaTime.WakaTimePackage.<>c__DisplayClass3.<HandleActivity>b__2()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Exception Error Code : -2147417846
Exception Data   : [EmptyOrNull]

Every VS Solution I open requires me to install python

I'm not positive this is an issue but my understanding is that I'm meant to install python once in the root directory of windows and then Wakatime should just work without any extra setup but as it stands it keeps requiring me to have python installed in the same place. Did I mess something up with the install?

Unable to install Python through dialog prompt

I just did a clean install of VS 2015 and installed Wakatime 6.0.0 on Windows 10. After clicking "Yes" on the prompt to install Python, nothing appeared to happen for about 10 seconds. Then a window flashed briefly on the screen, followed by a Windows Installer error "This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package."

Wakatime freezes visual studio 2013

I'm having two issues, which may or may not be related.

  1. I have a code project that builds a DLL and then launches an outside exe to run and load the DLL. For this solution in particular (does not happen in all my solutions) whenever i try to localy debug my code, as soon as the external exe starts to run (has not loaded my DLL yet) visual studio freezes and will not respond, even if i close the launched program. As soon as I disable wakatime, it no longer freezes.

2)Occasionally, if i have multiple solutions open, one of them will freeze in the same manner suggested above; the program will not respond to any command and must be force closed and restarted.

very long vs starting time with extension on

i now have not very fast (i'm even not saying slow) internet connection and my visual studio starts like minute or so.
and when it starts in exposes no life signs, so i sometime doubt i'd ran it and run it once again for that reason. as a result have two VSs opened.

i've found that it is because it doing something in codeload.github.com. updating, likely. and i figured out, that it is this extension, that doing this.

i suppose, even on good internet connection it adds several seconds to start up time, which is no good at all.
what' more strange, it downloads something every time. i doubt that the new version comes out every few minutes..

i'm forced to switch this off, unfortunately.

if you are not planning to fix it, at least add info to description somewhere in order to not confuse users.

error messages in ActivityLog.xml

# | Type | Description | GUID | Hr | Source | Time (UTC)
530 | ERROR | CreateInstance failed for package [Main] | {52D9C3FF-C893-408E-95E4-D7484EC7FA47} | 80070002 | VisualStudio | 2015/05/11 14:45:27.475
531 | ERROR | End package load [Main] | {52D9C3FF-C893-408E-95E4-D7484EC7FA47} | 80004005 - E_FAIL | VisualStudio | 2015/05/11 14:45:27.475

Wakatime is trying to install python

This happens every time my colleague launches Visual Studio after installing the Wakatime extension.

Appears to be doing an unattended install of Python 3.4.3, which is already installed. As pip already exists in the path (from Python 2), the MSI installer fails and rolls back. The plugin works, but it's annoying this happens every time he starts VS

image

Reloading solution hangs Visual Studio

When I switch branch (using git) on project opened in Visual Studio 2013, Wakatime makes Visual Studio hang by spawing ~20-30 python (wakatime-cli) instances.

Reproduction steps:

  • Open versioned project in VS2013
  • Open a few files which will differ in the new branch
  • Switch branch
  • In visual studio hit "Reload all"
  • Open process manager and see all the python instances

no way to Enter API key

qq 20160803230958
there is no api key put in when i restart Visual Studio,and its always Initializing.how can i deal it

Visual Studio Express 2013 for Web

I tried to install the extension for VS Express 2013 from here: https://github.com/wakatime/visualstudio-wakatime/releases/tag/8.0.6
It didn't work because of the dependency on Visual Studio MPF 11.0. This is the extension.vsixmanifest I found insized the WakaTime-express-v8.0.6.vsix archive:

<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
  <Metadata>
    <Identity Publisher="WakaTime" Version="8.0.6" Id="52d9c3ff-c893-408e-95e4-d7484ec7fa47" Language="en-US" />
    <DisplayName>WakaTime</DisplayName>
    <Description xml:space="preserve">Metrics, insights, and time tracking automatically generated from your programming activity.</Description>
    <MoreInfo>https://github.com/wakatime/visualstudio-wakatime</MoreInfo>
    <License>LICENSE.txt</License>
    <Icon>Resources\wakatime-120.png</Icon>
    <PreviewImage>Resources\Screen-Shot-2016-03-21.png</PreviewImage>
    <Tags>analytics, metrics, time tracking, productivity, reports</Tags>
  </Metadata>
  <Installation>
    <InstallationTarget Version="[11.0,16.0)" Id="Microsoft.VisualStudio.VSWinExpress" />
    <InstallationTarget Version="[11.0,16.0)" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />
    <InstallationTarget Version="[11.0,16.0)" Id="Microsoft.VisualStudio.VPDExpress" />
    <InstallationTarget Version="[11.0,16.0)" Id="Microsoft.VisualStudio.VWDExpress" />
  </Installation>
  <Dependencies>
    <Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" />
    <Dependency Id="Microsoft.VisualStudio.MPF.11.0" DisplayName="Visual Studio MPF 11.0" Version="[11.0]" />
  </Dependencies>
  <Assets>
    <Asset Type="Microsoft.VisualStudio.VsPackage" Path="WakaTime.pkgdef" />
  </Assets>
  <Prerequisites>
    <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
  </Prerequisites>
</PackageManifest>

I removed this line and it was installed (is the dependency not really needed?):

<Dependency Id="Microsoft.VisualStudio.MPF.11.0" DisplayName="Visual Studio MPF 11.0" Version="[11.0]" />

Nevertheless, when I launched VS Express 2013 it displayed an error message saying that the newly installed package cannot work properly. I checked ActivityLog.xml and I found this (52D9C3FF-C893-408E-95E4-D7484EC7FA47 is the extension's GUID as you can see above):

  <entry>
    <record>61</record>
    <time>2017/01/17 10:39:40.504</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{52D9C3FF-C893-408E-95E4-D7484EC7FA47}</guid>
  </entry>
  <entry>
    <record>62</record>
    <time>2017/01/17 10:39:40.504</time>
    <type>Warning</type>
    <source>Microsoft Visual Studio Appid Stub</source>
    <description>Missing/invalid &apos;CompanyName&apos; field in package registry</description>
    <guid>{52D9C3FF-C893-408E-95E4-D7484EC7FA47}</guid>
  </entry>
  <entry>
    <record>63</record>
    <time>2017/01/17 10:39:40.504</time>
    <type>Warning</type>
    <source>VisualStudio</source>
    <description>Appid denied the loading of package</description>
    <guid>{52D9C3FF-C893-408E-95E4-D7484EC7FA47}</guid>
  </entry>

I couldn't find any reference to the CompanyName field online, but I guess it has something to do with the manifest of the package.

Thank you.

Support file paths with unicode characters

Editing a file in Visual Studio with unicode chars in the path causes that coding activity to be lost. The plugin is probably not correctly encoding file paths when executing wakatime cli and the incorrect file path does not exist on disc, so is ignored.

Support for unicode file paths was added to wakatime-cli with wakatime/wakatime#32, so it should work if we encode the file correctly as utf8 when executing wakatime-cli:

Doesn't ask for api key on VS 2015 Enterprise, setting don't show

Getting this message in output, and nothing else ever happens. Wakatime Settings won't open.

[Wakatime Info 10:55:17 AM] Initializing WakaTime v7.0.2
[Wakatime Info 10:55:18 AM] Current wakatime-cli version is 4.1.13
[Wakatime Info 10:55:18 AM] Checking for updates to wakatime-cli...
[Wakatime Warning 10:55:19 AM] Couldn't auto resolve wakatime cli version
[Wakatime Info 10:55:19 AM] Found an updated wakatime-cli v

Visual studio express 2012 cannot install

i download wakatime for vs express v8.0.5.vsix, but installed fail. the error info:

2016/12/19 6:22:02 - 正在开始将扩展安装到 Microsoft Visual Studio Express 2012 for Windows Desktop...
2016/12/19 6:22:02 - 安装错误: Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: 无法安装此扩展,因为缺少以下引用:
- Visual Studio MPF
   在 Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CheckForInstallBlockers(InstallableExtensionImpl extension, IInstalledExtensionList modifiedInstalledExtensionsList, Boolean isNestedExtension, Boolean& olderVersionInstalled)
   在 Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallInternal(InstallableExtensionImpl extension, Boolean perMachine, Boolean isNestedExtension, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, UInt64 totalBytesToWrite, UInt64& totalBytesWritten)
   在 Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp)
   在 Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)

Visual Studio 2017 extension is not logging or reporting time

I am unable to get WakaTime extension for VS 2017 to log or report time. I have also installed the extension for VS Code and that is working correctly.

The extension has installed correctly (or so it appears).
The output window for WakaTime does not indicate that there is anything wrong.
The API key has been added and it shown in the wakatime.cfg file
In the wakatime.log file there are entries for VS Code but not for Visual Studio.
ActivityLog.xml also does not indicate anything is wrong.

Any other suggestions on what i should be looking at to fix?

Thanks,

Waketime does not work on all network

I have wake time installed as a plugin to my Visual studio 2012. I see that it logs my activity only when I am connected to internet from home. It does not logs anything when I connected via office internet.

Problem installing Plugin for Visual Studio 2010

Hi I have problems installing the plugin in VS2010 .
I installed the plugin following the instructions where VS restarts it reports an error
I started VS2010 with the /log option and checked the activitylog.xml file
I noticed that the plugin can't start because it's looking for Microsoft.VisualStudio.Shell.11.0 which apparently is missing.

Any help would be aprriciated

Proxy Settings not working on visual studio

I keep getting below error irrespective of my proxy settings in $HOME/.wakatime.cfg file, other editors (emacs and atom) work fine without any proxy settings except visual studio. $HOME/.wakatime.log doesn't contain any logs related to visual studio related. Error details are below

[WakaTime Debug 10:24:13 AM] Downloading wakatime-cli...
[WakaTime Debug 10:24:13 AM] No proxy will be used. It's either not set or badly formatted.
[WakaTime HandledException 10:24:13 AM] Are you behind a proxy? Try setting a proxy in WakaTime Settings with format https://user:pass@host:port. Exception Traceback:: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
   at System.Net.WebClient.DownloadFile(Uri address, String fileName)
   at System.Net.WebClient.DownloadFile(String address, String fileName)
   at WakaTime.Dependencies.DownloadAndInstallCli()
   at WakaTime.WakaTimePackage.InitializeAsync()
[WakaTime Info 10:24:13 AM] Finished initializing WakaTime v8.0.6

Am I missing anything obvious here?

Can't specify proxy

Please add support for proxy. Proxy with username and password. Currently this extension throws exception at start if proxy is required.

Maybe some modal dialog, would be great.

VS2012 crashes with last update (installed 08/24)

I installed the plugin a time ago and VS2012 noticed me for a new update of the Wakatime plugin. I installed it and I had to disable it because with the latest update VS crashes.

Environment:

  • VM running on Mac
  • VM specs:
    • Win server 2008 R2 SP1
    • 8GB
    • 2 cores (from i7)
    • VS2012 Pro Update 4

VS 2015 in Parallels VM Freezing

When I use WakaTime plugin with Visual Studio 2015 Enterprise inside a Parallels 11 VM it will freeze Visual Studio. I haven't quite determined the exact steps to reproduce this. It consistently happens after the computer goes to sleep. It will also happen if I don't focus on the Visual Studio window for a while. I thought that maybe it was my VM. So I installed visual studio from scratch and worked with it and had no problems. As soon as I installed the WakaTime plugin through the extensions manager the problem occurred again.

Error when starting in VS 2017 and no time is logged

Hi

I am facing an issue with the wakatime VS2017 extension the following error occurs upon starting the IDE and no time is logged.

[WakaTime Info 10:42:59 AM] Initializing WakaTime v8.0.6
[WakaTime Info 10:43:00 AM] Current wakatime-cli version is 8.0.3
[WakaTime Info 10:43:00 AM] Checking for updates to wakatime-cli...
[WakaTime HandledException 10:43:21 AM] Exception when checking current wakatime cli version: : System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 90.207.238.183:443
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   at System.Net.WebClient.DownloadString(Uri address)
   at System.Net.WebClient.DownloadString(String address)
   at WakaTime.Constants.<>c.<.cctor>b__8_0()
[WakaTime Info 10:43:21 AM] Found an updated wakatime-cli v
[WakaTime Info 10:43:27 AM] Finished initializing WakaTime v8.0.6

Let me know if you need any more information

Python appears called for every file, and stays in memory

I was diagnosing some issues on my project in Process Explorer, when I noticed a good number of "pythonw.exe" processes running. The command lines are pretty much all the same, except for the "file" argument. Even after closing the files from within Visual Studio, the processes remained. I then quit Visual Studio (single instance this time), and the processes remain.

I've attached 2 screenshots of Process Explorer, showing the process tree. It can be seen when VS is running, that there are child processes to it. There were also already "orphan" processes. After exiting VS, more orphan processes are left behind.

With Visual Studio still running, processes children of devenv.exe
VS Running

After exiting Visual Studio, processes running, but orphaned
VS Exited

Not working on 2013

I installed like the readme says, the plugin starts, asks me for the API key but does not track anything.

Thanks!

Prompt to install Python appears behind VS window

I just did a clean install of VS 2015 and installed Wakatime 6.0.0. After the restart required by installing the extension, nothing appeared to have happened. Looking closer, I could see that there was a second VS window hidden behind the main window - the dialog that prompts to download and install Python. It would be nice to have this in the foreground after the VS restart.

Support for Visual Studio 2013

Been trying to get this to work for a couple of weeks now on Visual Studio 2013 Ultimate and it's still not working. Currently running the 3.0 plugin which has been uninstalled/re-installed and still not seeing it working. .wakatime.log, .wakatime.db, .wakatime.cfg files are reside in C:\Users"username" directory and log file is blank. .wakatime.cfg just shows my API key. Would like to really look deeper into using this plugin, but need assistance. Thanks.

Wakatime doesn't work on my visual studio2012.

#37 It doesn't work again.

I remove all wakatime files in my computer. Install wakatime again, after restart, Have no place to enter API key.
Moreover, Notepad++,Vim,Sublime text3 cannot waketime normal running. There are many errors in vim about python. Even if I have update the 2.7.9 python.

Can't install your extension in new VS"15"Preview

Hi,

Installed product versions

  • Visual Studio: [15 Preview]

Description

At build 2016 Microsoft released Visual Studio 15 Preview.
There are some extensions that work there, but some that are not even searchable in "Extensions and Updates". Yours is one of those that are not searchable and not installable.

Steps to recreate

  1. Install Visual Studio 15 Preview: https://www.visualstudio.com/en-us/downloads/visual-studio-next-downloads-vs.aspx (Visual Studio "15" Preview with new installer)
  2. Open VS15Preview
  3. Open Extensions and Updates
  4. Click on Online in the menu
  5. Search for WakaTime
  6. Your extension doesn't pop up

Current behavior

Your extension is not searchable in new Visual Studio 15 Preview

Expected behavior

Your extension should or could be also in VS15Preview :)

Steps to fix

As I am writing this, one of other extension makers already fixed this issue for his extension here:
cpmcgrath/codealignment#43

You only need to add these:

<VisualStudio Version="15.0">
    <Edition>Pro</Edition>
    <Edition>Community</Edition>
</VisualStudio>

into your .vsixmanifest file into section <SupportedProducts> and it should work. :)

Regards.

WakaTime asks for API key every start of VS15Preview

Hi,
so I have installed VS2015Update2 and also VS15Preview.
When I try anything (delete .wakatime.* in ~; uninstall and install wakatime extension; restart VS2015Update2) VS2015Update2 works like a charm.
But when I try all of mentioned above in VS15Preview, every time I start VS15Preview I get window to enter API key, where there is my API key already inserted. See here:
image
I tried to enable debugging, if something would show in the .wakatime.log, but there is nothing from inicialization of key. Here is the Wakatime output from Output window in VS15Preview:

[Wakatime Info 05:20:28 PM] Please input your api key into the wakatime window.
[Wakatime Info 05:20:28 PM] Initializing WakaTime v7.0.2
[Wakatime Debug 05:20:28 PM] Python found from embedded location: C:\Users\Jakub\python\pythonw
[Wakatime Info 05:20:28 PM] Current wakatime-cli version is 4.1.13
[Wakatime Info 05:20:28 PM] Checking for updates to wakatime-cli...
[Wakatime Debug 05:20:28 PM] No proxy will be used. It's either not set or badly formatted.
[Wakatime Info 05:20:29 PM] wakatime-cli is up to date.
[Wakatime Info 05:20:29 PM] Finished initializing WakaTime v7.0.2

If you need any more information, I am happy to help.

Edit: So it started to asking for API key in VS2015Update2 also :/

Not working on system with some special encoding.

language:zh-cn, default encoding: GBK

[Wakatime Debug 10:46:44 上午] ["C:\Python34\pythonw", "C:\Users\**\AppData\Roaming\Microsoft Corporation\Microsoft® Visual Studio® 2015\14.0.23107.0\wakatime-master\wakatime\cli.py", --key", ******", --file", ******.cs", --plugin", visualstudio/14.0 visualstudio-wakatime/5.0.6", --project", EapolLogin"]
[Wakatime Debug 10:46:44 上午] CLI STDOUT: 
[Wakatime Debug 10:46:44 上午] CLI STDERR: Traceback (most recent call last):
  File "<encoding error>", line 15, in <module>
ImportError: No module named 'wakatime'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.