Web Essentials LESS编译器不提供错误消息 [英] Web Essentials LESS Compiler gives no Error Messages

查看:146
本文介绍了Web Essentials LESS编译器不提供错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2012 Update 2,Web Essentials 2.7。



假设LESS中有错误。保存文件时,预览窗格中将显示一条消息。它读取...

  / * 

编译错误。
详情请参阅错误列表

* /

不管,LESS中有什么样的错误。



可以执行什么操作, >解决方案

您是否使用 @import statments?如果是,请尝试切换到 @ import-once 。这是我的问题。我的LESS目录的结构调用几个partials,其中许多与相同的基本mixins或可变的LESS文件交互。要编译这些文件,我必须为每个部分文件添加 @importmixins.less



我有一个主LESS文件,导入这些部分,所以如果我包括8文件,将有那些8 @import 语句以及 @import 语句。我认为LESS编译器无法处理负载,运行到大约1.5 GB的内存,然后断线。这是我得到的消息。


With Visual Studio 2012 Update 2, Web Essentials 2.7.

Suppose there is an error in LESS. When saving the file, a message is shown in the preview pane. It reads...

/*

Compile Error. 
See error list for details

*/

It does not matter, what kind of error is in the LESS. Any error is handled as above.

What can be done, so a detailed error message is given?

解决方案

Are you using @import statments? If so, try switching to @import-once. That was my issue. The structure of my LESS directory calls for several "partials", many of which interact with the same base mixins or variable LESS file. To compile these files I had to add @import "mixins.less" to each of my partial files.

I then had a master LESS file which importing these partials, so if I were including 8 files, there would be those 8 @import statements as well as the @import statements in the partials. I think the LESS compiler couldn't handle the load, ran up to about 1.5 GB of memory and then broke. That was the message I was getting.

这篇关于Web Essentials LESS编译器不提供错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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