[
https://issues.apache.org/jira/browse/NETBEANS-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17042137#comment-17042137
]
Matthias Bläsing commented on NETBEANS-2763:
--------------------------------------------
I traced it down into the lucene core. The CSSIndexer extracts the classes
correctly (at least at first glance), but all classes are concatenated into one
long string. This string is then passed on to lucene and that tries to store it
into the index as a term. The term has a maximum length of 16383 characters
(org.apache.lucene.index.DocumentsWriter.MAX_TERM_LENGTH) if that is exceeded,
only the first 30 characters are stored. This will obviously not yield results.
I try to to understand what was the idea here, but my gut feeling is, that
lucene was not correctly used here.
> css autocompletion not working
> ------------------------------
>
> Key: NETBEANS-2763
> URL: https://issues.apache.org/jira/browse/NETBEANS-2763
> Project: NetBeans
> Issue Type: Bug
> Components: web - CSS Editor
> 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, many-classes.css
>
>
> 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)
>
> Steps to reproduce:
> # Download attached project: [^autocompletion_test.tar.gz]
> # Open the project
> # Open the style.css
> # Try to autocomplete any class.
> Actual result: "No suggestions"
> Expected result: "autocompletion provides some classes from bootstrap.css"
> Update: still not working in NB 11.3 RC.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists