指南针无法加载奇点 [英] compass failing to load singularitygs gem

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

问题描述

尝试使用Singularity.gs建立一个新项目,但是我一直遇到Compass的困扰。

Trying to get a new project set up using Singularity.gs but I keep running into a snag with Compass.

首先,我使用Terminal安装了必要的Ruby Gems。 (分别为ass,指南针和singularitygs。)。

First I used Terminal to install the necessary Ruby Gems (sass, compass, singularitygs, respectively).

接下来,我使用以下命令创建了一个新项目:

Next I created a new project using the command:

compass create project1 -r singularitygs --using singularitygs

在这一点上,为了使生活更轻松,我还尝试使用Scout( http://mhs.github.io/scout-app/ )和/或Compass.app( http://compass.handlino.com/ ),这样我就可以利用更加用户友好的GUI。

At this point, in an effort to make life easier I've also attempted to use offerings like Scout (http://mhs.github.io/scout-app/) and/or Compass.app (http://compass.handlino.com/) so I can take advantage of a more user-friendly GUI.

但是我在使用这两个应用程序时都遇到了问题,因此我假设它与我的Ruby gem安装的singularitygs或cr有关

I'm running into problems using either of these apps however, so I'm assuming it has something to do either with my Ruby gem install of singularitygs or with the creation of a new project.

具体来说,一旦我有了目标目录和文件夹结构,我将尝试监视 sass文件夹并得到一个错误看起来像这样:

Specifically, once I have a target directory and folder structure in place, I'll attempt to "watch" the sass folder and get an error that looks like:

(指南针)

no such file to load -- singularitygs
org/jruby/RubyKernel.java:1062:in `require'
file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/require_patch.rb:6:in `require'


(Scout)

or (Scout)

LoadError on line 1038 of org/jruby/RubyKernel.java: no such file to load -- singularitygs
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass
0.12.2/lib/compass/configuration/data.rb:161:in `require' 

足够奇怪的是,如果我尝试在正在使用Foundation的项目中观看Sass文件夹(也安装了zurb-以前的基础红宝石宝石)

Strangely enough, I also get a very similar error message in Scout if I try to watch a Sass folder inside of a project that's using Foundation (having also installed the zurb-foundation ruby gem previously)

我对设置Sass / Compass超级陌生,因此我的确感到有些不适。我知道这可能不是从我的描述中最容易诊断的东西,但是我不确定自己做错了什么。希望我已经足够清楚地描述了我的问题。如果其中任何一个出现含糊或不完整,请忍受,绝对不是我的意图。

I am SUPER new to getting Sass / Compass set up so I'm definitely feeling a bit out of my element. I know this is probably not the easiest thing to diagnose from my description, but I'm not sure what I'm doing wrong. Hopefully I've managed to describe my issue clearly enough. Bear with me if any of this appears vague or incomplete, definitely not my intention.

非常感谢。

推荐答案

像Scout和Compass.app之类的应用程序都捆绑了自己的Ruby版本,即使您在计算机上安装了gems从这些应用程序进行编译时不会安装它们。

Apps like Scout and Compass.app come bundled with their own versions of Ruby so even though you installed the gems on your computer they are not installed when compiling from those apps.

这里是如何使Compass.app在计算机上使用Ruby版本。打开首选项,然后选中自定义。请注意,您的路径可能有所不同:

Here is how to make Compass.app use the version of Ruby on your computer. Open preferences and check "Custom". Note your path may be different:

这篇关于指南针无法加载奇点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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