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
Can you please report it as a bug? (please add that jar to the bug report).
Thanks,
Fabio
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
Can you please report it as a bug? (please add that jar to the bug report).
Thanks,
Fabio