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 216553 - CSS errors incorrect and can't be fixed
Summary: CSS errors incorrect and can't be fixed
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 216826 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-08 21:43 UTC by John Jullion-ceccarelli
Modified: 2013-12-09 09:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (146.74 KB, image/png)
2012-08-09 06:56 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2012-08-08 21:43:42 UTC
Product Version: NetBeans IDE Dev (Build EaselCSS-462-on-20120808)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

Open mexisantos app and all html elements with a class attribute have the "No CSS class rule found". They have the hint 

"Add reference to containing stylesheet _/css/style.css" 

which adds 

<link rel="stylesheet" href="_/css/style.css" type="text/css">

However, that doesn't make the errors go away and the HTML page already contained the stylesheet reference:


<link rel="stylesheet" href="/_/css/style.css" />

Also once you've clicked the hint once and the first stylesheet URL is added you can still click the hint again but nothing happens, even if I've deleted the stylesheet ref it originally entered.
Comment 1 Vladimir Riha 2012-08-09 06:56:58 UTC
Created attachment 122897 [details]
screenshot

Reproducible. There maybe 2 issues:

- The class definitions are not found in external css file, although ctrl+left click from html navigates to them. Reproduced in a simple project with 1 css and 1 html file (moving css code to <style> helps)

- in the mentioned mexisantos, open index.html and Ctrl+click on "info" on line 57. It shows that all found info classes are unrelated, but it is not true. Line 146 in desktop.css is related with incorrect line numbers. I filled a separate issue #216566 for that


As for the 

<link rel="stylesheet" href="/_/css/style.css" />

I believe that to make it work locally, the URL shouldn't start with "/". That's why NetBeans inserts the <link> tag
Comment 2 Vladimir Riha 2012-08-09 06:58:26 UTC
sorry, the attachment doesn't belong to this issue, but the comment does
Comment 3 Marek Fukala 2012-08-09 13:24:17 UTC
reproducible what John has reported. The hyperlinking, find usages don't work for me neither even in case of correct link.
Comment 4 peppertech 2012-08-13 21:50:43 UTC
*** Bug 216826 has been marked as a duplicate of this bug. ***
Comment 5 Marek Fukala 2012-08-24 08:32:32 UTC
fixed in web-main#fc14fdb58e25

one remaining hint "class 'show' not found" seems to be valid.

Vlado, please verify asap.
Comment 6 Vladimir Riha 2012-08-24 10:53:46 UTC
verified, hints are shown as supposed, the "fix action" adds reference to selected style file.


Product Version: NetBeans IDE Dev (Build EaselCSS-556-on-20120824)
Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
Comment 7 Quality Engineering 2012-09-03 12:59:56 UTC
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fc14fdb58e25
User: Marek Fukala <mfukala@netbeans.org>
Log: #216553 - CSS errors incorrect and can't be fixed
Comment 8 JanGen 2012-12-04 12:44:17 UTC
I experience this bug in 7.3 beta 2, which is of later date.
did it return?
Comment 9 Marek Fukala 2012-12-04 14:42:36 UTC
(In reply to comment #8)
> I experience this bug in 7.3 beta 2, which is of later date.
> did it return?
Can you please add exact steps to reproduce? Thanks.
Comment 10 nseries100 2013-12-06 17:28:40 UTC
(In reply to Marek Fukala from comment #9)

I have same problem in version 7.3.1....
Comment 11 Ondrej Brejla 2013-12-09 09:50:14 UTC
Please, try it in 7.4 or in the dev build. If the problem still occurs, then as Marek wrote add exact steps to reproduce and attach a sample project. Thanks.