facebook

Illegal argument when browsing sources

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #523885 Reply

    Fedor Losev
    Participant

    This happens for all global types e.g. HTMLxxx, for example:

    let x: HTMLImageElement;

    x. context assist will show correct img properties list, however, tooltip on HTMLImageElement hover shows

    interface HTMLImageElement
    var HTMLImageElement: {
     new (): HTMLImageElement;
     prototype: HTMLImageElement;
    }
    

    and CTRL+Hover or CTRL+Click results in “java.lang.IllegalArgumentException” popup, the error in the log:

    
    java.lang.IllegalArgumentException
    	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:77)
    	at com.genuitec.eclipse.typescript.EclipseResources.getFile(EclipseResources.java:116)
    	at com.genuitec.eclipse.typescript.text.TypeScriptDefinitionHyperlink.getHyperlinkText(TypeScriptDefinitionHyperlink.java:38)
    	at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$LinkListInformationControl$LinkLabelProvider.getText(MultipleHyperlinkPresenter.java:123)
    	at org.eclipse.jface.viewers.ColumnLabelProvider.update(ColumnLabelProvider.java:34)
    	at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:141)
    	at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:389)
    	at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:474)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
    	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
    	at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2170)
    	at org.eclipse.jface.viewers.AbstractTableViewer.createItem(AbstractTableViewer.java:280)
    	at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:722)
    	at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:614)
    	at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:606)
    	at org.eclipse.jface.viewers.AbstractTableViewer.lambda$0(AbstractTableViewer.java:568)
    	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1458)
    	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1419)
    	at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:568)
    	at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:286)
    	at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1696)
    	at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$LinkListInformationControl.deferredCreateContent(MultipleHyperlinkPresenter.java:249)
    	at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$LinkListInformationControl.setInput(MultipleHyperlinkPresenter.java:164)
    	at org.eclipse.jface.text.AbstractInformationControlManager.internalShowInformationControl(AbstractInformationControlManager.java:1194)
    	at org.eclipse.jface.text.AbstractInformationControlManager.presentInformation(AbstractInformationControlManager.java:1163)
    	at org.eclipse.jface.text.AbstractInformationControlManager.setInformation(AbstractInformationControlManager.java:428)
    	at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter$MultipleHyperlinkHoverManager.computeInformation(MultipleHyperlinkPresenter.java:588)
    	at org.eclipse.jface.text.AbstractInformationControlManager.doShowInformation(AbstractInformationControlManager.java:1144)
    	at org.eclipse.jface.text.AbstractInformationControlManager.showInformation(AbstractInformationControlManager.java:1134)
    	at org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter.showHyperlinks(MultipleHyperlinkPresenter.java:788)
    	at org.eclipse.jface.text.hyperlink.HyperlinkManager.showHyperlinks(HyperlinkManager.java:554)
    	at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:456)
    	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
    	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
    	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    	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.equinox.launcher.Main.invokeFramework(Main.java:673)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
    

    Not sure if it can easily be corrected for browse functionality, but the sudden error popup when hovering with CTRL over source is really disruptive.

    #523887 Reply

    support-swapna
    Moderator

    Fedor,

    Sorry that you are seeing this issue. I do not see the exception logged at my end when hovering with Ctrl on global types.

    Do you see the problem in other ts files across other workspaces as well? I have filed the stacktrace and the concern regarding tooltip info for investigation with the dev team. They are looking into it.

    Thank you for reporting. Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Illegal argument when browsing sources

You must be logged in to post in the forum log in