[ 
https://issues.apache.org/jira/browse/NETBEANS-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16878786#comment-16878786
 ] 

Pavel Selivanov edited comment on NETBEANS-2763 at 7/4/19 4:46 PM:
-------------------------------------------------------------------

Nope, I was partially wrong. I just started to remove classes outside of any 
media query, like button classes etc, and at some point it works again. But, 
the thing is, you can remove like 100 lines of classes after some point in file 
and it's still not working, but if you undo those classes and remove one class 
before that point and autocompletion works again. And it's not specific to some 
certain classes or specific properties. I tried it at different places with 
different number of classes.

So, there is definitely an overflow somewhere in a parser and it's not a result 
of specific number of lines in a css files and it's not some specific line of 
code that breaks it. At least for 4.2.0.

 

Update: removing like 80% of classes from media query like @media (min-width: 
576px) ends in reducing the number of lines by ~300 and it fixes 
autocompletion. But you need to delete like 1200 lines of classes outside of 
media queries to make autocompletion work again. So issue looks related to 
overflow due to large number of media queries and classes inside it.


was (Author: selivanovp):
Nope, I was partially wrong. I just started to remove classes outside of any 
media query, like button classes etc, and at some point it works again. But, 
the thing is, you can remove like 100 lines of classes after some point in file 
and it's still not working, but if you undo those classes and remove one class 
before that point and autocompletion works again. And it's not specific to some 
certain classes or specific properties. I tried it at different places with 
different number of classes.

So, there is definitely an overflow somewhere in a parser and it's not a result 
of specific number of lines in a css files and it's not some specific line of 
code that breaks it. At least for 4.2.0.

> 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

Reply via email to