This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Code completion in RHTML files doesn't work when you have unclosed embedded element. To reproduce: - create Ruby application - create RHTML file - type the following inside <body> elements: <%= Date.to| It should offer today but it offers nothing. When there are not html tags in file, it works. Build 20070518-0610, WindowsXP, JDK1.6.0_02-ea.
The rhtml-ruby model does contain some of the html code when the scriptlet token is unfinished which causes the ruby parser not to work properly and hence the CC malfunctions.
Reassigning this issue to newly created 'ruby' component.
This seems to work with the new embedding model; I created an RHTML file, wiped out the default contents and pasted in <% Date.to and hit ctrl-space - it listed the Date.today method along with its documentation.
If you wipe out the default contents, it works. But the issue is, it doesn't work inside html elements as described in original steps to reproduce.
Still reproducible in NB 6.1 build 711. Workaround is to type %>, after that is works.
Works fine. Changing to invalid. Feel free to reopen. Product Version: NetBeans IDE Dev (Build 200809071401) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Stil valid. Let's rephrase but original description is still correct. - create Ruby application - create RHTML file - copy the following to the file: <h1> <%= Date.to </h1> - move cursor behind "Date.to" and hit ctrl-space to invoke code completion but it shows "No suggestions"
*** Issue 157656 has been marked as a duplicate of this issue. ***
Works fine in 20090904
Verified.