Menu

Code completion, Jar Files, Method Calls...

2008-02-11
2013-03-15
  • Ross Nicholson

    Ross Nicholson - 2008-02-11

    Hi,

    I've been using PyDev for creating ginder scripts (grinder.sourceforge.net).

    I'm running the latest version of PyDev Extensions on Eclipse 3.3

    When I add a jar (grinder.jar) to the project's python path it enables code completion for the grinder java packages.

        from net.grinder.script.Grinder

    A list of packages pops up nicely as I type...

    However, I don't seem to be able to import objects from these packages?

        from net.grinder.script.Grinder import <Ctrl+Space> brings up nothing?

    If I manually fill in the line:

        from net.grinder.script.Grinder import grinder

    The object "grinder" will cause an error, this is a static public variable within the "Grinder" class...

    Similarly, when calling methods from a Grinder class I also get an error:

        from net.grinder.plugin.http import HTTPPluginControl, HTTPRequest #No Error
        connectionDefaults = HTTPPluginControl.getConnectionDefaults() #Static Method call Error
        httpUtilities = HTTPPluginControl.getHTTPUtilities() #Static Method Call Error

    Any ideas why this happens?

    It does not seem to happen with the standard java packages?

    I've also tried adding "grinder.jar" to the System PYTHONPATH as opposed to the Project PYHTONPATH but it acts the same way...

    Cheers,

    Ross

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2008-02-12

      Can you please report it as a bug? (please add that jar to the bug report).

      Thanks,

      Fabio