products forums blog support careers about
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ROR-406
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Chris Williams
Reporter: Ryan Davies
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Aptana RadRails

Unable to create this part due to an internal error. Reason for the failure: Assertion failed:

Created: 29/Jan/08 08:24 PM   Updated: 30/Jan/08 03:38 PM
Component/s: Editor: Ruby
Affects Version/s: 0.9.3
Fix Version/s: 1.0.0

File Attachments: 1. File Bot.rb (40 kb)


Importance: Critical
Studio Install Type: Standalone
Operating System: Windows XP, Ubuntu
Participants: Chris Williams, Ingo Muschenetz and Ryan Davies


 Description  « Hide
When trying to open a .rb file of approx 1500 lines, Aptana fails with:

Unable to create this part due to an internal error. Reason for the failure: Assertion failed:

org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.text.Assert.isTrue(Assert.java:188)
at org.eclipse.jface.text.Assert.isTrue(Assert.java:173)
at org.eclipse.jface.text.Position.setLength(Position.java:183)
at org.eclipse.jface.text.rules.FastPartitioner.computePartitioning(FastPartitioner.java:634)
at org.eclipse.jface.text.AbstractDocument.computePartitioning(AbstractDocument.java:1301)
at org.eclipse.jface.text.TextUtilities.computePartitioning(TextUtilities.java:426)
at org.eclipse.jface.text.presentation.PresentationReconciler.createPresentation(PresentationReconciler.java:443)
at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:560)
at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:558)
at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.inputDocumentChanged(PresentationReconciler.java:118)
at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2458)
at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2507)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:521)
at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:370)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:467)
at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:2937)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2684)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:367)
at org.rubypeople.rdt.internal.ui.rubyeditor.RubyAbstractEditor.createPartControl(RubyAbstractEditor.java:340)
at org.rubypeople.rdt.internal.ui.rubyeditor.RubyEditor.createPartControl(RubyEditor.java:349)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
at org.rubypeople.rdt.internal.ui.rubyeditor.EditorUtility.openInEditor(EditorUtility.java:83)
at org.rubypeople.rdt.internal.ui.rubyeditor.EditorUtility.openInEditor(EditorUtility.java:70)
at org.rubypeople.rdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:19)
at org.rubypeople.rdt.ui.actions.OpenAction.run(OpenAction.java:164)
at org.rubypeople.rdt.ui.actions.OpenAction.run(OpenAction.java:148)
at org.rubypeople.rdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:239)
at org.rubypeople.rdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:217)
at org.rubypeople.rdt.internal.ui.packageview.RubyExplorerActionGroup.handleOpen(RubyExplorerActionGroup.java:293)
at org.rubypeople.rdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:637)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.aptana.ide.rcp.AbstractIDEApplication.run(AbstractIDEApplication.java:116)
at com.aptana.ide.rcp.Application.run(Application.java:43)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)



 All   Comments   Change History      Sort Order:
Ingo Muschenetz - 29/Jan/08 08:37 PM
Hi Chris--looks more in your arena.

-Ingo


Chris Williams - 30/Jan/08 08:15 AM
Can you attach the file which caused this to the ticket? (Or if you're worried about that can you trim it down to some portion of the file that still causes this to happen)?

Ryan Davies - 30/Jan/08 01:58 PM
File uploaded as requested. It opens in the Aptana Text editor, however the Aptana Ruby Editor fails with the above messages

Ryan Davies - 30/Jan/08 02:36 PM
appears I was incorrect, the file is only 1025 lines. Error is still present even if file is in a Ruby project or not.

Chris Williams - 30/Jan/08 02:43 PM
Hmm looks like I did something in the past that fixed this already. It's working for me in the 1.0.0 code (and I was able to reproduce the error in 0.9.3).

Ryan Davies - 30/Jan/08 02:54 PM
so what Do i have to do for this to work? Am i waiting for an unreleased version of Aptana? Im running the latest versions from the website (Downloaded 2 days ago)

Chris Williams - 30/Jan/08 03:37 PM - edited
You'll have to wait for the 1.0 release of RadRails. (or alternatively, if you become a pro user you could grab nightly of RadRails with the fix: https://www.aptana.com/store/buy/).