Thread: [Pydev-code] Setting PYTHONPATH
Brought to you by:
fabioz
From: dperez <cra...@ya...> - 2006-09-26 07:25:39
|
Hi, I think I have found a possible bug. I have a Java project. I have added to it successfully a Python nature (using jython 2.1). Now open the project properties and set the PYTHONPATH property. I select several *.jar files and folders that contain *.py or *.class folders. The problem is that if I select this: myfolder/subfolder1/subfolder2/myjar.jar PyDev stores as: myfolder/subfolder2/myjar.jar It strips some subfolder, so the path is invalid..... Am I missing something? I'm using Eclipse 3.2 with the latest PyDev version Thanks for your time and patience. Regards, David -- View this message in context: http://www.nabble.com/Setting-PYTHONPATH-tf2317066.html#a6444732 Sent from the pydev-code mailing list archive at Nabble.com. |
From: dperez <cra...@ya...> - 2006-09-26 07:25:52
|
I'll give more details. My project is called "servidor-ima" I select this file: "/servidor-ima/lib/common-logging.jar", it is shown as: "/lib/common-logging.jar" in the list. If I hit the Apply button, then this error is shown in the error log: Unable to find the path /servidor-ima/commons-logging-1.0.2.jar in the project were it is added as a source folder for pydev (project: servidor-ima) dperez wrote: > > Hi, > > I think I have found a possible bug. > I have a Java project. I have added to it successfully a Python nature > (using jython 2.1). > Now open the project properties and set the PYTHONPATH property. > I select several *.jar files and folders that contain *.py or *.class > folders. > > The problem is that if I select this: > myfolder/subfolder1/subfolder2/myjar.jar > PyDev stores as: > myfolder/subfolder2/myjar.jar > It strips some subfolder, so the path is invalid..... > > Am I missing something? > I'm using Eclipse 3.2 with the latest PyDev version > > Thanks for your time and patience. > > Regards, > David > > -- View this message in context: http://www.nabble.com/Setting-PYTHONPATH-tf2317066.html#a6444966 Sent from the pydev-code mailing list archive at Nabble.com. |
From: Fabio Z. <fa...@gm...> - 2006-09-26 11:29:31
|
On 9/22/06, dperez <cra...@ya...> wrote: > > > I'll give more details. > My project is called "servidor-ima" > > I select this file: "/servidor-ima/lib/common-logging.jar", it is shown > as: > "/lib/common-logging.jar" in the list. > If I hit the Apply button, then this error is shown in the error log: > > Unable to find the path /servidor-ima/commons-logging-1.0.2.jar in the > project were it > is added as a source folder for pydev (project: servidor-ima) > > It's a bug... if you add the jar as an external jar it works (it should show the path with the name of the project... I've just fixed it and it is already available in the cvs -- and will be released in 1.2.4 -- hopefully later today). Cheers, Fabio |
From: dperez <cra...@ya...> - 2006-09-26 12:31:14
|
Wow, this is a quick feedback! Thanks Fabio, keep the good job!. Fabio Zadrozny-2 wrote: > > It's a bug... if you add the jar as an external jar it works (it should > show > the path with the name of the project... I've just fixed it and it is > already available in the cvs -- and will be released in 1.2.4 -- hopefully > later today). > -- View this message in context: http://www.nabble.com/Setting-PYTHONPATH-tf2317066.html#a6505723 Sent from the pydev-code mailing list archive at Nabble.com. |
From: dperez <cra...@ya...> - 2006-09-27 08:58:49
|
Hi, Confirmed that this bug is solved in 1.2.4 :-) But some other problems arise: When importing classes (that I have added to the PYTHONPATH of my project) located in jar files, I receive code completion for specifying package1 and subpackage, but no for MyClass, when writing: from package1.subpackage import MyClass in addition, it complains with this error (at the left column of the editor): Unresolved import The same happens with import package1.subpackage.MyClass When my Java code is unpackaged (outside of a jar file), I have the same behavior, except that I don't receive completion for package components. The code runs ok and find the referenced java class files. Fabio Zadrozny-2 wrote: > > It's a bug... if you add the jar as an external jar it works (it should > show > the path with the name of the project... I've just fixed it and it is > already available in the cvs -- and will be released in 1.2.4 -- hopefully > later today). > -- View this message in context: http://www.nabble.com/Setting-PYTHONPATH-tf2317066.html#a6523077 Sent from the pydev-code mailing list archive at Nabble.com. |
From: Fabio Z. <fa...@gm...> - 2006-09-27 10:51:02
|
On 9/27/06, dperez <cra...@ya...> wrote: > > > Hi, > > Confirmed that this bug is solved in 1.2.4 :-) > But some other problems arise: > > When importing classes (that I have added to the PYTHONPATH of my project) > located in jar files, I receive code completion for specifying package1 > and > subpackage, but no for MyClass, when writing: > > from package1.subpackage import MyClass > > in addition, it complains with this error (at the left column of the > editor): > > Unresolved import > > The same happens with > import package1.subpackage.MyClass > > When my Java code is unpackaged (outside of a jar file), I have the same > behavior, except that I don't receive completion for package components. > > The code runs ok and find the referenced java class files. > > Humm... can you report that as a bug (I'll take a look at it) Cheers, Fabio |
From: dperez <cra...@ya...> - 2006-09-27 12:56:41
|
Created bug http://sourceforge.net/tracker/index.php?func=detail&aid=1566316&group_id=85796&atid=577329 Fabio Zadrozny-2 wrote: > > Humm... can you report that as a bug (I'll take a look at it) > -- View this message in context: http://www.nabble.com/Setting-PYTHONPATH-tf2317066.html#a6526140 Sent from the pydev-code mailing list archive at Nabble.com. |