Pylint does not work with pylint version 0.26
from pylint.pkginfo import numversion print numversion (0, 26, 0)
2013-09-28 13:59:29,319: INFO : client requests: run_linter_pylint 2013-09-28 13:59:29,891: ERROR : invalid literal for int() with base 10: '105,4' 2013-09-28 13:59:29,891: DEBUG : ['Traceback (most recent call last):', ' File "/home/flo/.config/sublime-text-3/Packages/Anaconda/anaconda_server/commands/pylint.py", line 29, in run', ' self.filename, self.rcfile).parse_errors(),', ' File "/home/flo/.config/sublime-text-3/Packages/Anaconda/anaconda_lib/../anaconda_server/../anaconda_lib/linting/anaconda_pylint.py", line 95, in parse_errors', " 'line': int(line),", "ValueError: invalid literal for int() with base 10: '105,4'"] 2013-09-28 13:59:29,904: ERROR : ValueError("invalid literal for int() with base 10: '105,4'",) is not JSON serializable
Output of pylint (version 0.26) is of type: W1201: 70,12:PyLinter.parse_errors: Specify string format arguments as logging function parameters
In anaconda_pylint.py line 80, "line" need to be splitted into "line" and "offset"
I can't reproduce it.
$ pip search pylint pylint - python code static checker INSTALLED: 0.26.0 LATEST: 1.0.0
$ tail -f .cache/jedi/anaconda/anaconda_jsonserver.log 2013-09-29 13:14:37,364: INFO : Incomming connection from ('127.0.0.1', 52872) 2013-09-29 13:14:41,130: INFO : client requests: run_linter 2013-09-29 13:15:11,572: INFO : client requests: run_linter_pylint 2013-09-29 13:15:59,367: INFO : client requests: run_linter 2013-09-29 13:16:00,605: INFO : client requests: run_linter 2013-09-29 13:16:59,044: INFO : client requests: run_linter 2013-09-29 13:17:01,440: INFO : client requests: run_linter 2013-09-29 13:17:08,248: INFO : client requests: run_linter 2013-09-29 13:17:16,573: INFO : client requests: run_linter_pylint 2013-09-29 13:17:18,182: INFO : client requests: run_linter_pylint 2013-09-29 13:17:46,903: INFO : client requests: run_linter_pylint 2013-09-29 13:17:48,010: INFO : client requests: run_linter_pylint
I tried on an other system: ubuntu 12.04, pylint 0.25.0, same issue. If I run pylint manually with the same option as anaconda, I get:
from pylint import lint file = "/home/flo/Developpement/Workspace/wds/wds/wds.py" args = [file, "--include-ids=y","-r","n"] lint.Run(args) No config file found, using default configuration ************* Module wds C0301: 34,0: Line too long (112/80) C0301:105,0: Line too long (92/80) C0301:122,0: Line too long (124/80) [...]
Lines are then process in anconda like that: code, line, message = error.split(':', 2) [...] errors[self._map_code(code)[0]].append({ 'line': int(line), [...]
No way this gona work with the type of output I get from pylint,
Could be the version of pylint that I have from the ubuntu repo ?