Django Templates Editor \ Aptana Studio ruby dependency

JoNO .'s Avatar

JoNO .

31 Oct, 2010 07:44 AM

After installing PyDev Django Templates Editor I started getting lots of errors like this one below:

eclipse.buildId=M20100211-1343
java.version=1.6.0_20
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

Error
Sun Oct 31 00:39:17 PDT 2010
An internal error occurred during: "Loading bundle: C:\Users\Turturica\Utils\eclipse\configuration\org.eclipse.osgi\bundles\427\1.cp\bundles\cucumber.ruble".

org.jruby.embed.EvalFailedException: no such file to load -- ruble/ui
at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1149)
at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1142)
at com.aptana.scripting.ScriptingEngine.createScriptingContainer(ScriptingEngine.java:125)
at com.aptana.scripting.ScriptingEngine.getScriptingContainer(ScriptingEngine.java:265)
at com.aptana.scripting.model.ScriptLoadJob.run(ScriptLoadJob.java:100)
at com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:171)
at com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:207)
at com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:309)
at com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:278)
at com.aptana.scripting.model.BundleManager.loadScript(BundleManager.java:1675)
at com.aptana.scripting.model.BundleManager$BundleLoadJob.run(BundleManager.java:1569)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.jruby.exceptions.RaiseException: no such file to load -- ruble/ui
at (unknown).new(C:/Users/Turturica/Utils/eclipse/configuration/org.eclipse.osgi/bundles/411/1/.cp/framework/ruble/editor.rb:2)
at Kernel.require(C:/Users/Turturica/Utils/eclipse/configuration/org.eclipse.osgi/bundles/411/1/.cp/framework/ruble/editor.rb:2)
at (unknown).(unknown)(C:/Users/Turturica/Utils/eclipse/configuration/org.eclipse.osgi/bundles/411/1/.cp/framework/ruble/editor.rb:4)
at Kernel.require(C:/Users/Turturica/Utils/eclipse/configuration/org.eclipse.osgi/bundles/427/1/.cp/framework/ruble.rb:4)
at (unknown).(unknown)(C:/Users/Turturica/Utils/eclipse/plugins/org.jruby_1.5.3.1285771297/lib/ruby/site_ruby/shared/builtin/java/java.util.rb:21)
at Proc.call(C:/Users/Turturica/Utils/eclipse/plugins/org.jruby_1.5.3.1285771297/lib/ruby/site_ruby/shared/builtin/java/java.util.rb:21)
at Java::JavaUtil::Collection.each(C:/Users/Turturica/Utils/eclipse/configuration/org.eclipse.osgi/bundles/427/1/.cp/framework/ruble.rb:3)
at (unknown).(unknown)(C:/Users/Turturica/Utils/eclipse/configuration/org.eclipse.osgi/bundles/427/1/.cp/framework/ruble.rb:1)
at Kernel.require(
at (unknown).(unknown)(:1)

  1. Support Staff 1 Posted by Chris Williams on 03 Nov, 2010 02:15 PM

    Chris Williams's Avatar

    Something sounds broken with your install. The error is complaining it can't load up an internal scripting API file, which should be there.

  2. 2 Posted by JoNO . on 03 Nov, 2010 05:58 PM

    JoNO .'s Avatar

    Those fiiles are there but I guess they can't be loaded because I don't have any Ruby stuff installed on my PC (and I don't want to have that).

    I reinstalled pydev and django template editor and I keep getting the exact errors.

  3. 3 Posted by dfsdfsd on 11 Feb, 2011 05:23 PM

    's Avatar

    uninstalling pydev and pydev django template editor solves this problem

  4. Support Staff 4 Posted by Fabio Zadrozny on 11 Feb, 2011 05:30 PM

    Fabio Zadrozny's Avatar

    Actually, how did you install the Django Templates Editor? I mean, Pydev is either distributed alone (which should work with Eclipse) or with Aptana Studio (and the Django templates should only be available within Aptana Studio because of its dependencies) -- so, it seems some place is letting you do a thing that shouldn't be done. See: http://pydev.org/download.html

  5. Support Staff 5 Posted by Fabio Zadrozny on 11 Feb, 2011 05:32 PM

    Fabio Zadrozny's Avatar

    Oh, I think I got it (this was actually an old issue: previously the django templates editor was really available in the pydev update site, but it has been removed from quite some time already -- so, I'm closing this issue).

  6. Fabio Zadrozny closed this discussion on 11 Feb, 2011 05:32 PM.

  7. JoNO . re-opened this discussion on 11 Feb, 2011 06:14 PM

  8. 6 Posted by JoNO . on 11 Feb, 2011 06:14 PM

    JoNO .'s Avatar

    I'm still seeing the exact same problem on the latest builds:

    PyDev Django Templates Editor   1.6.5.2011012519
    PyDev for Eclipse   1.6.5.2011012519
    

    I'm running Eclipse:
    Version: 3.5.2
    Build id: M20100211-1343

    I have installed both of them through Eclipse update manager from the nightly builds (http://pydev.org/nightly) repository.

  9. 7 Posted by David on 22 Apr, 2011 05:58 PM

    David's Avatar

    I have the same problem when setting up dev environment on a new machine two days ago.
    I only wanted PyDev and no Aptana just as on my other machine. But now there seems to be a dependency on Aptana Studio.
    After installing Aptana, the error with "loading ruble/ui" is gone. Aptana Studio is a little too much but you can turn it off.

    David

    PyDev2.0/Eclipse3.5.2/Ubuntu10.04

  10. 8 Posted by Miles Daffin on 30 Nov, 2011 11:31 AM

    Miles Daffin's Avatar

    We have just experienced this issue in our environment. If a user tries to install Pydev and Aptana Studio 3 is available in any enabled p2 repository then bits of Aptana get installed too. If Aptana Studio 3 is unavailable then Pydev still installs fine. Do you know why this is happening? Do you need to clean up Pydev dependency declarations so that this does not happen?

  11. Support Staff 9 Posted by Fabio Zadrozny on 30 Nov, 2011 11:54 AM

    Fabio Zadrozny's Avatar

    The problem is that PyDev does have an optional dependency to Aptana Studio 3 (at least some core parts of it to take advantage of some features when it's available), and if during the install process you leave the option 'contact all update sites during install to find required software', it'll try to gather even optional stuff.

    I think I'll need to tweak my build so that when PyDev is built standalone, those dependencies are removed so that this won't happen anymore (the way it is, if you install only PyDev, you can't install Aptana -- and vice-versa, so, this should be OK).

    Will mark to do this for the next release (2.2.5) -- until there, either don't add both update sites in the same installation or uncheck the 'contact all update sites during install to find required software'. during the install process.

    Cheers,

    Fabio

  12. Fabio Zadrozny closed this discussion on 30 Nov, 2011 11:54 AM.

  13. Miles Daffin re-opened this discussion on 30 Nov, 2011 12:14 PM

  14. 10 Posted by Miles Daffin on 30 Nov, 2011 12:14 PM

    Miles Daffin's Avatar

    Thanks Fabio. Just out of interest, which pydev IU has the optional dependency on Aptana? I would like to take a look at it.

  15. Support Staff 11 Posted by Fabio Zadrozny on 30 Nov, 2011 12:36 PM

    Fabio Zadrozny's Avatar

    The plugin which has the dependency is org.python.pydev.red_core
    (org.python.pydev.red_core\META-INF\MANIFEST.MF has:
    com.aptana.editor.common;resolution:=optional
    com.aptana.theme;resolution:=optional,

    It has the theming integration to match how Aptana Studio editors work
    with colors, the find bar and integration in the Aptana App Explorer.

    On a 2nd thought, probably that whole plugin doesn't need to be
    distributed when running PyDev standalone (still, the build has to be
    tweaked to allow that).

    >

  16. Fabio Zadrozny closed this discussion on 30 Nov, 2011 12:36 PM.

  17. Miles Daffin re-opened this discussion on 30 Nov, 2011 12:47 PM

  18. 12 Posted by Miles Daffin on 30 Nov, 2011 12:47 PM

    Miles Daffin's Avatar

    Last question: when is 2.2.5 due out?

  19. Support Staff 13 Posted by Fabio Zadrozny on 30 Nov, 2011 01:00 PM

    Fabio Zadrozny's Avatar

    There's still no date set for it, but it should be within the next 2-3 weeks.

  20. 14 Posted by Wayne Pascoe on 02 Apr, 2012 01:12 PM

    Wayne Pascoe's Avatar

    I'm still seeing this same issue with the latest build of Eclipse and the plugins from the pydev repository.

    Eclipse build is M20120208-0800
    Pydev update location is http://pydev.org/updates
    Pydev feature being installed is org.python.pydev.feature
    Pydev version is 2.4.0.2012020116

    After installing just this plugin and restarting Eclipse, I get errors similar to the following:

    An internal error occurred during: "Loading bundle: C:\BASE\eclipseide\eclipse\configuration\org.eclipse.osgi\bundles\856\1.cp\bundles\capistrano.ruble".
    (LoadError) no such file to load -- ruble/ui

    An internal error occurred during: "Loading bundle: C:\BASE\eclipseide\eclipse\configuration\org.eclipse.osgi\bundles\856\1.cp\bundles\css.ruble".
    (LoadError) no such file to load -- ruble/ui

    C:\BASE\eclipseide\eclipse\configuration\org.eclipse.osgi\bundles\856\1.cp\bundles exists with the following contents:

    02/04/2012 13:44 .
    02/04/2012 13:44 ..
    02/04/2012 13:44 bundle-development.ruble
    02/04/2012 13:44 capistrano.ruble
    02/04/2012 13:44 coffeescript.ruble
    02/04/2012 13:44 css.ruble
    02/04/2012 13:44 cucumber.ruble
    02/04/2012 13:44 engineyard.ruble
    02/04/2012 13:44 380 FORCE_BUNDLE_UPDATE
    02/04/2012 13:44 haml.ruble
    02/04/2012 13:44 heroku.ruble
    02/04/2012 13:44 html.ruble
    02/04/2012 13:44 js.ruble
    02/04/2012 13:44 json.ruble
    02/04/2012 13:44 math.ruble
    02/04/2012 13:44 php.ruble
    02/04/2012 13:44 rails.ruble
    02/04/2012 13:44 rspec.ruble
    02/04/2012 13:44 ruby.ruble
    02/04/2012 13:44 sass.ruble
    02/04/2012 13:44 shell-script.ruble
    02/04/2012 13:44 source.ruble
    02/04/2012 13:44 text.ruble
    02/04/2012 13:44 xml.ruble
    02/04/2012 13:44 yaml.ruble

  21. 15 Posted by Abhishek Pratap on 09 May, 2012 10:43 PM

    Abhishek Pratap's Avatar

    I see the same issue

    bundles/320/1/.cp/bundles/bundle-development.ruble".
    (LoadError) no such file to load -- ruble/ui

  22. 16 Posted by Luca on 16 May, 2012 07:01 PM

    Luca's Avatar

    I do too.

    I uninstalled PyDev and I'm going to use some other tool for Python development.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2014 01:31 PM
22 Oct, 2014 06:14 PM
21 Oct, 2014 03:20 AM
20 Oct, 2014 11:48 PM
17 Oct, 2014 09:54 AM

Recent Articles