Community
Participate
Working Groups
Steps to reproduce: 1. Install latest build of "Eclipse IDE for JavaScript and Web Developers" 2. Create project with bower.json / package.json / gulpfile.js etc. 3. Right-Click on one of the file from "Project Explorer" view 4. Error -> Run As actions are not available Run As actions are available from Project Explorer when installed via "Eclipse IDE for Java EE Developers". Also, they are available if right-click on the file directly from the Editor.
Mickael, have you got any ideas why this can happen ?
Are the necessary feature part of the EPP package? Shouln't main JSDT feature include them?
@Mickael it should. The weird thing is that "Run As" available when right-clicking from the editor, but not from the Project Explorer
The bundle that contributes the "run as" menu may be missing. I cannot check more right now.
Probably related: http://insights.sigasi.com/tech/run-menu-item-strangely-disappearing-context-menu.html . I'm still investigating the track of a missing bundle JSDT should add as a dependency.
The "magic" adopter factory that's missing in the JS package is contributed by org.eclipse.ant.ui. In order to have JSDT work properly without the org.eclipse.ant.ui bundle, it has to provide and adapter for the types it's able to run (JS projects, js files, bower files...).
(In reply to Mickael Istria from comment #6) > The "magic" adopter factory that's missing in the JS package is contributed > by org.eclipse.ant.ui. > In order to have JSDT work properly without the org.eclipse.ant.ui bundle, > it has to provide and adapter for the types it's able to run (JS projects, > js files, bower files...). More precisely: http://git.eclipse.org/c/platform/eclipse.platform.git/tree/ant/org.eclipse.ant.ui/plugin.xml#n436
New Gerrit change created: https://git.eclipse.org/r/73364
@Mickael great investigation. Can we treat the gerrit change above as a relevant hot-fix (tagging all Resources as Launchable) ?
(In reply to Mickael Istria from comment #7) > (In reply to Mickael Istria from comment #6) > > The "magic" adopter factory that's missing in the JS package is contributed > > by org.eclipse.ant.ui. > > In order to have JSDT work properly without the org.eclipse.ant.ui bundle, > > it has to provide and adapter for the types it's able to run (JS projects, > > js files, bower files...). > > More precisely: > http://git.eclipse.org/c/platform/eclipse.platform.git/tree/ant/org.eclipse. > ant.ui/plugin.xml#n436 Plugin.xml in jdt.debug.ui has <factory class="" adaptableType="org.eclipse.core.resources.IResource"> <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/> </factory> That doesn't help ?
Oh!! I see now, this package doesn't have JDT.
(In reply to Ilya Buziuk from comment #9) > @Mickael great investigation. Can we treat the gerrit change above as a > relevant hot-fix (tagging all Resources as Launchable) ? Yes, I believe this should get into next RC of JSDT. I'm doubtful about this approach in general for the IDE (see bug 494229), but since ant and jdt use it, there is no reason JSDT couldn't.
PMC Defect Candidate info: 1. The bug was found just after eclipse may newsletter was published and reported via twitter[1]. Basically, the bug ruins usability of JSDT Node.js Tools (bower, npm, Node.js) when installed via "Eclipse IDE for JavaScript and Web Developers" 2. Workaround is using "Run As" launch shortcuts via Editor instead of Project Explorer. The workaround is insufficient due to the fact usability is still broken and end-user can not use Project Explorer for tools launch. 3. The fix was tested via building local JSDT update site and installing JSDT features on top of "eclipse-javascript-neon-M7-linux-gtk-x86_64". 4. No risk associated with the fix. [1] https://twitter.com/jperiodlangley/status/733499183823478784?cn=cmVwbHk%3D&refsrc=email
approved - thanks for the patch
Gerrit change https://git.eclipse.org/r/73364 was merged to [master]. Commit: http://git.eclipse.org/c/jsdt/webtools.jsdt.git/commit/?id=d56f24c0b359a65d05be5a94f82ae828fa4aa8ce