Open kaeevans opened 10 years ago
+1 Would be nice to know if this is still maintained.
Author here. The plugin should be working on ST3, I use it daily myself, so it's at least semi-maintained. You can't find it on Packe Control because I never put it there...
Hi there, I'm trying to use Subclim with ST3 and am getting the following error when trying to run a command from generated.py:
Traceback (most recent call last):
File "/home/steve/sublime_text_3/sublime_plugin.py", line 549, in run_
return self.run(edit)
File "/home/steve/.config/sublime-text-3/Packages/Subclim/generated.py", line 756, in run
out = self.run_template(SubclimCorePingCommand.template, **kwargs)
File "/home/steve/.config/sublime-text-3/Packages/Subclim/subclim_plugin.py", line 145, in run_template
cmdline = self.build_template(template, view, **kwargs)
File "/home/steve/.config/sublime-text-3/Packages/Subclim/subclim_plugin.py", line 122, in build_template
for param in template[k]:
TypeError: unhashable type: 'list'
This was me trying subclim_core_ping
but every command I've tried does the same thing.
Seems like ST3 uses Python 3 and it's this error: http://stackoverflow.com/questions/8953627/python-dictionary-keys-error
My Python is completely non-existant though, otherwise I might have tried my hand at making a PR to fix
+1 to putting onto Package Control BTW
Hi,
The commands in generated.py are not supported. They were auto-generated some time ago by a contributor, and it seems they were never updated for ST3. I will probably remove the file in the future. Have you tried the commands that are used in the default keymaps (which are defined in subclim_plugin.py)? Or just saving in a Java file (which should trigger compilation in Eclipse and show the error messages)?
Ah OK, I was going by this line in the README:
Most other Eclim commands might be available too, but are not supported. Check generated.py and set keybindings for the commands there if you are feeling adventurous.
All the built-in commands work for me, but there's a lot more provided by eclim that isn't supported (I started this off while trying to map the rename command, for example)
How do I install in Sublime Text 3? I can't find it in the package list.
@ehartford - You just need to clone the plugin into your sublime text packages folder. On windows it's probably %AppData%\Sublime Text 3\Packages
. On OSX it's ~/Library/Application Support/Sublime Text 3/Packages
.
@JulianEberius can you tell me how you configured the plugin? I cannot get it working :( I always get the message "Workspace cannot be locked", as it is in use by another Eclipse application. I tried to remove the .lock file from the .metadata folder, but it did not work. Some info OSX 10.9.3 Kepler Service Release 2 Build id: 20140224-0627 eclim_2.3.4
and this is the Subclim log
2014-07-25 00:49:36,521 - ERROR - Error connecting to Eclim server: java -d64 -Dosgi.requiredJavaVersion=1.6 -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Xms40m -Xmx512m -XstartOnFirstThread -jar /Users/edolaptop/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -debug -clean -refresh -application org.eclim.application Install location: file:/Users/edolaptop/eclipse/ Configuration file: file:/Users/edolaptop/eclipse/configuration/config.ini loaded Configuration location: file:/Users/edolaptop/eclipse/configuration/ Framework located: file:/Users/edolaptop/eclipse/plugins/org.eclipse.osgi_3.9.1.v20140110-1610.jar Framework classpath: file:/Users/edolaptop/eclipse/plugins/org.eclipse.osgi_3.9.1.v20140110-1610.jar Debug options: file:/Applications/Sublime Text.app/Contents/MacOS/.options not found Time to load bundles: 32 Starting application: 2647 Application Started: 12701 2014-07-25 00:49:36,163 ERROR [org.eclim.eclipse.EclimApplication] Error durring shutdown. java.lang.IllegalStateException: Workbench has not been created yet. at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93) at org.eclim.eclipse.EclimApplication.shutdown(EclimApplication.java:135) at org.eclim.eclipse.EclimApplication$1.run(EclimApplication.java:93) 2014-07-25 00:49:26.622 java[63893:2307] * WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 2014-07-25 00:49:26.624 java[63893:2307] * WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. /bin/sh: line 1: /Users/edolaptop/eclipse: is a directory /bin/sh: line 2: /Users/edolaptop/eclipse: is a directory
Thanks a lot, ST is awesome and I'd like to get it working :)
I just filed a PR to make Subclim available on Package Control also for ST3 https://github.com/wbond/package_control_channel/pull/4374
I didn't see it in package control