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 217484 - entering new dom element breaks CSS styling
Summary: entering new dom element breaks CSS styling
Status: RESOLVED INCOMPLETE
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-27 20:38 UTC by John Jullion-ceccarelli
Modified: 2012-09-11 15:08 UTC (History)
3 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 John Jullion-ceccarelli 2012-08-27 20:38:30 UTC
Build 567 and later:

1. Run EaselDemo
2. Replace the TODO add footer with for example:
<footer class="footer">something</footer>
at this point the Navigator should update to see it but it doesn't. 
3. Save file. File is reloaded in browser, Navigator correctly shows it, but all syncing between file/nav/select mode in browser and the CSS Styles window is broken. Have to close browser and run again.
Comment 1 Vladimir Riha 2012-08-27 20:46:46 UTC
(In reply to comment #0)
> at this point the Navigator should update to see it but it doesn't. 

Maybe it is fixed with issue #217417?

> but all syncing between file/nav/select mode in browser and the CSS Styles window is broken. Have to close browser and run again.

Sounds very similar to older issue #216845, which so far seems a bit random. Can you please check the screenshot and screencast there if it's the same?

I'll try to reproduce it tomorrow at the office
Comment 2 Petr Jiricka 2012-08-27 21:05:55 UTC
Cc'ing also Jan Becicka.
Comment 3 Vladimir Riha 2012-08-28 12:21:43 UTC
Partially reproducible. I'll keep testing it and add future comments here...

(In reply to comment #0)
> 1. Run EaselDemo
> 2. Replace the TODO add footer with for example:
> <footer class="footer">something</footer>
> at this point the Navigator should update to see it but it doesn't. 

Sometimes it works works and Navigator shows just added element but sometimes it says "Unsynchronized" and new element is not added to the Navigator unless you save the file. Once I also noticed that it somehow "recovered" from the unsychronized state and shows the element correctly even without saving file as such.

> 3. Save file. File is reloaded in browser, Navigator correctly shows it, but
> all syncing between file/nav/select mode in browser and the CSS Styles window
> is broken. Have to close browser and run again.

This works for me, after save the Navigator is "refreshed" (e.g. new added gray element is green since it is in browser after save), all syncing seems to be working but I'll keep trying.


 Product Version         = NetBeans IDE Dev (Build EaselCSS-579-on-20120828) 
  Operating System        = Linux version 3.2.0-29-generic-pae running on i386
  Java; VM; Vendor        = 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09;
Oracle
Comment 4 John Jullion-ceccarelli 2012-08-28 13:53:31 UTC
3 breaks for me every time. Have you tried on Windows?
Comment 5 Petr Jiricka 2012-08-28 15:00:15 UTC
I tried using build #582 on Windows 7 and can not reproduce 3. 

2 may be problematic, the question is what the behavior could be. I think we could run into some rather confusing behavior if some changes are propagated on type, vs. other changes propagated on save. We need to think this through.
Comment 6 Vladimir Riha 2012-08-28 15:04:25 UTC
(In reply to comment #0)
> 3. Save file. File is reloaded in browser, Navigator correctly shows it, but
> all syncing between file/nav/select mode in browser and the CSS Styles window
> is broken. Have to close browser and run again.

I'm sorry but I really don't know how to reproduce it. I'm trying it
on Windows7 but it seems to work. I even tried to add invalid html code and save it and syncing is fine. There are some (already reported) issues that under some circumstances, the selected item is deselected (or some previous one is instead) but if you select it again either via Navigator or Select mode, CSS Styles window is correctly populated without closing browser or re-running file.


Product Version: NetBeans IDE Dev (Build EaselCSS-581-on-20120828)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
JavaFX: javafx-2_2_0-fcs-b21-windows-i586
Comment 7 Petr Jiricka 2012-09-11 15:08:09 UTC
I filed step 2 as a separate bug 218149. Since the rest of this issue is not reproducible, I am resolving as incomplete; we may revisit when we have more information.