不加思索的不能编译;在Bootstrap 3中更少的源 [英] Dotless failing to compile ; in Bootstrap 3 less source

查看:76
本文介绍了不加思索的不能编译;在Bootstrap 3中更少的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用无点1.3.1.0编译更少的文件.这在bootstrap 2.x上工作正常,但切换到bootstrap 3.0.0后(从此处下载源: http://getbootstrap.com/getting-started/),我突然收到此错误:

预期为')',但在文件'mixins.less'的第47行中找到了'':[46]:// 调整大小的快捷方式[47]:.size(@width; @height){ ------------ ^ [48]:width:@width;

似乎有一个;因为参数之间的分隔符无效少. mixins.less中的原始来源看起来像这样:

...
// Sizing shortcuts
.size(@width; @height) {
  width: @width;
  height: @height;
}
...

我是否必须使用更新较少的编译器?还是引导程序释放越野车的源较少?

更新1:我可以看到,存在对无点的拉取请求,从而解决了问题;

https://github.com/dotless/dotless/pulls 解决;混合参数列表#319#320中不支持"

我将继续使用css文件,直到用无点修复此问题为止.

解决方案

使用dotless的同事之一对合并的Bootstrap 3问题进行了一些修复. 显然 Bootstrap3现在将使用最新代码进行编译:)

https://github.com/dotless/dotless/commits/master

我希望已更新的NuGet软件包将很快面市(基于此推文)

I use dotless 1.3.1.0 compiling less-files. This worked fine with bootstrap 2.x, but after switching to bootstrap 3.0.0 (downloaded the source from here: http://getbootstrap.com/getting-started/), I suddenly get this error:

Expected ')' but found ' ' on line 47 in file 'mixins.less': [46]: // Sizing shortcuts [47]: .size(@width; @height) { ------------^ [48]: width: @width;

Seems that having a ; as seperator between parameters is not valid less. The original source in the mixins.less looks like this:

...
// Sizing shortcuts
.size(@width; @height) {
  width: @width;
  height: @height;
}
...

Do I have to use an updated less compiler? Or did bootstrap release buggy less source?

UPDATE 1: I can see, that a pull request for dotless exists, fixing the problem with ;

https://github.com/dotless/dotless/pulls "Fixes for ; not supported in mixin parameter lists #319 #320"

I will go using the css files until this has been fixed in dotless.

解决方案

One of my colleagues that uses dotless has had a few fixes for Bootstrap 3 issues merged. Apparently Bootstrap3 will now compile with the latest code :)

https://github.com/dotless/dotless/commits/master

I expect an updated NuGet package will be available soon (based on this tweet)

这篇关于不加思索的不能编译;在Bootstrap 3中更少的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆