Re: [Pydev-users] Twisted Autocompletion missing?
Windows XP Professional SP2 J2SE 5.0 update 11 Error log report: !SESSION 2007-02-15 14:24:08.361 --- eclipse.buildId=M20060921-0945 java.version=1.5.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Warnings while parsing the view contributions from the 'org.eclipse.ui.viewActions' extension point !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction1' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction2' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction3' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction4' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction1' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction2' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction3' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction4' On 2/14/07, Fabio Zadrozny [EMAIL PROTECTED] wrote: On 2/14/07, Chris Hengge [EMAIL PROTECTED] wrote: I've now reinstalled this machine here at work, clean eclipse 3.2.1fresh downloaded from their site, plus 1.2.6 fresh off the pydev site... No auto-completion still as well as marking incorrect syntax highlights.. Try it with 1.2.7 (you can get it at http://fabioz.com/pydev/download.html -- the sourceforge shell is still offline after almost 48 hours, so, sourceforge is still not up-to-date)... also, which OS do you have there? which JVM? Do you have something in your error log? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
Installing 1.2.7 doesn't help. now typing reactor. yields no auto-complete results at all. This is crazy, now I've got less auto-complete then when I started =P Syntax highlighting also still says my code is wrong, but it runs no problem. I also tried removing the interpreter, hitting apply, closing eclipse, opening eclipse, adding the interpreter, adding 'twisted' to the forced built-ins. Any idea's? On 2/15/07, Chris Hengge [EMAIL PROTECTED] wrote: Windows XP Professional SP2 J2SE 5.0 update 11 Error log report: !SESSION 2007-02-15 14:24:08.361 --- eclipse.buildId=M20060921-0945 java.version=1.5.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Warnings while parsing the view contributions from the 'org.eclipse.ui.viewActions' extension point !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction1' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction2' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction3' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewResourceNavigator/eclipseutilplugins.ResourceAction4' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction1' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction2' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction3' !SUBENTRY 1 org.eclipse.ui 2 0 2007-02-15 14:24:11.426 !MESSAGE Actions require a non-empty label or definitionId: plug-in='ru.nlmk.eclipseutilplugins', id='AUTOGEN:::eclipseutilplugins.viewPackageExplorer/eclipseutilplugins.PackageAction4' On 2/14/07, Fabio Zadrozny [EMAIL PROTECTED] wrote: On 2/14/07, Chris Hengge [EMAIL PROTECTED] wrote: I've now reinstalled this machine here at work, clean eclipse 3.2.1fresh downloaded from their site, plus 1.2.6 fresh off the pydev site... No auto-completion still as well as marking incorrect syntax highlights.. Try it with 1.2.7 (you can get it at http://fabioz.com/pydev/download.html -- the sourceforge shell is still offline after almost 48 hours, so, sourceforge is still not up-to-date)... also, which OS do you have there? which JVM? Do you have something in your error log? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
On 2/14/07, Chris Hengge [EMAIL PROTECTED] wrote: I've now reinstalled this machine here at work, clean eclipse 3.2.1 fresh downloaded from their site, plus 1.2.6 fresh off the pydev site... No auto-completion still as well as marking incorrect syntax highlights.. Try it with 1.2.7 (you can get it at http://fabioz.com/pydev/download.html-- the sourceforge shell is still offline after almost 48 hours, so, sourceforge is still not up-to-date)... also, which OS do you have there? which JVM? Do you have something in your error log? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: Could you be a little more specific to how you got it working? I've got: C:\Python24\Lib\site-packages\twisted Actually, that's not correct... you should have only C:\Python24\Lib\site-packages in the system pythonpath (twisted is already the module to be imported... so, the folder above is the one that must be in the pythonpath). under System PYTHONPATH and 'twisted' is now listed for the forced built-in Do I have to 'twisted\internet' to get reactor working? That could take ALOT of work for all the modules =P There is ALOT more auto-completing now, but I still can't get it to recognized reactor.run() I got it working here after adding 'twisted' to the forced builtins ( reactor.run is there)... but I also did some changes in the cvs regarding code-completion, so, it may be because of those changes (as I don't have 1.2.6 here to test I'm not sure about it). Cheers, Fabio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
On 2/9/07, Patrick Smith [EMAIL PROTECTED] wrote: Awesome. Fabio - I read what you said and added twisted to the System PYTHONPATH and to the list of Forced builtin libs. Code completion now works for the example Chris sent. Give it a second try, Chris! I'll have to try doing the same for the zope code that I am using. The only problem is that I like to have that code in a Project in eclipse so I can easily browse it. I don't I can have it as both a project and a builtin lib. Any thoughts on how to get around this? Well, it works if you have a copy of the source as a project and don't set the project pythonpath for it... (it would work if it was the same actually, but then pydev would go and try to analyze the zope code, which is something I don't think you'd really want to do). Cheers, Fabio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
OK, well, the automatic thing that sets up System PYTHONPATH already has c:\python24\Lib\site-packages, it always gets that automatically when I add the interpreter. The poster before mine that I replied to said he added twisted and thats why I was getting clarification. I've also tried adding the word 'twisted' to the forced builtin libs. No success on the work machine, but it works great here at home! Thanks so much! (I think my work machine needs to be updated, but eclipse can't update through the proxy so I have to bring the machine home for that. On 2/10/07, Fabio Zadrozny [EMAIL PROTECTED] wrote: On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: Could you be a little more specific to how you got it working? I've got: C:\Python24\Lib\site-packages\twisted Actually, that's not correct... you should have only C:\Python24\Lib\site-packages in the system pythonpath (twisted is already the module to be imported... so, the folder above is the one that must be in the pythonpath). under System PYTHONPATH and 'twisted' is now listed for the forced built-in Do I have to 'twisted\internet' to get reactor working? That could take ALOT of work for all the modules =P There is ALOT more auto-completing now, but I still can't get it to recognized reactor.run() I got it working here after adding 'twisted' to the forced builtins ( reactor.run is there)... but I also did some changes in the cvs regarding code-completion, so, it may be because of those changes (as I don't have 1.2.6 here to test I'm not sure about it). Cheers, Fabio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
I verified that I'm setup correctly to my knowledge -/Project /src -/myfilethatdoesn'tautocompleteTwisted.py the /src was added to the path automatically when I made the new dummy project, but I verified it anyways. The project is only one file is size, it's nothing more then a basic chapter lesson from the Twisted Networking Essentials book. (chpt 2) Anyways, I included the code because very basic stuff like reactor.stop() and reactor.run() are registering as wrong.. It actually has a few methods or whatever there is autocomplete, but it's like the list is far from complete. Any further idea's? Thanks. On 2/9/07, Fabio Zadrozny [EMAIL PROTECTED] wrote: On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: Anyone able to get the auto-complete for this script (Which works, got it from the twisted book) to work? Or explain to me why it doesn't? Much appreciated! Actually, the problem is probably in the way you configure your project... have you already taken a look at the 'getting started' manual? ( http://www.fabioz.com/pydev/manual_101_root.html) Cheers, Fabio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
I just gave your test module a try and got the following: Undefined variable from import: run Looking into the twisted code (for the first time ever - I just happened to have it installed for pretty much no reason) I see that there is not much at all installed in reactor.py. It seems to me that everything that you are expecting to be there is dynamically put there via: selectreactor.install() I notice that run() part of IReactorCore but it is not clear to me how that gets hooked up to twisted.internet.reactor but I'll assume that it does via the above magic. Pydev is seeing the content of reactor that I expect it to see i.e. code completion works for sys and selectreactor. Keep in mind that I am not sure which version of twisted I am looking at here. It's at least a few months stale. I personally work with the zope/plone stack and have found similar issues. Fabio - It looks like the code completion is dependent on static analysis and as a result pydev is not aware of dynamic additions to a module. Is this a limitation to the awareness that pydev has? Thanks, Patrick Smith http://www.openengagement.com On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: Tried that. I've also tried this on two different machines. Just a simple test code TestProj -/src -test.py # from twisted.internet import reactor # autocompletes .internet reactor.run() # says the above is an error / missing most of exposed methods and objects # On 2/9/07, Fabio Zadrozny [EMAIL PROTECTED] wrote: On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: I verified that I'm setup correctly to my knowledge -/Project /src -/myfilethatdoesn'tautocompleteTwisted.py the /src was added to the path automatically when I made the new dummy project, but I verified it anyways. The project is only one file is size, it's nothing more then a basic chapter lesson from the Twisted Networking Essentials book. (chpt 2) Anyways, I included the code because very basic stuff like reactor.stop () and reactor.run() are registering as wrong.. It actually has a few methods or whatever there is autocomplete, but it's like the list is far from complete. Any further idea's? Thanks. Try putting 'twisted' in the 'forced builtins' (details on http://www.fabioz.com/pydev/manual_101_interpreter.html ) Cheers, Fabio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users
Re: [Pydev-users] Twisted Autocompletion missing?
Awesome. Fabio - I read what you said and added twisted to the System PYTHONPATH and to the list of Forced builtin libs. Code completion now works for the example Chris sent. Give it a second try, Chris! I'll have to try doing the same for the zope code that I am using. The only problem is that I like to have that code in a Project in eclipse so I can easily browse it. I don't I can have it as both a project and a builtin lib. Any thoughts on how to get around this? Thanks, Patrick Smith http://www.openengagement.com On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: You lost me on this, but thank you for putting the time and effort into atleast finding information that makes sense to the developer. :) Problem or not, I've been very happy learning Python using Pydev. So much infact that I bought the extensions license to hopefully help fund further development and maybe a pizza for the creator =P On 2/9/07, Patrick Smith [EMAIL PROTECTED] wrote: I just gave your test module a try and got the following: Undefined variable from import: run Looking into the twisted code (for the first time ever - I just happened to have it installed for pretty much no reason) I see that there is not much at all installed in reactor.py. It seems to me that everything that you are expecting to be there is dynamically put there via: selectreactor.install() I notice that run() part of IReactorCore but it is not clear to me how that gets hooked up to twisted.internet.reactor but I'll assume that it does via the above magic. Pydev is seeing the content of reactor that I expect it to see i.e. code completion works for sys and selectreactor. Keep in mind that I am not sure which version of twisted I am looking at here. It's at least a few months stale. I personally work with the zope/plone stack and have found similar issues. Fabio - It looks like the code completion is dependent on static analysis and as a result pydev is not aware of dynamic additions to a module. Is this a limitation to the awareness that pydev has? Thanks, Patrick Smith http://www.openengagement.com On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: Tried that. I've also tried this on two different machines. Just a simple test code TestProj -/src -test.py # from twisted.internet import reactor # autocompletes .internet reactor.run() # says the above is an error / missing most of exposed methods and objects # On 2/9/07, Fabio Zadrozny [EMAIL PROTECTED] wrote: On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: I verified that I'm setup correctly to my knowledge -/Project /src -/myfilethatdoesn'tautocompleteTwisted.py the /src was added to the path automatically when I made the new dummy project, but I verified it anyways. The project is only one file is size, it's nothing more then a basic chapter lesson from the Twisted Networking Essentials book. (chpt 2) Anyways, I included the code because very basic stuff like reactor.stop () and reactor.run() are registering as wrong.. It actually has a few methods or whatever there is autocomplete, but it's like the list is far from complete. Any further idea's? Thanks. Try putting 'twisted' in the 'forced builtins' (details on http://www.fabioz.com/pydev/manual_101_interpreter.html ) Cheers, Fabio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Using Tomcat but need to do more? Need to support web services, security?
Re: [Pydev-users] Twisted Autocompletion missing?
Could you be a little more specific to how you got it working? I've got: C:\Python24\Lib\site-packages\twisted under System PYTHONPATH and 'twisted' is now listed for the forced built-in Do I have to 'twisted\internet' to get reactor working? That could take ALOT of work for all the modules =P There is ALOT more auto-completing now, but I still can't get it to recognized reactor.run() On 2/9/07, Patrick Smith [EMAIL PROTECTED] wrote: Awesome. Fabio - I read what you said and added twisted to the System PYTHONPATH and to the list of Forced builtin libs. Code completion now works for the example Chris sent. Give it a second try, Chris! I'll have to try doing the same for the zope code that I am using. The only problem is that I like to have that code in a Project in eclipse so I can easily browse it. I don't I can have it as both a project and a builtin lib. Any thoughts on how to get around this? Thanks, Patrick Smith http://www.openengagement.com On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: You lost me on this, but thank you for putting the time and effort into atleast finding information that makes sense to the developer. :) Problem or not, I've been very happy learning Python using Pydev. So much infact that I bought the extensions license to hopefully help fund further development and maybe a pizza for the creator =P On 2/9/07, Patrick Smith [EMAIL PROTECTED] wrote: I just gave your test module a try and got the following: Undefined variable from import: run Looking into the twisted code (for the first time ever - I just happened to have it installed for pretty much no reason) I see that there is not much at all installed in reactor.py. It seems to me that everything that you are expecting to be there is dynamically put there via: selectreactor.install() I notice that run() part of IReactorCore but it is not clear to me how that gets hooked up to twisted.internet.reactor but I'll assume that it does via the above magic. Pydev is seeing the content of reactor that I expect it to see i.e. code completion works for sys and selectreactor. Keep in mind that I am not sure which version of twisted I am looking at here. It's at least a few months stale. I personally work with the zope/plone stack and have found similar issues. Fabio - It looks like the code completion is dependent on static analysis and as a result pydev is not aware of dynamic additions to a module. Is this a limitation to the awareness that pydev has? Thanks, Patrick Smith http://www.openengagement.com On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: Tried that. I've also tried this on two different machines. Just a simple test code TestProj -/src -test.py # from twisted.internet import reactor # autocompletes .internet reactor.run() # says the above is an error / missing most of exposed methods and objects # On 2/9/07, Fabio Zadrozny [EMAIL PROTECTED] wrote: On 2/9/07, Chris Hengge [EMAIL PROTECTED] wrote: I verified that I'm setup correctly to my knowledge -/Project /src -/myfilethatdoesn'tautocompleteTwisted.py the /src was added to the path automatically when I made the new dummy project, but I verified it anyways. The project is only one file is size, it's nothing more then a basic chapter lesson from the Twisted Networking Essentials book. (chpt 2) Anyways, I included the code because very basic stuff like reactor.stop () and reactor.run() are registering as wrong.. It actually has a few methods or whatever there is autocomplete, but it's like the list is far from complete. Any further idea's? Thanks. Try putting 'twisted' in the 'forced builtins' (details on http://www.fabioz.com/pydev/manual_101_interpreter.html ) Cheers, Fabio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server
[Pydev-users] Twisted Autocompletion missing?
Anyone able to get the auto-complete for this script (Which works, got it from the twisted book) to work? Or explain to me why it doesn't? Much appreciated! quick_connect.py === from twisted.internet import reactor, protocol class QuickDisconnectProtocol(protocol.Protocol): def connectionMade(self): print Connected to %s % self.transport.getPeer().host self.transport.loseConnection() class BasicClientFactory(protocol.ClientFactory): protocol = QuickDisconnectProtocol def clientConnectionLost(self, connector, reason): print Lost Connection %s % reason.getErrorMessage() reactor.stop() def clientConnectionFailed(self, connector, reason): print Connection failed %s % reason.getErrorMessage() reactor.stop() reactor.connectTCP('www.google.com', 80, BasicClientFactory()) reactor.run() - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users