Having an issue with Eclipse on Win 10 (64bit) when working with JavaScript projects. I've tested this problem on both Eclipse Photon and version 2018-09 (64 bit versions) and encountered the same problem on both instances:
After creating a new JavaScript project and script within Eclipse, I noticed that when trying to code and use functions like document.getElementById
, the auto suggestions feature (Ctrl+Space) is not providing any suggestions. Even when trying to access properties like style
, the suggestions window showed "No Default Proposals" or "MISSING".
Similarly, coding HTML and CSS within the script tags resulted in the same issue with the suggestions window being empty or not opening at all in some cases. Even basic tags like <style>
were not being suggested.
It seems that Eclipse can be trained to provide suggestions within the same file, as evidenced by the inputField.style
example. However, this functionality does not extend to accessing the same properties in different scripts.
I have not made any changes to the default settings in Eclipse, including the Content Assist options for JavaScript, HTML, and CSS editors. Despite trying different configurations, the issue persists.
It's worth noting that this problem is isolated to JavaScript projects, as I have not encountered similar issues while working on a Java project using Eclipse Mars.2.
Any suggestions or insights on how to resolve this problem without resorting to installing additional plugins would be greatly appreciated.
Edit: Further testing revealed that this issue is specific to Eclipse Photon and 2018-09 versions, as it works fine on Eclipse Mars.2 (PHP). However, I would prefer to find a solution for the newer versions rather than reverting to an older release.