1

Has anyone managed to get the wakatime plugin to work in Wing Pro 10?

Hi, I have several projects in Wing that I need to keep time details recorded for billing. Has anyone managed to get the wakatime plugin to work in Wing, any version? It works in Notepad++ ok and I see NP++ in the logs but after installing wakatime according to their instructions nothing shows up in the logs even with debug enabled, in either the wing or wakatime logs. I run the install, it says restart Wing and there's nothing in the Files or Tools menu, and nowhere to enter my API key. If you haven't managed to get this working either is there another time recording tool that works with Wing Pro?

Environment

  • Windows 11
  • Python 3. 10.11

-Wing Pro 10.0.4

sammies's avatar
36
sammies
asked 2024-05-14 09:57:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

It looks like the install script has not been updated for recent versions of Wing. You should be able to install it by running the install.py install script to get the wakatime cmd line .exe and then downloading the Wing extension script from https://raw.githubusercontent.com/wakat… & copying the file to the scripts subdirectory of your Wing settings directory listed in the about dialog box.

I was able to get the wakatime.py extension script to load and run the wakatime .exe but I wasn't able to go further without an apikey.

I will contribute fixes to the install.py file back to wakatime.

Wingware Support's avatar Wingware Support (2024-05-15 10:43:30 -0500) edit
add a comment see more comments

1 Answer

1

Note - this issue has been fixed on the wakatime Wing installer at https://github.com/wakatime/wing-wakati… as they have increased supported Wing all versions up to 99.


Thank you! The scripts folder had to be the /user/Appdata/Roaming location, not the Windows/Program Files/Wing 10 as provided in the About-Settings dir as you discovered!

Running the install gives a 304 on the API response as it's a proxy

[WakaTime] Current wakatime-cli version is v1.90.0
[WakaTime] Checking for updates to wakatime-cli...
[WakaTime] GitHub API Response 304
[WakaTime] wakatime-cli is up to date. Installed. You may now restart Wing.

This install doesn't add the wakatime.py file in the correct folder, so follow advice given by Support above. I had flagged this as an issue on Github repo but no response. There were a number of corrections to other supported IDE's but not Wing.

It now recognises my key and is working - thank you for your brilliant assistance and the solution.

I used wget for the python file for script - wget https://raw.githubusercontent.com/wakat… and just copied into Roaming script location, but curl works as well.

S

sammies's avatar
36
sammies
answered 2024-05-16 13:10:39 -0500, updated 2024-05-17 08:37:31 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer