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

(subversion.py:75) list index out of range #28

Closed blomqvist closed 9 years ago

blomqvist commented 9 years ago

Hi,

I have had some issues with Wakatime not reporting anything since the 11:th of this month. I noticed this now so I'm afraid others might be having the same issue.

The error i .wakatime.log is

File "/Users/blomqvist/Library/Application Support/Sublime Text 3/Packages/WakaTime/packages/wakatime/wakatime/projects/subversion.py", line 75, in _get_info
    info[line[0]] = line[1]
IndexError: list index out of range

At line 75 we have info[line[0]] = line[1]. I think I fixed the error by inserting an if-statement above (sublime.py):

[...]
                    line = line.split(': ', 1)
                    if len(line) > 1:
                        info[line[0]] = line[1]
[...]

My output of svn info:

~/S/SNO2-416 $ svn info
Path: .
Working Copy Root Path: /Users/blomqvist/Sites/SNO2-416
URL: https://www.xyz.com/repos/svn-zyx/branches/SNO2-416
Relative URL: ^/branches/SNO2-416
Repository Root: https://www.xyz.com/repos/svn-zyx2
Repository UUID: cf3a2f34-bad1-dea-a2b1-dead4dead
Revision: 1307
Node Kind: directory
Schedule: normal
Last Changed Author: nblomqvist
Last Changed Rev: 1307
Last Changed Date: 2014-11-16 21:53:57 +0100 (Sön, 16 Nov 2014)

I am using Fish Shell (if it mathers) on OSX 10.9.

Thanks, Niklas

alanhamlett commented 9 years ago

Thanks! This is fixed in the latest release. It will take about 20 mins to update on Sublime Package Control.