wakatime / sketch-wakatime

Sketch plugin for automatic time tracking and metrics generated from your Sketch usage.
https://wakatime.com/sketch
BSD 3-Clause "New" or "Revised" License
62 stars 5 forks source link

Installed Plugin Using Sketch Toolbox - No Data for Today #1

Closed JWhiteUX closed 8 years ago

JWhiteUX commented 8 years ago

I started using this plugin maybe 15 - 20 mins ago and have not been able to test it's connection successfully. Is this normal behavior? I've tried using a different API Key as well.

I've restarted Sketch as well.

Late 2015 Macbook Latest El Capitan Latest Sketch etc etc

screenshot 2016-06-15 17 11 38
alanhamlett commented 8 years ago

Which version of Sketch are you using?

Can you add this line to ~/.wakatime.cfg: debug = true

Open the Console app, search for sketch, and restart Sketch app. Then change some selections in a drawing.

mathiasm commented 8 years ago

Same thing here. I''ve been testing all day long and there is still no data. Using Sketch 3.8.3 (29802).

JWhiteUX commented 8 years ago

Sketch - Version 3.8.3 (29802)

Will add that debug line

JWhiteUX commented 8 years ago
screenshot 2016-06-16 13 18 16

Added that line, and restarted sketch. No dice.

screenshot 2016-06-16 13 14 41
alanhamlett commented 8 years ago

When you search for sketch in your Console app, do you see any WakaTime related messages?

JWhiteUX commented 8 years ago

I need a little more context. When you say "console app" do you mean Terminal? Is there a specific location the debug info is saved to?

Output MacBook-Pro:~ justinwhite$ mdfind "sketch" MacBook-Pro:~ justinwhite$ mdfind "sketch" | grep WakaTime /Users/justinwhite/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Sketch Wakatime/WakaTime.sketchplugin /Users/justinwhite/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Sketch Wakatime/WakaTime.sketchplugin MacBook-Pro:~ justinwhite$

alanhamlett commented 8 years ago

The debug logs go to /var/log/system.log, but you should use the Console app (available in your Applications folder) to search the logs.

From Spotlight (CMD + Space) type console to find the Console app.

JWhiteUX commented 8 years ago

I let it run a while, and it logged a bunch of output. screenshot 2016-06-16 16 50 05

6/16/16 4:27:33.301 PM main (Sketch Plugin)[30574]: [WakaTime] [DEBUG] /usr/bin/python /Users/justinwhite/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Sketch Wakatime/WakaTime.sketchplugin/Contents/Resources/wakatime/cli.py --file /Users/justinwhite/Dropbox%20(DataScience)/Product%20Team/DS-Apps/Apps-and-Views/App-Data-Explorer/ds-app-aldrin2-wireframes.sketch --plugin sketch/3.8.3 sketch-wakatime/1.0.5

6/16/16 4:29:34.383 PM main (Sketch Plugin)[30574]: [WakaTime] [DEBUG] /usr/bin/python /Users/justinwhite/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Sketch Wakatime/WakaTime.sketchplugin/Contents/Resources/wakatime/cli.py --file /Users/justinwhite/Dropbox%20(DataScience)/Product%20Team/DS-Apps/Apps-and-Views/App-Data-Explorer/ds-app-aldrin2-wireframes.sketch --plugin sketch/3.8.3 sketch-wakatime/1.0.5

6/16/16 4:35:22.138 PM main (Sketch Plugin)[30574]: [WakaTime] [DEBUG] Skipping current drawing because not enough time passed:/Users/justinwhite/Dropbox%20(DataScience)/Product%20Team/DS-Apps/Apps-and-Views/App-Data-Explorer/ds-app-aldrin2-wireframes.sketch

alanhamlett commented 8 years ago

The %20 in the file path was causing the file to not be found by wakatime-cli, so url decoding the file path should have fixed this. Can you download the latest release and reinstall: https://github.com/wakatime/sketch-wakatime/releases/latest

JWhiteUX commented 8 years ago

Looks like the plugin is working! Thank you!

screenshot 2016-06-27 09 41 12