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 222822 - HTML file + CSS styles window are not open after running sample project; styling does not work
Summary: HTML file + CSS styles window are not open after running sample project; styl...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-27 13:22 UTC by Petr Jiricka
Modified: 2012-12-05 14:23 UTC (History)
1 user (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 Petr Jiricka 2012-11-27 13:22:41 UTC
Product Version: NetBeans IDE Dev (Build web-main-9347-on-20121127)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15

1. Create sample HTML5 project, e.g. "Responsive Rabbits"
2. Make sure index.html is NOT opened in the editor
3. Run the project
4. Enable select mode in browser and select an element (e.g. rabbit picture)

Problem 1: index.html and the CSS Styles window are not opened in the IDE

5. Open index.html in the editor

Problem 2: Navigator is grey (not connected) and the CSS Styles window displays the "Run the file in the browser..." message.
Comment 1 Jan Stola 2012-11-27 15:56:45 UTC
In fact, there are two problems under Problem 2.

Problem 2a: Navigator is grey (not connected)
Problem 2b: CSS Styles window displays the "Run the file..." message.

I saw Problem 2a many times but I am not able to reproduce it reliably and I believe that it is not related to the described test-case.

Problem 2b occurred when some page was inspected already when the CSS Styles view was opened for the first time. I have fixed this problem by http://hg.netbeans.org/web-main/rev/3ca45f958864

Problem 1 is about life-cycle (opening/closing) of CSS Style view. This is handled by css.visual => I am reassigning the issue there for evaluation.
Comment 2 Marek Fukala 2012-11-28 13:12:29 UTC
#1 implemented in web-main#c38cb3937310

Once one runs the project and starts the inspection, the corresponding file is opened in nb editor which opens the Css Styles window and aims the navigator.
Comment 3 Quality Engineering 2012-11-30 02:44:09 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c38cb3937310
User: Marek Fukala <mfukala@netbeans.org>
Log: #222822 - run project + inspect in Nb opens corresponding file in editor which opens the navigator and css styles window
Comment 4 Petr Jiricka 2012-12-03 13:00:02 UTC
I am still getting problem #1, reopening.
Comment 5 Marek Fukala 2012-12-03 13:44:32 UTC
(In reply to comment #4)
> I am still getting problem #1, reopening.
What exactly are you doing? The current solution works fine for me. Vlada confirmed it works well as well also with ergonomics. BTW do you use it?

What I do: 
1) open a static web project
2) invoke "Run" from its popup
3) in the opened page select "Inspect in NB"
4) hover over some of the page content elements
=> opens the styles window, I do not guarantee the "Selection" panel content is right though.

Please reopen if it doesn't work in this scenario or possibly elaborate your steps.
Comment 6 Petr Jiricka 2012-12-03 14:01:34 UTC
Weird, now it works. I'll file a separate issue once I find reproducible steps.
Comment 7 Petr Jiricka 2012-12-03 17:09:12 UTC
It still does not behave right for me, but I can not find clearly reproducible steps. Anyway, I filed issue 223195 - can you reproduce that?

Next, I find the "on hover" behavior unusual - it is weird to open a file when hovering over something.
Comment 8 Marek Fukala 2012-12-04 14:56:05 UTC
(In reply to comment #7)
> It still does not behave right for me, but I can not find clearly reproducible
> steps. Anyway, I filed issue 223195 - can you reproduce that?
Yes, but this is IMO unrelated.

Please reopen even if you cannot reproduce. 
> 
> Next, I find the "on hover" behavior unusual - it is weird to open a file when
> hovering over something.

I agree, this just seems to be acceptable enough as you usually start the inspection on some existing element. Honza would have to implement some support for listening on the inspection start/stop is this was considered as unacceptable.
Comment 9 Marek Fukala 2012-12-05 06:55:37 UTC
> Please reopen even if you cannot reproduce. 
Of course I meant ... if you cannot always reproduce :-)
Comment 10 Petr Jiricka 2012-12-05 14:23:41 UTC
Ok, I filed two new issues:

Bug 223321 for the opening behavior on hover vs. when switching on select mode.

Bug 223324 for opening/fronting in a multi-file scenario after switching to another file - this is the main issue I've been facing recently and did not know how to reproduce.