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 232960 - LESS: twitter bootstrap parsing errors
Summary: LESS: twitter bootstrap parsing errors
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 6 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-18 08:59 UTC by Tomas Mysik
Modified: 2015-04-17 12:17 UTC (History)
5 users (show)

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 Tomas Mysik 2013-07-18 08:59:58 UTC
Marku, follow steps from issue #232852 (download and open bootstrap) - many LESS files have the error badge but it should not I guess.

Thanks.

Product Version: NetBeans IDE Dev (Build 20130718-58d6a3ece26d)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.8.0-26-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Tomas Mysik 2013-07-18 09:08:54 UTC
Adding reporter of issue #232852 to CC so he can confirm this bug.

Thanks.
Comment 2 Marek Fukala 2013-08-22 13:26:55 UTC
#1:

.img-responsive(@display: block;) {
  display: @display;
}
Comment 3 Marek Fukala 2013-08-22 13:27:14 UTC
#2:

  &.left {
    #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
  }
Comment 4 Marek Fukala 2013-08-22 13:29:17 UTC
#3:

@media (min-width: @grid-float-breakpoint) {
  .navbar-right {
    .dropdown-menu {
      .pull-right > .dropdown-menu();
    }
  }
}

.progress-striped .progress-bar {
  #gradient > .striped(@progress-bar-bg);
  background-size: 40px 40px;
}

#4:

.modal {
  &.in .modal-dialog { .translate(0, 0)}
}
Comment 5 locid 2013-10-22 11:29:54 UTC
The Problem is the less namespace feature:



1:

#bundle {
  .button () {
    display: block;
    border: 1px solid black;
    background-color: grey;
    &:hover { background-color: white }
  }
}

#header a {
  color: orange;
  #bundle > .button; // <- SYNTAX ERROR
}




2:

.unlock(@value) { 
  .doSomething() { 
    declaration: @value;
  }
}

#namespace() { // <- SYNTAX ERROR
  .unlock(5); 
}

#use-namespace { 
  #namespace > .doSomething(); // <- SYNTAX ERROR
}



http://lesscss.org/#-namespaces
Comment 6 locid 2013-10-22 11:33:37 UTC
(In reply to Marek Fukala from comment #4)
> 
> #4:
> 
> .modal {
>   &.in .modal-dialog { .translate(0, 0)}
> }

Seems that Netbeans is a little bit stricter. This works:

.modal {
  &.in .modal-dialog { 
      .translate(0, 0);
  }
}
Comment 7 locid 2013-10-22 11:36:12 UTC
(In reply to Marek Fukala from comment #2)
> #1:
> 
> .img-responsive(@display: block;) {
>   display: @display;
> }

Same here, this works:

.img-responsive(@display: block) {
  display: @display;
}
Comment 8 locid 2013-10-22 11:45:24 UTC
Bug has Duplicate #236362
https://netbeans.org/bugzilla/show_bug.cgi?id=236362
Comment 9 Milutin Kristofic 2015-04-17 10:45:18 UTC
The only unresolved issue from here is duplicate of 234639

*** This bug has been marked as a duplicate of bug 234639 ***
Comment 10 styu_ 2015-04-17 12:08:28 UTC
There are some other issues too:

&:extend(.clearfix all);
&.in .modal-dialog { .translate(0, 0) }
.striped(@color: rgba(255,255,255,.15); @angle: 45deg)
.col-@{class}-@{index}
Comment 11 Milutin Kristofic 2015-04-17 12:15:17 UTC
&:extend(.clearfix all);
&.in .modal-dialog { .translate(0, 0) }
.striped(@color: rgba(255,255,255,.15); @angle: 45deg)

is fixed in dev build. 
Product Version: NetBeans IDE Dev (Build 20150416-ad691c0c9b6c)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26

For this one .col-@{class}-@{index} I will create new report. 

I am trying to clean this collection bugs, and have for each issue separate bug report. Thank you for understanding.
Comment 12 Milutin Kristofic 2015-04-17 12:17:12 UTC
Here is new bug for less interpolation. https://netbeans.org/bugzilla/show_bug.cgi?id=25191