Eclipse Neon Content Assist has no proposals for J

2019-02-07 04:37发布

Bottom Line Up Front: Eclipse Neon content assist (Ctrl+space) does not offer any proposals for my JavaScript code.

Screenshot of empty content assist (ctrl+space)

Here is what I've checked so far:

  1. JSDT has been installed
  2. "JavaScript resources" include ECMASciptBuilt-In Library, ECMA 3 Browser Support Library, jQuery
  3. The project's Include path has ECMAScipt Built-In Library, ECMA 3 Browser Support Library, jQuery, and JavaScript Web Project support
  4. Eclipse's JavaScript Content Assist is enabled and includes Basic proposals, Other JavaScript Proposals, Template Proposals, and word proposals.
  5. I changed the content assist from ctrl+space to ctrl+0 to check whether ctrl+space had been hijacked
  6. Content assist DOES work with regular Java (in a different project)
  7. I tried reset to defaults under Content Assist > Advanced
  8. JavaScript facet is selected for the project
  9. .js files and .jsp files are stored in folders that are under folders that are designated as source folders in the project properties under JavaScript > Include Path
  10. This is also an issue in Mars 2.
  11. I've run through the steps listed here for configuring content assist: http://www.eclipse.org/pdt/help/html/using_javascript_content_assist.htm

The content assist isn't even proposing functions that are defined within the same .js file. How can I get Eclipse's content assist to propose elements correctly?

3条回答
The star\"
2楼-- · 2019-02-07 05:17

I have the same problem and it seems to be a known bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=504057

查看更多
唯我独甜
3楼-- · 2019-02-07 05:22

I've met this situation before,and then I found that if the js file is in a "normal java project",then it won't come uip with content assist,but if the js file is in a "dynamic web project",then the content assist just work well,hope it will help.

查看更多
Lonely孤独者°
4楼-- · 2019-02-07 05:35

+1 not working in Eclipse Neon. As an alternative you may try Netbeans 8. Javascript is working good there. I don't know what happened to Eclipse but php and Js support is poor.

P.S. Just downloaded Eclipse Mars - can confirm that it's working fine.

查看更多
登录 后发表回答