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.
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)
Created attachment 143261 [details] IDE log
reproducible
changeset: 276035:2711a7ace7e5 summary: #239566 - Editor no longer detects already defined CSS classes
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
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)
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
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)
Created attachment 149850 [details] LOG File
Bug still exists for me. Attached log file.
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; }
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)
Bug still exists, also after saving HTML and CSS file. Interesting... What could be the reason? Suggestions?
Reason are symbolic links. For me to the cloud Dropbox. *** This bug has been marked as a duplicate of bug 210670 ***