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 150016 - Source code editor shows warning against valid ERB code.
Summary: Source code editor shows warning against valid ERB code.
Status: RESOLVED INVALID
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 08:36 UTC by tkrd_oiax
Modified: 2008-10-17 12:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A capture image. (10.58 KB, image/png)
2008-10-14 08:37 UTC, tkrd_oiax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tkrd_oiax 2008-10-14 08:36:32 UTC
<h1><%= @title %></h1> is a valid piece of ERB code, but the editor shows the warning "Unmatched Tag".

You can reproduce it with following procedure:

1. Create a blank ERB file and opened it with the NetBeans editor.
2. Input "<h1></h1>".
3. Put the cursor between two tags.
4. Input "<%= @title %>".

If you save, close and open it again, the editor does not show any warning.
Comment 1 tkrd_oiax 2008-10-14 08:37:26 UTC
Created attachment 71729 [details]
A capture image.
Comment 2 Torbjorn Norbye 2008-10-17 01:55:57 UTC
Which version did you use? I tried reproducing it using exactly your steps on the daily build, but it worked... There
were indeed a number of problems with incremental embedding model updates which were fixed recently. I'm crossing my
fingers that this is one of those issues that should be fixed in 6.5...
Comment 3 tkrd_oiax 2008-10-17 04:52:26 UTC
Well, I confirmed that the phenomenon I had reported did not happen in the latest build (200810161401).

I used the 20081013xxxx or 20081014xxxx daily build when I posted this issue.

Thanks.
Comment 4 Torbjorn Norbye 2008-10-17 05:12:47 UTC
Hmmm.... nothing has changed in the last 2-3 days in this area as far as I know (we're in high resistance) so that
probably means that it's random / some sort of race condition.
Comment 5 tkrd_oiax 2008-10-17 12:19:45 UTC
It seems that a bug is still there.

I downloaded the latest NetBeans IDE Dev (Build 200810170201) to my another PC (ubuntu 7.04),
and saw the same warning against the same valid piece of ERB code.

Peculiar fact is that this warning is shown only in a particular Rails project.
When I created a new project and tried to reproduce this bug, I could not.

I can not see any meaningful difference between these two projects.
Both are Rails 2.1.1 projects for the native Ruby 1.8.6.

If anyone instructs me how to debug the IDE, I am willing to do it.