Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 493733 - Endless pop-up dialog: org.eclipse.wst.jsdt.internal.core.dom.binding.VariableBinding cannot be cast to org.eclipse.wst.jsdt.core.dom.IFunctionBinding
Summary: Endless pop-up dialog: org.eclipse.wst.jsdt.internal.core.dom.binding.Variabl...
Status: RESOLVED DUPLICATE of bug 496749
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Linux
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-16 09:08 EDT by Robert Munteanu CLA
Modified: 2016-07-13 18:40 EDT (History)
1 user (show)

See Also:


Attachments
Error log entry (4.41 KB, text/plain)
2016-05-16 09:08 EDT, Robert Munteanu CLA
no flags Details
screen showing the problem (169.94 KB, image/png)
2016-07-11 12:59 EDT, sombriks CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Munteanu CLA 2016-05-16 09:08:45 EDT
Created attachment 261761 [details]
Error log entry

Running

Eclipse Java EE IDE for Web Developers.

Version: Neon Milestone 7 (4.6.0M7)
Build id: 20160505-1310

with JavaScript Development Tools 2.0.0.v201604300029. I have the following issue:

I started editing a JS file which has snipet similar to:

  newThing.prop1 = prop1;
  newThing.prop2 = prop2;

  return newThing;

Before newThing.prop2 I started typing

  new

intending to add another prop to newThing. However, I was greeted by an error dialog which said 

  An error has occurred. See error log for more details.
org.eclipse.wst.jsdt.internal.core.dom.binding.VariableBinding cannot be cast to org.eclipse.wst.jsdt.core.dom.IFunctionBinding

The problem is that everytime I press OK the dialog immediately comes back again. I also noticed that this starts happening if I open the file and just wait a couple of seconds...

The general form of the file ( can't share it ) is

Namespace.Obj = Namespace.Obj ||
  function(param) {
    "use strict";

    var myVal = {};

    function abc() {
       return myVal;
    } 
    // code here

    var retVal = generateRetVal();
    retVal.abc = abc;

    return retVal;
  };
Comment 1 sombriks CLA 2016-07-11 12:59:55 EDT
Created attachment 263021 [details]
screen showing the problem

i can confirm this bug too

just downloaded and installed javascript-neon a few days.

sadly the editor gets blocked untill i click somewhere else in order to clear any kind of selection made.

is there any workaround rather than this?
Comment 2 Victor Rubezhny CLA 2016-07-13 18:40:30 EDT

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