[IronPython] pyFlakes pySmell
avinhan at gmail.com
Thu Apr 1 09:59:36 CEST 2010
Thanks for the information on this.
Jeff, I tried to download and compiler your _ast library, but it's giving
Error 1 'IronPython.Runtime.PythonModule' does not contain a definition for
'TryGetName' and no extension method 'TryGetName' accepting a first argument
of type 'IronPython.Runtime.PythonModule' could be found (are you missing a
using directive or an assembly reference?) _ast\_ast.cs 114 50 _ast
Error 2 The best overloaded method match for
IronPython.Runtime.ModuleContext)' has some invalid
arguments _ast\_ast.cs 119 35 _ast
Error 3 Argument '2': cannot convert from 'IronPython.Runtime.PythonContext'
to 'IronPython.Runtime.ModuleContext' _ast\_ast\_ast.cs 119 75 _ast
I'm using IronPython 2.6RC1. Am I doing something wrong?
Also, if anyone is interested, I updated the compiler package found in FePy
to work with IronPython 2.6RC1.
I'm able to run pyFlakes on IronPython using it (also tried pySmell and it
works so far).
I'm fixing up errors as I encounter them. Is there any test cases that I can
run to make sure that the implementation works?
So if anyone wants to use the compiler package, let me know and I can put it
up on codeplex or something.
Is there a way to convert the compiler.ast to _ast?
On Thu, Mar 25, 2010 at 9:52 PM, Michael Foord <fuzzyman at voidspace.org.uk>wrote:
> On 25/03/2010 13:44, Jeff Hardy wrote:
>> On Thu, Mar 25, 2010 at 5:10 AM, Michael Foord
>> <fuzzyman at voidspace.org.uk> wrote:
>>> They almost certainly use the compiler / ast modules that aren't
>>> for IronPython. You can ship CPython as part of your application though,
>>> without needing it to be installed.
>> There's one compiler error under 2.6 (a function is missing/renamed);
>> I just haven't had a chance to figure it out.
>> That said, if pyflakes/pysmell use 'compiler' instead of 'ast', you're
>> probably hooped. Compiler is unlikely to ever be supported.
> I think FePy used to have support for the compiler module, but I'm having a
> hard time figuring out where that was implemented.
> All the best,
> - Jeff
>> Users mailing list
>> Users at lists.ironpython.com
> READ CAREFULLY. By accepting and reading this email you agree, on behalf of
> your employer, to release me from all obligations and waivers arising from
> any and all NON-NEGOTIATED agreements, licenses, terms-of-service,
> shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure,
> non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have
> entered into with your employer, its partners, licensors, agents and
> assigns, in perpetuity, without prejudice to my ongoing rights and
> privileges. You further represent that you have the authority to release me
> from any BOGUS AGREEMENTS on behalf of your employer.
> Users mailing list
> Users at lists.ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users