Eclipse Open Declaration Error - Does not resolve to a Javascript element

2.9k Views Asked by At

I am running the Node.js plugin in Eclipse (Nodeclipse). Whenever I try to do open declaration (f3) on a function inside a js file, Eclipse gives me the error

"Current text selection does not resolve to a Javascript element"

Inside my .project file, the project nature is as follows:

<natures>
        <nature>org.nodeclipse.ui.NodeNature</nature>
        <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
        <nature>tern.eclipse.ide.core.ternnature</nature>
</natures>

Any ideas?

1

There are 1 best solutions below

1
Paul Verest On

As I remember, the message comes from JSDT, and to get rid of it, one would need to remove JDST nature, that is remove <nature>org.eclipse.wst.jsdt.core.jsNature</nature> line.