from
Peter Milliken <peterm at resmed dot com dot au>
to
Sylvain Thenault <syt at logilab dot fr>
subject
RE: [ANN] pylint-0.2
date
Sylvain,2003/10/03 12:35
I am on leave (starting this afternoon) for a week - will be back on the
14th October, 2003. So if you send me any updates I won't be here to respond
:-)
Thanks
Peter
-----Original Message-----
From: Sylvain Thénault [mailto:Sylvain.Thenault@logilab.fr]
Sent: Thursday, October 02, 2003 9:41 PM
To: Peter Milliken
Cc: Myles; python-projects@logilab.org
Subject: Re: [ANN] pylint-0.2
On Thursday 02 October à 06:39, Peter Milliken wrote:
> Getting closer but still no prizes :-)
damned...
> Installed the supplied common and re-ran with the following result:
>
> roebourne#1(~/swimming)$ python
> c:/Python22/Lib/site-packages/logilab/pylint/lint.py roll.py
> No config file found, using default configuration
> An error occured while parsing roll
> Traceback (most recent call last):
> File "c:/Python22/Lib/site-packages/logilab/pylint/lint.py", line 529,
in
> ?
> Run(*sys.argv[1:])
> File "c:/Python22/Lib/site-packages/logilab/pylint/lint.py", line 497,
in
> __init__
> linter.check(modname)
> File "c:/Python22/Lib/site-packages/logilab/pylint/lint.py", line 230,
in
> check
> astng = self.manager.astng_from_module_name(mod_name)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\manager.py",
line
> 85, in astng_from_module_name
> return self.astng_from_module(module, norm_mod_name)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\manager.py",
line
> 62, in astng_from_module
> astng = self._builder.build_from_module(module, mod_name)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\astng.py", line
> 179, in build_from_module
> astng = self._string_build(data)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\astng.py", line
> 234, in _string_build
> ast = parser.suite(data + linesep)
> parser.ParserError: could not parse string
> [exited with 1]
it seems that the parser.suite function doesn't like windows new lines :(
Could you try to replace the files common/fileutils.py and
common/astng/astng.py with those attached to this message, and see if
that fix the problem ?
> I assume that we are getting closer? :-)
of course we are ;)
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org

