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 239566 - Editor no longer detects already defined CSS classes
Summary: Editor no longer detects already defined CSS classes
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-17 16:23 UTC by Vladimir Riha
Modified: 2015-03-02 19:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (2.75 KB, application/zip)
2013-12-17 16:23 UTC, Vladimir Riha
Details
IDE log (39.23 KB, text/plain)
2013-12-17 16:24 UTC, Vladimir Riha
Details
LOG File (63.16 KB, text/x-log)
2014-10-12 09:44 UTC, UserProfile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-12-17 16:23:09 UTC
Created attachment 143259 [details]
sample project

Please check the attached project:
 - open index.html
 - click on bulb icon on line 8

=> IDE offers to "Create rule .test and import ..." twice, for each css file. But in 7.4, IDE offers "Add reference to ..." twice, again for each css file. The difference is that in 8.0 (Dev), if you select the "Create rule...", it creates duplicate class in the css file (wrong), imports it (correct) while in 7.4, it only imports it.



Product Version: NetBeans IDE Dev (Build 201312170002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b61
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b119
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-12-17 16:24:44 UTC
Created attachment 143261 [details]
IDE log
Comment 2 Marek Fukala 2014-07-24 07:46:15 UTC
reproducible
Comment 3 Marek Fukala 2014-07-24 08:33:56 UTC
changeset:   276035:2711a7ace7e5
summary:     #239566 - Editor no longer detects already defined CSS classes
Comment 4 Quality Engineering 2014-07-25 02:36:57 UTC
Integrated into 'main-silver', will be available in build *201407250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2711a7ace7e5
User: Marek Fukala <mfukala@netbeans.org>
Log: #239566 - Editor no longer detects already defined CSS classes
Comment 5 Vladimir Riha 2014-08-19 12:22:23 UTC
Verified, thank you

Product Version: NetBeans IDE 8.0.1 (Build 201408142300)
Java: 1.7.0_65; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b17
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 6 UserProfile 2014-09-16 13:52:55 UTC
The same bug in latest stable 8.0.1 on Ubuntu 14.04. Workaround for me is disabled hint for "Class XXX not found".



Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-29-generic running on amd64; UTF-8; pl_PL (nb)
User directory: /home/userprofile/.netbeans/8.0
Cache directory: /home/userprofile/.cache/netbeans/8.0
Comment 7 Vladimir Riha 2014-10-10 13:09:15 UTC
Disabling the feature is not much of a workaround, but I understand it could be better then to see false alarm :) It is possible that your IDE might not be correctly updated to 8.0.1. There was a new patch released yesterday  that updates NetBeans to NetBeans 8.0.1 Patch 1.1. Please update your IDE and try it again.

If still reproducible, could you please attach sample project and IDE log (see http://wiki.netbeans.org/FaqLogMessagesFile ) ? Thank you

It works for me so closing again.



Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1.1
Java: 1.7.0_71; Java HotSpot(TM) Client VM 24.71-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 8 UserProfile 2014-10-12 09:44:38 UTC
Created attachment 149850 [details]
LOG File
Comment 9 UserProfile 2014-10-12 09:45:14 UTC
Bug still exists for me. Attached log file.
Comment 10 UserProfile 2014-10-12 09:47:53 UTC
index.html

!DOCTYPE html>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="style.css"/>
    </head>
    <body>
        <div class="Test">TODO write content</div>
    </body>
</html>

style.css

.Test {
    color: red;
}
Comment 11 Vladimir Riha 2014-11-23 17:29:55 UTC
I'm sorry, your sample works fine for me. Please note you have to save the HTML file to make the hint go away

Product Version: NetBeans IDE Dev (Build 201411230001)
Java: 1.7.0_72; Java HotSpot(TM) Client VM 24.72-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_72-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 12 UserProfile 2014-11-30 19:25:01 UTC
Bug still exists, also after saving HTML and CSS file. Interesting... What could be the reason? Suggestions?
Comment 13 UserProfile 2015-03-02 18:40:19 UTC
Reason are symbolic links. For me to the cloud Dropbox.

*** This bug has been marked as a duplicate of bug 210670 ***