Closed JWhiteUX closed 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.
Same thing here. I''ve been testing all day long and there is still no data. Using Sketch 3.8.3 (29802).
Sketch - Version 3.8.3 (29802)
Will add that debug line
Added that line, and restarted sketch. No dice.
When you search for sketch
in your Console app, do you see any WakaTime related messages?
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$
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.
I let it run a while, and it logged a bunch of output.
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
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
Looks like the plugin is working! Thank you!
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