指南针和SASS:无编译错误 [英] Compass and SASS: Nothing to compile error

查看:66
本文介绍了指南针和SASS:无编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在对这个问题已经非常厌倦。我被推迟了很多次,试图做到这一点。我觉得这是我解决问题的最后尝试。

I'm getting so tired of this problem right now. I've been put off so many times trying to get this going. I feel this is my last attempt in solving what is wrong. Here goes:

我安装了指南针

sudo gem update --system
sudo gem install compass

我创建我的测试项目(命名为测试)

compass create test

会生成此

directory test/ 
directory test/sass/ 
directory test/stylesheets/ 
   create test/config.rb 
   create test/sass/screen.scss 
   create test/sass/print.scss 
   create test/sass/ie.scss 

我尝试编译项目

compass compile [path/to/test]

我得到的只是以下错误消息:什么都不能编译。如果您要启动一个新项目,则您已经放弃了目录参数。

All I get is this error message: "Nothing to compile. If you're trying to start a new project, you have left off the directory argument."

我尝试搜索该问题,但找不到任何帮助。这里有人知道发生了什么吗?我缺少重要的东西吗?

I try to google the problem but I can't find anything to help me. Anyone here that knows what's going on? Am i missing something important?

我正在运行OSX 10.6.8

Im running OSX 10.6.8

推荐答案

检查文件路径中是否包含特殊字符。我用 [和]包裹了目录名。这显然导致Compass窒息。消除这些问题已解决了我的问题。

Check to see if you have special characters in your filepath. I had "[" and "]" wrapping a directory name. This apparently causes Compass to choke. Removing those fixed my issue.

好像有很多不同的情况会导致相同的错误消息,似乎调试输出中的一些其他信息可能会有所帮助。我花了几个小时,以为那是我的config.rb文件!哦,希望这篇文章可以为其他人节省时间。

Seeing as though there are lot's of different scenarios that lead to this same error message, it would seem that some additional info in the debugging output might be helpful. I spent a couple of hours on this, thinking it was my config.rb file! Oh well, hope this post saves someone else some time.

这篇关于指南针和SASS:无编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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