Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327414 - Unable to create editor ID org.eclipse.php.editor: Argument not valid
Summary: Unable to create editor ID org.eclipse.php.editor: Argument not valid
Status: CLOSED DUPLICATE of bug 326247
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-11 00:43 EDT by thaddeusmt CLA
Modified: 2010-10-12 12:33 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thaddeusmt CLA 2010-10-11 00:43:23 EDT
Build Identifier: 20100917-0705

The problem occurs when opening a PHP file that contains CSS and HTML. The file opens with the text editor, but not the PHP editor.

Reproducible: Always

Steps to Reproduce:
I got this error when opening the following file with the PHP edtor (it opens fine with the text editor):

<style type="text/css">
  <?php if($preview):?>
  body { margin: 0; height:100%; padding: 0; font-family:"lucida grande",tahoma,verdana,arial,sans-serif; font-size:11px; color: #333333; }
  html {height:100%}
  .placeholder {
    overflow: hidden;
    height: 100%;
    width: 100%;
    text-align: center;
  }
  .placeholder div {
    border-radius: 8px;
    -moz-border-radius: 8px;
    border: 2px solid #799bcf;
    opacity: .7;
    background: #fff;
    padding: 10px;
    margin: 10px 5px 2px;
    text-align: center;
    color: #0A4EAF;
  }
  .placeholder strong {
    font-weight: bold;
    font-size: 1.4em;
  }
  <?php endif; ?>
  .fbtabwrapper { width: 520px; margin: 0 auto; background: #fff; }
  .fbtabwrapper  p { margin: 0 0 10px 0; }
  img { border: 0 none; }
  .powered-by {
    font-size: .9em;
    color: #333333;
    font-style: italic;
    line-height: 26px;
    text-align: right;
  }
  .powered-by a {
    display:block;
    width: 110px;
    height: 26px;
    float: right;
    background: url(<?php echo Yii::app()->params->baseUrl ?>/images/splashtab-logo-small.png) no-repeat 0 0;
    overflow: hidden;
    text-indent: -999em;
    text-align: left;
    margin-left: 3px;
    }
  <?php echo $tabcss; ?>
</style>
<div class="fbtabwrapper">
  <?php echo $output; ?>
</div><!-- fbtabwrapper  -->
<?php if(!$preview):?>
<div class="powered-by">Like this tab? Create your own custom Facebook tab at <a href="http://www.splashtab.com">SplashTab.com</a></div>
<?php endif; ?>
Comment 1 thaddeusmt CLA 2010-10-11 00:45:16 EDT
-- Error Details --
Date: Sun Oct 10 22:33:10 MDT 2010
Message: Unable to create editor ID org.eclipse.php.editor: Argument not valid
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.php.product

This is a continuation of log file /var/www/.metadata/.bak_0.log
Created Time: 2010-10-10 21:38:24.996


Exception Stack Trace:
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:4064)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9683)
at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:7705)
at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4803)
at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4882)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.applyTextRegionCollection(StructuredPresentationReconciler.java:893)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.processDamage(StructuredPresentationReconciler.java:868)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler$InternalListener.inputDocumentChanged(StructuredPresentationReconciler.java:271)
at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.install(StructuredPresentationReconciler.java:600)
at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.updateHighlighter(StructuredTextViewer.java:920)
at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.setDocument(StructuredTextViewer.java:802)
at org.eclipse.php.internal.ui.editor.PHPStructuredTextViewer.setDocument(PHPStructuredTextViewer.java:638)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:584)
at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:3873)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3401)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:432)
at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1453)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.createPartControl(PHPStructuredEditor.java:2243)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:405)
at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:166)
at org.eclipse.php.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:54)
at org.eclipse.php.internal.ui.actions.OpenAction.run(OpenAction.java:177)
at org.eclipse.php.internal.ui.actions.OpenAction.run(OpenAction.java:151)
at org.eclipse.php.internal.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:190)
at org.eclipse.php.internal.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:168)
at org.eclipse.php.internal.ui.actions.PHPExplorerActionGroup.handleOpen(PHPExplorerActionGroup.java:144)
at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart$4.open(ScriptExplorerPart.java:667)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:843)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 2 Remy Suen CLA 2010-10-11 06:12:11 EDT
Sounds like bug 326247.
Comment 3 Felipe Heidrich CLA 2010-10-12 12:33:15 EDT
Thanks Remy,

thaddeusmt@gmail.com: please try with a newer build.

*** This bug has been marked as a duplicate of bug 326247 ***