org.eclipse.xtext.formatting2.FormattingNotApplicableException

GitHub | ngaud | 3 months ago
  1. 0

    Error during autoformatting SARL code CTR+F

    GitHub | 3 months ago | ngaud
    org.eclipse.xtext.formatting2.FormattingNotApplicableException
  2. 0

    FormattingNotApplicableException in MaxLineWidthDocument.validate (55)

    Eclipse Bugzilla | 2 years ago | error-reports-inbox
    org.eclipse.xtext.formatting2.FormattingNotApplicableException: null

    Root Cause Analysis

    1. org.eclipse.xtext.formatting2.FormattingNotApplicableException

      No message provided

      at org.eclipse.xtext.formatting2.internal.MaxLineWidthDocument.validate()
    2. org.eclipse.xtext
      XbaseFormatter._format
      1. org.eclipse.xtext.formatting2.internal.MaxLineWidthDocument.validate(MaxLineWidthDocument.java:55)
      2. org.eclipse.xtext.formatting2.internal.MaxLineWidthDocument.validate(MaxLineWidthDocument.java:60)
      3. org.eclipse.xtext.formatting2.internal.MaxLineWidthDocument.addReplacer(MaxLineWidthDocument.java:32)
      4. org.eclipse.xtext.formatting2.internal.FormattableDocument.set(FormattableDocument.java:310)
      5. org.eclipse.xtext.formatting2.internal.FormattableDocument.append(FormattableDocument.java:83)
      6. org.eclipse.xtext.xbase.formatting2.XbaseFormatter.formatExpressionsMultiline(XbaseFormatter.java:1990)
      7. org.eclipse.xtext.xbase.formatting2.XbaseFormatter._format(XbaseFormatter.java:1715)
      7 frames
    3. org.eclipse.xtend
      XtendFormatter.format
      1. org.eclipse.xtend.core.formatting2.XtendFormatter.format(XtendFormatter.java:849)
      1 frame
    4. io.sarl.lang
      SARLFormatter.format
      1. io.sarl.lang.formatting2.SARLFormatter.format(SARLFormatter.java:171)
      1 frame
    5. org.eclipse.xtext
      ContentFormatter.format
      1. org.eclipse.xtext.formatting2.internal.FormattableDocument.format(FormattableDocument.java:180)
      2. org.eclipse.xtext.xbase.formatting2.XbaseFormatter$20.format(XbaseFormatter.java:404)
      3. org.eclipse.xtext.formatting2.internal.ConditionalReplacer.createReplacements(ConditionalReplacer.java:41)
      4. org.eclipse.xtext.formatting2.internal.FormattableDocument.createReplacements(FormattableDocument.java:143)
      5. org.eclipse.xtext.formatting2.internal.FormattableDocument.renderToTextReplacements(FormattableDocument.java:282)
      6. org.eclipse.xtext.formatting2.AbstractFormatter2.format(AbstractFormatter2.java:270)
      7. org.eclipse.xtext.ui.editor.formatting2.ContentFormatter.exec(ContentFormatter.java:90)
      8. org.eclipse.xtext.ui.editor.formatting2.ContentFormatter$FormattingUnitOfWork.exec(ContentFormatter.java:57)
      9. org.eclipse.xtext.ui.editor.formatting2.ContentFormatter$FormattingUnitOfWork.exec(ContentFormatter.java:1)
      10. org.eclipse.xtext.resource.OutdatedStateManager.exec(OutdatedStateManager.java:98)
      11. org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.internalReadOnly(XtextDocument.java:520)
      12. org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.priorityReadOnly(XtextDocument.java:485)
      13. org.eclipse.xtext.ui.editor.model.XtextDocument.priorityReadOnly(XtextDocument.java:142)
      14. org.eclipse.xtext.ui.editor.formatting2.ContentFormatter.format(ContentFormatter.java:103)
      14 frames
    6. JFace Text
      ProjectionViewer.doOperation
      1. org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:995)
      2. org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1461)
      2 frames
    7. org.eclipse.xtend
      RichStringAwareSourceViewer.doOperation
      1. org.eclipse.xtend.ide.editor.RichStringAwareSourceViewer.doOperation(RichStringAwareSourceViewer.java:260)
      1 frame
    8. io.sarl.lang
      SARLSourceViewer.doOperation
      1. io.sarl.lang.ui.editor.SARLSourceViewer.doOperation(SARLSourceViewer.java:100)
      1 frame
    9. Text Editor Framework
      TextOperationAction$1.run
      1. org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:130)
      1 frame
    10. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    11. Text Editor Framework
      TextOperationAction.run
      1. org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:127)
      1 frame
    12. JFace
      ActionHandler.execute
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
      2. org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:118)
      2 frames
    13. Workbench
      E4HandlerProxy.execute
      1. org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    15. org.eclipse.e4
      HandlerServiceHandler.execute
      1. org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:54)
      2. org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
      3. org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
      4. org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      5. org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
      5 frames
    16. Commands
      ParameterizedCommand.executeWithChecks
      1. org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
      2. org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)
      2 frames
    17. org.eclipse.e4
      KeyBindingDispatcher$KeyDownFilter.handleEvent
      1. org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
      2. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:286)
      3. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:507)
      4. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:558)
      5. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:378)
      6. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:324)
      7. org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:86)
      7 frames
    18. RWT
      Display.windowProc
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Display.filterEvent(Display.java:1605)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1339)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1366)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1349)
      6. org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1378)
      7. org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:764)
      8. org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3457)
      9. org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:801)
      10. org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2000)
      11. org.eclipse.swt.widgets.Control.windowProc(Control.java:5819)
      12. org.eclipse.swt.widgets.Display.windowProc(Display.java:5490)
      12 frames
    19. org.eclipse.swt
      OS.gtk_main_do_event
      1. org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
      2. org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:9545)
      2 frames
    20. RWT
      Display.eventProc
      1. org.eclipse.swt.widgets.Display.eventProc(Display.java:1275)
      1 frame
    21. org.eclipse.swt
      OS.g_main_context_iteration
      1. org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
      2. org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2495)
      2 frames
    22. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4141)
      1 frame
    23. Eclipse Workbench SWT
      PartRenderingEngine$4.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
      1 frame
    24. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      1 frame
    25. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
      1 frame
    26. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
      1 frame
    27. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
      1 frame
    28. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      1 frame
    29. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
      1 frame
    30. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      1 frame
    31. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      1 frame
    32. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    33. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      4 frames
    34. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    35. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      4 frames