Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#711 Pydev shows error when accessing members from external jar

1.3.18
open
nobody
None
5
2008-06-29
2008-05-23
phunkyfish
No

When accessing members of an imported static object from an external jar PyDev shows an error.

To reproduce:

1) Download "The Grinder" and unpack it somewhere (http://grinder.sourceforge.net).
2) Create a new Jython project with the default source folder.
3) In project properties add "grinder.jar" as an external jar.
3) Create a single Python module called "tester.py"
4) Add the following code to tester.py:

<START>
from net.grinder.script.Grinder import grinder
from java.lang import Integer

Integer.parseInt("25")

log = grinder.logger.output
out = grinder.logger.TERMINAL
<END>

You will see that "logger" is underlined as an error on both lines. Code completion is also not available when accessing members of the "grinder" object. Accessing static members of a core Java Object does not give an error.

I've used grinder as an example as it's what I had available.

System: Windows XP
Eclipse version: 3.3.1
PyDev version: 1.3.17
PyDev extensions: 1.3.17

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2008-06-29

    • milestone: --> 1.3.18