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 270392 - CSS Autocomplete not working in Netbeans 8.2
Summary: CSS Autocomplete not working in Netbeans 8.2
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.2
Hardware: PC Other
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 19:19 UTC by gvanto
Modified: 2017-04-23 09:28 UTC (History)
0 users

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 gvanto 2017-04-13 19:19:32 UTC
CSS autocompletion is not working for me in NB 8.2 (Windows 10).

NetBeans about info:
Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; en_AU (nb)
User directory: C:\Users\User\AppData\Roaming\NetBeans\8.2
Cache directory: C:\Users\User\AppData\Local\NetBeans\Cache\8.2

The only solution I found when googling this was to remove the cache folder:
C:\Users\User\AppData\Local\NetBeans\Cache\8.2

So I removed the above ('8.2') folder (shut down NB first), restarted NB, waited for background scanning to complete, but still my CSS classes are not autocompleting (when I hit ctrl+space, it usually completes CSS class name, for example '.entry-header').

Autocomplete still works for PHP variables ...

Help much appreciated,
g
Comment 1 Milutin Kristofic 2017-04-18 14:22:11 UTC
Hi,
autocompletion be default works for me on nb 8.2 You have to some specific issue.
can you please explain or give us some examples?

What files doesn't have css completion? .css, .php, ...?
Where are css files? Are they in project, outside, softcopies?

What is your messages.log? Do you use other plugins?
Comment 2 gvanto 2017-04-23 09:28:06 UTC
(In reply to Milutin Kristofic from comment #1)
> Hi,
> autocompletion be default works for me on nb 8.2 You have to some specific
> issue.
> can you please explain or give us some examples?
> 
> What files doesn't have css completion? .css, .php, ...?
> Where are css files? Are they in project, outside, softcopies?
> 
> What is your messages.log? Do you use other plugins?


Hi Milutin,

Issue is in both .css files (class names aren't autocompleting) and also
in PHP/HTML files when typing class="start_of_class... here it usually autocompletes based on what is in my CSS files but not working at all (just comes up with 'no suggestions' little box).

The .css files are in the project itself (both yii2 and wordpress projects).

Plugins - there are 64 installed. Only thing installed extra (as far as I am aware, originally I installed the NB + PHP with HTML5 and CSS3 bunble) is the Darcula Theme which gives IDE the intelliJ look and feel ... but CSS completion WAS working after I installed this plugin/theme (I've also tried disabling it, no luck with CSS autocompletion)

IDE log:
(I cleared the log then tried an autocomplete again by doing ctrl+space while typing css class name)

INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: Unpaired license 00000008 without any module.
WARNING [org.netbeans.modules.css.model.impl.ElementFactoryImpl]: created element by reflection for KeyAnd, update the ElementFactoryImpl.createElement() methods ugly switch!
WARNING [null]: Last record repeated again.
WARNING [null]: Last record repeated again.
WARNING [null]: Last record repeated 3 more times.