wakatime / sublime-wakatime

Sublime Text 2 & 3 plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/sublime-text
BSD 3-Clause "New" or "Revised" License
525 stars 47 forks source link

my time is not logged on os windows 8 #47

Closed jetfire21 closed 9 years ago

jetfire21 commented 9 years ago

I used before os windows 7 and wakatime there worked perfectly,but recently I started using os windows 8,there I install wakatime for sublime text and nonotepad++,but my time is not logged,I've tried everything:reinstalled several times,I wanted to see wakatime.log,but this file was not in the directory, rechecked python...all rdid not help :((

alanhamlett commented 9 years ago

First, glance over this: https://github.com/wakatime/wakatime#troubleshooting (the parts about turning on debug mode, and checking the ~/.wakatime.log, Notepad++ log file, and Sublime Text console window for errors)

Then turn on debug mode in Sublime text from your User settings file, and in Notepad++ from your ~/.wakatime.cfg file and look for error messages.

On windows, problems usually revolve around Python so can you type python --version from a cmd prompt?

jetfire21 commented 9 years ago

~/.wakatime.cfg contain: [settings] debug = true hidefilenames = true api_key=XXXX offline = true

and file ~/.wakatime.log no exist in directory

python version 3.4.3

alanhamlett commented 9 years ago

Do you have 2 WakaTime accounts? This account has never received a heartbeat, so you must have used a different account previously.

You should generate a new api key at https://wakatime.com/settings because you've shared it publicly here.

Do you have any errors in your AppData\Roaming\Notepad++\plugins\config\WakaTime.log file?

jetfire21 commented 9 years ago

I registered a new account and for notepad++ now great time logged,but for sublime-text nothing logged...in file $home/.wakatime.log only data for notepad++...here last line: {"now": "2015/06/24 14:29:40 RTZ 2 (\u00e7\u00e8\u00ec\u00e0)", "version": "4.0.16", "plugin": "notepadpp/393290 notepadpp-wakatime/2.0.0", "time": 1435145378.037707, "caller": "D:\Program Files (x86)\Notepad++\plugins\Config\wakatime-master\wakatime\base.py", "lineno": 392, "file": "e:\test.php", "level": "DEBUG", "message": {"response_code": 201}} {"now": "2015/06/24 14:29:41 RTZ 2 (\u00e7\u00e8\u00ec\u00e0)", "version": "4.0.16", "plugin": "notepadpp/393290 notepadpp-wakatime/2.0.0", "time": 1435145379.435901, "caller": "D:\Program Files (x86)\Notepad++\plugins\Config\wakatime-master\wakatime\base.py", "lineno": 392, "isWrite": true, "file": "e:\test.php", "level": "DEBUG", "message": {"response_code": 201}}

alanhamlett commented 9 years ago

Only use one account. Delete your extra account and make sure your api key is using the correct account, because the plugins share the same config file so you can only log time to a single account.

Your Notepad++ plugin is working. Now check the Sublime Text console after deleting your extra account.

jetfire21 commented 9 years ago

I now have only one account, I solved the problem..installed the new version of sublime text 3 and it worked! :) thanks for the replies

alanhamlett commented 9 years ago

Awesome, glad it's working!