PyDev flags in error any import or method call that begin with org.jboss.as -
env: eclipse 4.3 on win 7
pydev 2.8.1_2013072611
jython 2.5.3, 2.5.4rc1, 2.7beta1
i'm trying develop jython scripts jboss eap 6.1 cli , i'm facing looks parsing problem.
using 2.5 grammar of releases of jython, in scripts begin org.jboss.as (imports or method calls like:
import org.jboss.as.cli.commandcontextfactory or
org.jboss.as.cli.commandcontextfactory.getinstance().newcommandcontext() ) has embedded as portion blue colored if 'as' language keyword. when launched script execute without problems.
using grammar 2.6 or 2.7 jython 2.7beta1 (or previous release, if doesn't make sense) 'as' enforced keyword because, besides being still blue colored, import, or subsequent method calls, if import commented, marked in error messages
encountered "as" @ line 7, column 18. expecting: <name> ... when launched, again script executes without problem.
any idea if can pydev or jython problem?
thanks, gabriele
ok, seems pydev not covering jython semantics works on (only python semantics disallow 'as').
gramar 2.5 works because believe python did accept @ point , made invalid later on -- , jython not following same semantics (a different outcome jython shouldn't allow , export 'as' module under different name).
so, please create ticket @ pydev tracker @ http://sw-brainwy.rhcloud.com/ fix later jython versions.
Comments
Post a Comment