Open allenatdecisiv opened 10 years ago
I saw this today as well and filed a ticket: https://jira.appcelerator.org/browse/TISTUD-6961
It's a result of Eclipse 4.4.1 sticking an anonymous class in as a value in System.properties and JRuby assuming all values are Strings. I'll have to upgrade/patch JRuby to fix this.
Anything I can help with?
Caused by jruby/jruby#1139
I'll have to try and update our bundled JRuby and see if it seems to work right.
Has this issue been resolved ?
I've updated the bundled JRuby on our development branch, in this commit: https://github.com/aptana/studio3/commit/5c2ee44fd6d6b603a0ea033bdd3271e6a6785e83
The fix has not made it out into any release whatsoever, but if you're feeling brave you could get the fix by using our "nightly" build, The build/update site for studio on top of eclipse is http://preview.appcelerator.com/aptana/studio3/plugin/update/nightly/
ah thank you sgtcoolguy - much appreciated - i'll give it a shot :)
Yep, me too!
@sgtcoolguy are there no Jenkins builds I can download?
I've got 3.7.0 installed: 3.7.0.201409191236-7f7E37jBU_kz-XQcL3WrJBsU2hBV 3.7.0.1411149138-B07i83C4Z2gd1kRMn9833355984B
@allenatdecisiv We push builds out to that server every night, assuming they pass our suite of tests. When I hit that update site, the published build is Aptana Studio 3 Plugin 3.7.0.201410061634-7f7E37jBUaqpSQbQ3SrJCsf2hDTo
The last segment of the version is a qualifier that starts with a date, you need a build that is after the commit time (which was around September 30th). The current build offered should fix the issue.
the initial error is no longer but eclispe console is logging this - not sure if this is related
[2014-10-09 19:30:13] No bundle found for command Align Table Cells: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\align_table_cells.rb [2014-10-09 19:30:13] No bundle found for command Goto Alternate File: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\alternate_file.rb [2014-10-09 19:30:13] No bundle found for command Autocomplete Step: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\autocomplete_step.rb [2014-10-09 19:30:13] An error occurred while parsing C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\bundle.rb: (SyntaxError) C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\bundle.rb:4: invalid multibyte char (US-ASCII) [2014-10-09 19:30:14] No bundle found for command Documentation for Tag: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\documentation_for_tag.rb [2014-10-09 19:30:14] No bundle found for command Autoformat Feature (using Cucumber): C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\autoformat_feature_using_cucumber.rb [2014-10-09 19:30:14] No bundle found for command Choose Alternate File: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\choose_alternate_file.rb [2014-10-09 19:30:14] No bundle found for command Create All Undefined Steps: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\create_unimplemented_steps.rb [2014-10-09 19:30:14] No bundle found for command Insert Call to Parent: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\insert_call_to_parent.rb [2014-10-09 19:30:14] No bundle found for command Documentation for Word: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\lookup_word_in_php_manual.rb [2014-10-09 19:30:15] No bundle found for command Help: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\phpdoc_help.rb [2014-10-09 19:30:15] No bundle found for command Goto Current Step: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\goto_current_step.rb [2014-10-09 19:30:15] No bundle found for command Post-doc: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\post-doc.rb [2014-10-09 19:30:15] No bundle found for content_assist Plain Text Feature Completions: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\plain_text_feature_completion.rb [2014-10-09 19:30:16] No bundle found for command Run Single Scenario: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\run_single_scenario.rb [2014-10-09 19:30:16] No bundle found for command Run: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\run_php.rb [2014-10-09 19:30:16] No bundle found for command Run Feature: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\commands\run_story.rb [2014-10-09 19:30:16] No bundle found for command Special: Return Inside an Empty Tag: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\special__return_inside_an_empty_tag.rb [2014-10-09 19:30:16] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\snippets\feature_snippets.rb [2014-10-09 19:30:16] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\889\0.cp\bundles\cucumber.ruble\snippets\step_snippets.rb [2014-10-09 19:30:16] No bundle found for command Validate Syntax: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\validate_syntax.rb [2014-10-09 19:30:16] No bundle found for command Wrap Docblock at 80 Characters: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\commands\wrap_docblock_at_80_characters.rb [2014-10-09 19:30:16] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\snippets\snippets.rb [2014-10-09 19:30:16] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\snippets\snippets.rb [2014-10-09 19:30:16] No bundle found for template PHP Template: C:\Program Files (x86)\eclipse\configuration\org.eclipse.osgi\860\0.cp\bundles\php.ruble\templates\templates.rb
I get something similar.
Windows 7 x64 java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
3.7.0.201410061634-7f7E37jBUaqpSQbQ3SrJCsf2hDTo com.aptana.feature.studio 3.7.0.1412635428-B07j8FC4a1Sa6jtra9833355984B com.aptana.feature
[2014-10-09 13:56:05] An error occurred while parsing C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\bundle.rb: (SyntaxError) C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\bundle.rb:10: invalid multibyte char (US-ASCII)
[2014-10-09 13:56:05] An error occurred while parsing C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\bundle.rb: (SyntaxError) C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\bundle.rb:4: invalid multibyte char (US-ASCII)
[2014-10-09 13:56:05] No bundle found for command Align Table Cells: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\align_table_cells.rb
[2014-10-09 13:56:05] No bundle found for command Goto Alternate File: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\alternate_file.rb
[2014-10-09 13:56:05] No bundle found for command Documentation for Tag: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\documentation_for_tag.rb
[2014-10-09 13:56:05] No bundle found for command Autocomplete Step: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\autocomplete_step.rb
[2014-10-09 13:56:05] No bundle found for command Autoformat Feature (using Cucumber): C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\autoformat_feature_using_cucumber.rb
[2014-10-09 13:56:05] No bundle found for command Insert Call to Parent: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\insert_call_to_parent.rb
[2014-10-09 13:56:06] No bundle found for command Choose Alternate File: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\choose_alternate_file.rb
[2014-10-09 13:56:06] No bundle found for command Create All Undefined Steps: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\create_unimplemented_steps.rb
[2014-10-09 13:56:06] No bundle found for command Documentation for Word: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\lookup_word_in_php_manual.rb
[2014-10-09 13:56:06] No bundle found for command Help: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\phpdoc_help.rb
[2014-10-09 13:56:06] No bundle found for command Post-doc: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\post-doc.rb
[2014-10-09 13:56:06] No bundle found for command Run: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\run_php.rb
[2014-10-09 13:56:06] No bundle found for command Goto Current Step: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\goto_current_step.rb
[2014-10-09 13:56:06] No bundle found for content_assist Plain Text Feature Completions: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\plain_text_feature_completion.rb
[2014-10-09 13:56:06] No bundle found for command Run Single Scenario: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\run_single_scenario.rb
[2014-10-09 13:56:06] No bundle found for command Run Feature: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\commands\run_story.rb
[2014-10-09 13:56:06] No bundle found for command Special: Return Inside an Empty Tag: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\special__return_inside_an_empty_tag.rb
[2014-10-09 13:56:06] No bundle found for command Validate Syntax: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\validate_syntax.rb
[2014-10-09 13:56:06] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\snippets\feature_snippets.rb
[2014-10-09 13:56:06] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\eclipse\configuration\org.eclipse.osgi\1418\0\.cp\bundles\cucumber.ruble\snippets\step_snippets.rb
[2014-10-09 13:56:06] No bundle found for command Wrap Docblock at 80 Characters: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\commands\wrap_docblock_at_80_characters.rb
[2014-10-09 13:56:06] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\snippets\snippets.rb
[2014-10-09 13:56:06] Attempted to define a bundle in a file other than the bundle's bundle.rb file: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\snippets\snippets.rb
[2014-10-09 13:56:07] No bundle found for template PHP Template: C:\eclipse\configuration\org.eclipse.osgi\1391\0\.cp\bundles\php.ruble\templates\templates.rb
To my eye it looks like JRuby might have changed how they handle encoding/parsing? Probably some unicode character is breaking the php and cucumber rubles now. I'll have to look into it deeper.
@sgtcoolguy yep, I think you are right. I don't know anything about jruby, but it does appear encoding changes happend in the update. For kicks, I added:
# encoding: utf-8
to bundle.rb for cucumber.ruble and php.ruble. That got past php.ruble errors but then I get syntax errors in cucumber.ruble:
; (SyntaxError) (RegexpError) target of repeat operator is not specified: /(?-mix:^\s*\b(Cenário|Cenario|Escenari|Escenario|Forgatókönyv|MISHUN|Mate|Scenarie|Scenarijus|Scenario|Scenariu|Scenariusz|Scenár|Scen?rijs|Scénario|Scéná?|Skenario|Stsenaarium|Szenario|Tapaus|Tình hu?ng|K?ch b?n|????????|?????|???????|????|??|??|??|????))/; in 'reader', line 3438, column 22:
foldingStartMarkers: {!scope 'text.cucumber.feature': ...
^
@sgtcoolguy I removed the Cyrillic / Kanji letters from:
start_folding = /^\s*\b(Cenário|Cenario|Escenari|Escenario|Forgatókönyv|MISHUN|Mate|Scenarie|Scenarijus|Scenario|Scenariu|Scenariusz|Scenár|Scenārijs|Scénario|Scénář|Skenario|Stsenaarium|Szenario|Tapaus|Tình huống|Kịch bản)/
and I've got no errors now.
Yeah, so the fix here is to add the encoding to the bundle.rb headers like @allenatdecisiv did, plus I need to make a change to how we de-serialize the cache YMl files we use to load bundles from cached state. Basically it mangled regexps that used UTF-8 chars by assuming US_ASCII default encoding. My "fix" is to force UTF-8 encoding when constructing the regexp from the underlying string.
Here's the PR for the Java end (cache): https://github.com/aptana/studio3/pull/271
And I've pushed the explicit utf-8 encoding header to the bundle/rb for those two rubles.
Everything working for me now - I just noticed that if you click on bundle development -> install bundle - the title is missing - it shows: select_bundle_to_install
@sgtcoolguy I downloaded and installed build #383 from http://studio-jenkins.appcelerator.org/job/studio3-feature-development/.
With Eclipse SDK 4.4.1.M20140925-0400 and latest Nightly Aptana Studio 3 Plugin 3.7.0.201411111149-7f7E37jBUdrqQOhM5UrJCsf2qSoa i still get errors on startup like:
An internal error occurred during: "Loading bundle: /Users/user/eclipse/configuration/org.eclipse.osgi/1023/0/.cp/bundles/php.ruble". org.jruby.RubyInstanceConfig.setNativeEnabled(Z)V
Issue is open so it is still not fixed right?
So is me, how to fixe this:
An internal error occurred during: "Loading bundle: C:\CI-Tools\IDE\Enide-Studio-2014.17-luna-SR1-win64\eclipse\configuration\org.eclipse.osgi\610\0.cp\bundles\yaml.ruble". org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
Dear sgtcoolguy or allenatdecisiv Could you please explain to me in simple steps what I have to do here? This is currently preventing me from using the Aptana plugin on Eclipse.
(I am not an Eclipse newb but have no idea where "start_folding" is located or what I'm meant to do with "Here's the PR for the Java end (cache): #271 - And I've pushed the explicit utf-8 encoding header to the bundle/rb for those two rubles.")
Thanks for yr understanding! >:-)
@Mrodent Upgrade aptana studio or upgrade Eclipse to 4.4.2. The fixes have landed in each of them.
Thanks for the quick answer... I just tried to upgrade from 4.4.1: "no upgrades found". Not surprising as I downloaded the zip again yesterday. This is the community (free) edition "Version: Luna Service Release 1a (4.4.1), Build id: 20150109-0600" (32-bit edition)
I have Aptana studio (non-plugin) ... but I'd rather use Eclipse for everything. Any suggestions how to get 4.4.2? Thanks
From: Christopher Williams <notifications@github.com>
To: aptana/studio3 studio3@noreply.github.com Cc: Mrodent mrodent33@yahoo.co.uk Sent: Wednesday, 18 February 2015, 20:23 Subject: Re: [studio3] update to Eclipse 4.4.1 (Luna Service Release 1) causes ruble load errors (#263)
@Mrodent Upgrade aptana studio or upgrade Eclipse to 4.4.2. The fixes have landed in each of them.— Reply to this email directly or view it on GitHub.
@Mrodent Looks like 4.4.2 (Or "Luna SR2" hasn't yet hit GA. They have an RC3 available: https://eclipse.org/downloads/index-developer.php?release=luna)
Thanks For those who don't know these acronyms RC: "Release Candidate" GA: "General Availability"
I am using Code Composer Studio which is currently based on 4.4.1 using the Aptana plugin 3.6.0.201407100643. I am stuck with 4.4.1 until TI update Code Composer and I am running the latest plugin (as far as I can tell there's nothing newer) is there any way to fix this up until there's a new release of either?
This issue now should focus at least in Mars update https://eclipse.org/downloads/index-developer.php?release=mars
Windows 7 64-bit
java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
Eclipse Standard/SDK Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800
Aptana Studio 3 3.7.0.201409191236-7f7E37jBU_kz-XQcL3WrJBsU2hBV
I updated Eclipse Luna from 4.4.0 to 4.4.1 and I am now getting these errors on load: