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.

Bug 104246 - Completion in RHTML doesn't work until you finish embedded element
Summary: Completion in RHTML doesn't work until you finish embedded element
Status: VERIFIED WORKSFORME
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
: 157656 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-18 09:56 UTC by Jiri Skrivanek
Modified: 2009-09-11 12:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2007-05-18 09:56:17 UTC
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.
Comment 1 Marek Fukala 2007-05-18 13:04:48 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.
Comment 2 Jiri Kovalsky 2007-07-03 14:05:11 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 3 Torbjorn Norbye 2007-08-09 23:17:18 UTC
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.
Comment 4 Jiri Skrivanek 2007-08-10 14:14:02 UTC
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.
Comment 5 Petr Jiricka 2008-02-27 14:13:25 UTC
Still reproducible in NB 6.1 build 711. Workaround is to type %>, after that is works.
Comment 6 josin 2008-09-08 15:31:21 UTC
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)
Comment 7 Jiri Skrivanek 2008-09-09 12:34:29 UTC
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"


Comment 8 Martin Schovanek 2009-01-30 11:56:13 UTC
*** Issue 157656 has been marked as a duplicate of this issue. ***
Comment 9 Tomas Danek 2009-09-04 11:51:32 UTC
Works fine in 20090904
Comment 10 Jiri Skrivanek 2009-09-11 12:39:50 UTC
Verified.