wakatime / visualstudio-wakatime

Visual Studio plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/visual-studio
BSD 3-Clause "New" or "Revised" License
334 stars 62 forks source link

WakaTime is not working on VS 2022 Professional #143

Closed qianyanglm closed 1 year ago

qianyanglm commented 1 year ago

win10 This problem has a long time ,Please how much time does writer will solve this problem Please?

alanhamlett commented 1 year ago

Are you using this version of the extension?

https://marketplace.visualstudio.com/items?itemName=WakaTime.WakaTime-2022

qianyanglm commented 1 year ago

yes, it is 13.0.2 .sometimes it works ,soemtimes it doesnot work

alanhamlett commented 1 year ago

What happens when it doesn't work?

qianyanglm commented 1 year ago

This is the error:

[WakaTime HandledException 09:22:55 AM] Error installing dependencies: System.Threading.Tasks.TaskCanceledException: 已取消一个任务。
   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 WakaTime.Shared.ExtensionUtils.Dependencies.<DownloadFile>d__22.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 WakaTime.Shared.ExtensionUtils.Dependencies.<InstallCli>d__11.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 WakaTime.Shared.ExtensionUtils.Dependencies.<CheckAndInstallCli>d__9.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 WakaTime.Shared.ExtensionUtils.Dependencies.<CheckAndInstall>d__8.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 WakaTime.Shared.ExtensionUtils.WakaTime.<InitializeAsync>d__13.MoveNext()
alanhamlett commented 1 year ago

Can you try using a VPN when starting Visual Studio? It looks like a networking problem when the extension is trying to download wakatime-cli from GitHub.

qianyanglm commented 1 year ago

Thank you!!! I used VPN ,Now it works,thank you very much. I love it