JulianEberius / Subclim

Eclipse Java completion and refactoring powers in Sublime Text 2 using Eclim
117 stars 20 forks source link

Subclim linux compatibility? #1

Closed bennylb closed 12 years ago

bennylb commented 12 years ago

I use eclim with vim on my linux box on a daily basis but have started using Sublime. I have installed Subclim and set the eclim executable path to my executable in my eclipse $HOME folder but I nothing happens. Am I missing something?

If it helps this is the console output:-

startup, version: 2177 linux x64 channel: dev executable: /usr/lib/sublime-text-2/sublime_text working dir: /home/ben packages path: /home/ben/.config/sublime-text-2/Packages settings path: /home/ben/.config/sublime-text-2/Settings error parsing session: No data at: 0:0 PackageSetup not required Py_GetProgramName(): sublime_text Py_GetExecPrefix(): . Py_GetProgramFullPath(): Py_GetPath(): ./lib/python26.zip:./lib/python2.6/:./lib/python2.6/plat-linux2:./lib/python2.6/lib-tk:./lib/python2.6/lib-old:./lib/python2.6/lib-dynload Py_GetPythonHome(): . catalogue loaded found 8 files for base name Default.sublime-keymap found 1 files for base name Default.sublime-mousemap found 2 files for base name Main.sublime-menu Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/comment.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/copy_path.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/delete_word.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/detect_indentation.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/duplicate_line.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/echo.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/exec.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/fold.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/font.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/goto_line.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/indentation.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/kill_ring.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/mark.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/new_templates.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/open_file_settings.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/paragraph.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/save_on_focus_lost.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/scroll.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/set_unsaved_view_name.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/side_bar.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/sort.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/swap_line.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/switch_file.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/transform.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/transpose.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/trim_trailing_white_space.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Diff/diff.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Display Functions (Java)/displayfunctions.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/HTML/encode_html_entities.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/HTML/html_completions.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Package Control/Package Control.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Subclim/eclim.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Subclim/subclim_plugin.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Vintage/vintage.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Vintage/vintage_commands.py Reloading plugin /home/ben/.config/sublime-text-2/Packages/Vintage/vintage_motions.py plugin init time: 0.053234 loading bindings loading pointer bindings found 1 files for base name Default.sublime-theme theme loaded app ready pre session restore time: 0.116176 using gamma: 1 (err: 0) wrote startup cache, added files: 2 orphaned files: 0 total files: 96 cache hits: 94 startup time: 0.239671 (package setup was not run) Traceback (most recent call last): File "./sublime_plugin.py", line 175, in on_load File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 174, in File "./subclim_plugin.py", line 233, in on_load File "./subclim_plugin.py", line 249, in validate File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead Traceback (most recent call last): File "./sublime_plugin.py", line 175, in on_load File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 174, in File "./subclim_plugin.py", line 233, in on_load File "./subclim_plugin.py", line 249, in validate File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead Traceback (most recent call last): File "./sublime_plugin.py", line 175, in on_load File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 174, in File "./subclim_plugin.py", line 233, in on_load File "./subclim_plugin.py", line 249, in validate File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead Traceback (most recent call last): File "./sublime_plugin.py", line 175, in on_load File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 174, in File "./subclim_plugin.py", line 233, in on_load File "./subclim_plugin.py", line 249, in validate File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead loaded 939 snippets reloading /home/ben/.config/sublime-text-2/Packages/User/Package Control.sublime-settings Package Control: No updated packages reloading /home/ben/.config/sublime-text-2/Packages/User/Subclim.sublime-settings Traceback (most recent call last): File "./sublime_plugin.py", line 175, in on_load File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 174, in File "./subclim_plugin.py", line 233, in on_load File "./subclim_plugin.py", line 249, in validate File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead Traceback (most recent call last): File "./sublime_plugin.py", line 175, in on_load File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 174, in File "./subclim_plugin.py", line 233, in on_load File "./subclim_plugin.py", line 249, in validate File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead Traceback (most recent call last): File "./sublime_plugin.py", line 175, in on_load File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 174, in File "./subclim_plugin.py", line 233, in on_load File "./subclim_plugin.py", line 249, in validate File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead Traceback (most recent call last): File "./sublimeplugin.py", line 350, in run File "./subclim_plugin.py", line 113, in run File "./eclim.py", line 59, in get_context File ".\xml\etree\ElementTree.py", line 962, in XML File ".\xml\etree\ElementTree.py", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead

JulianEberius commented 12 years ago

Hi,

Yes, it seems that ST2 does not bundle the expat parser that is usually included with Python in its Linux version. I have followed the advice from this StackOverflow question

http://stackoverflow.com/questions/1068510/using-simplexmltreebuilder-in-elementtree

And have included the elementtree module into Subclim, which should feature a pure-python XML parser. Unfortunately I have no Linux machine with Eclim and an Eclim project at hand. Can you checkout the latest version and try it in you machine?

Thanks, Julian

bennylb commented 12 years ago

Great work Julian your fix worked perfectly!

You should think about including this in Subclim package control. It is essential to anyone using Sublime for Java dev.

Keep up the good work.

Thanks, Ben