[Pydev-code] Ported to 3.0 - it was bloody...
Brought to you by:
fabioz
From: Aleks T. <a...@to...> - 2004-07-02 02:59:27
|
Hi, I've just finished porting pydev to Eclipse 3.0. The changes have been checked in. Unfortunately, I had to cut some of your stuff out to make it happen, hope you can put the code back in soon: 1) Parhaum's test: - the tests Java files were in the same directory tree as the plugin. I do not like having the test files in the same tree, as I do not want to ship them when plugin is built. I've moved them all into docs/tests. I am not a big fan of indiscriminate testing. Writing a proper testing harness is hard, and requires maintenance. And for me, it is no fun. So I do not write them. There is a smoke test suite I run through before the release, and that's it. So, Parhaum, if you'd like to include the tests in the project, please keep them separate from the main code line. I have an org.python.pydev.test project where I keep my smoke tests, it might be a good place for your test cases too. 2) Code completion by Dana: - Here I ran into a library loading problem. pydev uses and compiles jython's parser internally for syntax highlights & outline. org.pydev.jython/jython.jar included some of the same classes, but they were different versions. In 2.0, the class loader did what we wanted. In 3.0, the class loader has changed, and pydev editor was getting NoSuchMethod exceptions because it was getting PythonGrammar out of jython.jar. So I removed jython.jar from the classpath to get things going again. This also meant that completion processor was turned off. How do we solve this one? There is no simple solution. I've submitted my changes to Jython, and they've been accepted. Maybe you can check out the pydev compatible jython tree, and check that in instead, and remove our jython parser port from the editor? I've also fixed "Open External File" command. Files outside of workspace can be opened, but not edited. Getting editing to work was just too much coding, nice hobby project for someone for the weekend. Porting was a little annoying as Eclipse's programming usually is. Main changes involved moving the Plugin classes to the new Bundle standard. I'd like to ship this early next week. Dana, do you have an ETA on your changes? Aleks |