Re: run pylint in leo-editor UnicodeDecodeError

2016-10-17 Thread Edward K. Ream
On Sun, Oct 16, 2016 at 8:41 PM, zhaohe wang wrote: > > > Found it !!! > ​​ > Line 207 in pylint-leo-rc-ref.txt > You

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-16 Thread zhaohe wang
Found it !!! Line 207 in pylint-leo-rc-ref.txt You committed on 29 Feb. I changed the test py codes below. Add codecs.utf_8_decode(line),

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-16 Thread Edward K. Ream
On Sunday, October 16, 2016 at 10:16:04 AM UTC-5, zhaohe wang wrote: Would you tell me which line like plain ascii? > error == [], when I run your script both wiht pylint-leo-rc.txt and my py > file. > Hmm. It looks like all the lines of these two files are ascii. So it's even more of a

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-16 Thread zhaohe wang
Would you tell me which line like plain ascii? error == [], when I run your script both wiht pylint-leo-rc.txt and my py file. 在 2016年10月16日星期日 UTC+8上午9:10:38,Edward K. Ream写道: > > > On Fri, Oct 14, 2016 at 6:16 AM, zhaohe wang > > wrote: >> >>> Leo 5.4-devel, build

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-15 Thread Edward K. Ream
> On Fri, Oct 14, 2016 at 6:16 AM, zhaohe wang wrote: > >> Leo 5.4-devel, build 20160722143100, Fri, Jul 22, 2016 2:31:00 PM >> Git repo info: branch = master, commit = cb40bc3b4ca7 >> Python 2.7.12, PyQt version 4.8.7 >> linux2 >> pylint: keyLog.py >> Traceback (most

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-14 Thread Edward K. Ream
On Friday, October 14, 2016 at 12:32:25 PM UTC-5, Edward K. Ream wrote: On Fri, Oct 14, 2016 at 6:16 AM, zhaohe wang wrote: > >> u'@first # -*- coding: utf-8 -*-\n' >> pylint: done 0.23 sec. >> > > ​Not sure what is happening. You might try removing non-ascii characters

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-14 Thread Edward K. Ream
On Fri, Oct 14, 2016 at 6:16 AM, zhaohe wang wrote: > Leo 5.4-devel, build 20160722143100, Fri, Jul 22, 2016 2:31:00 PM > Git repo info: branch = master, commit = cb40bc3b4ca7 > Python 2.7.12, PyQt version 4.8.7 > linux2 > pylint: keyLog.py > Traceback (most recent call

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-14 Thread zhaohe wang
Leo 5.4-devel, build 20160722143100, Fri, Jul 22, 2016 2:31:00 PM Git repo info: branch = master, commit = cb40bc3b4ca7 Python 2.7.12, PyQt version 4.8.7 linux2 pylint: keyLog.py Traceback (most recent call last): File "", line 1, in File "leo/core/leoGlobals.py", line 1924, in run_pylint

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-14 Thread Edward K. Ream
On Fri, Oct 14, 2016 at 5:30 AM, zhaohe wang wrote: > Is the config file: ~/.pylintrc or > ​​ > leo-editor/leo/test/pylint-leo-rc.txt ? > ​It should be in ​ ​​leo-editor/leo/test/pylint-leo-rc.txt EKR -- You received this message because you are subscribed to the

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-14 Thread zhaohe wang
Is the config file: ~/.pylintrc or leo-editor/leo/test/pylint-leo-rc.txt ? 在 2016年10月14日星期五 UTC+8下午4:36:45,Edward K. Ream写道: > > > > On Thu, Oct 13, 2016 at 7:06 PM, zhaohe wang > wrote: > > ​QQQ​ > *When I run pylint in leo-editor: Alt X, follow error occurred:* > ​[snip]

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-14 Thread Edward K. Ream
On Friday, October 14, 2016 at 3:36:45 AM UTC-5, Edward K. Ream wrote: ​The error occurs when processing the config file, so there is no error if > the config file isn't found. > Leo's internal pylint command appends the leo directory to sys.path. So you should do the same in the

Re: run pylint in leo-editor UnicodeDecodeError

2016-10-14 Thread Edward K. Ream
On Thu, Oct 13, 2016 at 7:06 PM, zhaohe wang wrote: ​QQQ​ *When I run pylint in leo-editor: Alt X, follow error occurred:* ​[snip] UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 2297: invalid start byte *Simply run pylint in con​s​ole:* swot@pp:~/app$

run pylint in leo-editor UnicodeDecodeError

2016-10-13 Thread zhaohe wang
*When I run pylint in leo-editor: Alt X, follow error occurred:* Leo 5.4-devel, build 20160722143100, Fri, Jul 22, 2016 2:31:00 PM Git repo info: branch = master, commit = cb40bc3b4ca7 Python 2.7.12, PyQt version 4.8.7 linux2 pylint: keyLog.py Traceback (most recent call last): File "", line