[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2020-02-22 Thread Pavel Selivanov (Jira)


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

Pavel Selivanov edited comment on NETBEANS-2763 at 2/22/20 9:08 AM:


[~matthiasblaesing] Ok, got it.

I suppose this Issue should be marked as resolved now. Looking forward to patch 
being merged to master and the I'll create a new issue to investigate project 
behaviour as for several other drupal 8 projects everything works fine, but not 
for this one.


was (Author: selivanovp):
[~matthiasblaesing] Ok, got it.

I suppose this Issue should be marked as resolved now. Looking forward to patch 
being merged to master and the I'll create a new issue to investigate project 
behaviour as for several other drupal 8 projects everything works fine, but not 
for this.

> 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
>  Labels: pull-request-available
> 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, 
> autocompletion_test2.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
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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: 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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2020-02-21 Thread Jira


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

Matthias Bläsing edited comment on NETBEANS-2763 at 2/21/20 8:17 PM:
-

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. 
The cut of can be found in org.apache.lucene.index.TermsHashPerField.add() 
(line 440 in lucene 3.6.2)

I try to to understand what was the idea here, but my gut feeling is, that 
lucene was not correctly used here.

Update: Yes it is wrong - lucene can store multiple field => value entries per 
document with the same field name (it is basicly a multimap).


was (Author: mblaesing):
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. 
The cut of can be found in org.apache.lucene.index.TermsHashPerField.add() 
(line 440 in lucene 3.6.2)

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: 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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2020-02-21 Thread Jira


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

Matthias Bläsing edited comment on NETBEANS-2763 at 2/21/20 7:56 PM:
-

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. 
The cut of can be found in org.apache.lucene.index.TermsHashPerField.add() 
(line 440 in lucene 3.6.2)

I try to to understand what was the idea here, but my gut feeling is, that 
lucene was not correctly used here.


was (Author: mblaesing):
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: 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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2020-02-20 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto edited comment on NETBEANS-2763 at 2/20/20 12:14 PM:
--

[~selivanovp] Could you please add the simple exact steps to reproduce it to 
the description?

e.g. like this

Steps to reproduce:

1. Download example.zip and unzip it
 2. Open the project
 3. Open example.css
 4. ...

Actual results: ...
 Expected results: ...


was (Author: junichi11):
[~selivanovp] Could you please add the simple exact steps to reproduce it to 
the description?

e.g. like this

1. Download example.zip and unzip it
2. Open the project
3. Open example.css
4. ...

Actual results: ...
Expected results: ...

> 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
>
>
> 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
(v8.3.4#803005)

-
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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2020-02-20 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga edited comment on NETBEANS-2763 at 2/20/20 11:18 AM:
---

It will remain broken until someone fixes it. No one will fix it without some 
kind of analysis on the code level about what the problem could be.

Maybe [~junichi11] could look at it, I'll ping him.

And definitely thanks to [~selivanovp] for all this analysis, can only be 
helpful in figuring this out.


was (Author: geertjanwielenga):
It will remain broken until someone fixes it. No one will fix it without some 
kind of analysis on the code level about what the problem could be.

Maybe [~junichi11] could look at it, I'll ping him.

> 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
>
>
> 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
(v8.3.4#803005)

-
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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2019-07-04 Thread Pavel Selivanov (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2019-07-04 Thread Pavel Selivanov (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2019-07-04 Thread Pavel Selivanov (JIRA)


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

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

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.


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.

> 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



[jira] [Comment Edited] (NETBEANS-2763) css autocompletion not working

2019-07-04 Thread Christian Lenz (JIRA)


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

Christian Lenz edited comment on NETBEANS-2763 at 7/4/19 2:25 PM:
--

no it's not, it's just the short version of background-repeat, 
background-position, etc. 
https://developer.mozilla.org/de/docs/Web/CSS/background. it's like shorten for 
margin (-top, -bottom, etc.) or font.


was (Author: chrizzly):
no it's not, it's just the short version of background-repeat, 
background-position, etc. 
https://developer.mozilla.org/de/docs/Web/CSS/background. it's like shorten for 
margin (-top, -bottom, etc.) for font.

> 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_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