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.
Summary: | Completion in RHTML doesn't work until you finish embedded element | ||
---|---|---|---|
Product: | ruby | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | RHTML | Assignee: | Erno Mononen <emononen> |
Status: | VERIFIED WORKSFORME | ||
Severity: | blocker | CC: | josin, pjiricka |
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Skrivanek
2007-05-18 09:56:17 UTC
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. |