[ https://issues.apache.org/jira/browse/NETBEANS-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16878755#comment-16878755 ]
Pavel Selivanov edited comment on NETBEANS-2763 at 7/4/19 4:05 PM: ------------------------------------------------------------------- I messed around with 4.2.0 and looks like Christian was right. Line 9238 starts query: @media (min-width: 1200px) { and a lot of similar classes was added there in 4.2.0. Like these: .pl-xl-2, .px-xl-2 { padding-left: 0.5rem !important; } .p-xl-3 { padding: 1rem !important; } Any of them specifically doesn't break css parser, but the sheer amount of them does. I tried to delete different number of such classes from different places inside this query and at some point autocompletion starts to work (if you leave like 20 such classes from any). It doesn't matter what classes specifically you need to delete, just need to reduce the number of such classes. So, looks like there is some overflow somewhere inside parser that cannot handle a lot of such classes. Update: there are also multiple such media queries, and deletion of like 80% of such classes inside any of them results in working autocompletion. was (Author: selivanovp): I messed around with 4.2.0 and looks like I kinda found the root of the problem. Line 9238 starts query: @media (min-width: 1200px) { and a lot of similar classes was added there in 4.2.0. Like these: .pl-xl-2, .px-xl-2 { padding-left: 0.5rem !important; } .p-xl-3 { padding: 1rem !important; } Any of them specifically doesn't break css parser, but the sheer amount of them does. I tried to delete different number of such classes from different places inside this query and at some point autocompletion starts to work. It doesn't matter what classes specifically you need to delete, just need to reduce the number of such classes. So, looks like there is some overflow somewhere inside parser that cannot handle a lot of such classes. > css autocompletion not working > ------------------------------ > > Key: NETBEANS-2763 > URL: https://issues.apache.org/jira/browse/NETBEANS-2763 > Project: NetBeans > Issue Type: Bug > Environment: Product Version: Apache NetBeans IDE 11.1 > Java: 12.0.1; OpenJDK 64-Bit Server VM 12.0.1+12-Ubuntu-1 > Runtime: OpenJDK Runtime Environment 12.0.1+12-Ubuntu-1 > System: Linux version 5.0.0-19-generic running on amd64; UTF-8; en_US (nb) > Reporter: Pavel Selivanov > Priority: Major > Attachments: Hello12.zip, Screen Shot 2019-07-04 at 14.11.30.png, > Screen Shot 2019-07-04 at 15.25.01.png, Screenshot from 2019-07-04 > 16-33-43.png, Screenshot from 2019-07-04 16-33-57.png, Screenshot from > 2019-07-04 16-33-57.png, Screenshot from 2019-07-04 16-34-06.png, Screenshot > from 2019-07-04 16-34-06.png, autocompletion_test.tar.gz, > bootstrap-4.1.3-dist.zip, bootstrap-4.2.0-dist.zip, > bootstrap_4.1.3_to_4.2.0.diff, bootstrap_400_431.diff > > > Hi guys. I decided to test Netbeans 11.1 a little, created simple html5 > project, added index.html, bootstrap 4.3.1 css and my own style.css plus some > js. > I found that class/id completion in bootstrap.css is not working (though i > don't see any errors neither in parsing nor in NB itself). Class and id > completion in style.css is working for style.css and index.html (parser was > able to work with these files). But nothing works with bootstrap.css (not > even autocompletion for classes inside this file). So looks like NB silently > fails to parse it. Please fix. > It's a clean NB 11.1 beta2 install, without importing plugins from previous > NB versions. (just tested the same in beta3, still an issue) -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists