- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
在一个新项目中遇到这个错误 - 这让我抓狂!
这是一个雷区,试图弄清楚所有这些东西,天啊,一旦我解决了这个问题,我一定会制作一个简单易懂的指南!!
请帮忙
Bundler could not find compatible versions for gem "sass":
In Gemfile:
singularitygs (~> 1.2.0) ruby depends on
sass (~> 3.3.0) ruby
compass (~> 0.12.3) ruby depends on
sass (3.2.14)
我的 gem 文件
# A sample Gemfile
source "https://rubygems.org"
# gem "rails"
gem "compass", "~> 0.12.3"
gem "singularitygs", "~> 1.2.0"
gem "singularity-extras", "~> 0.0.3"
gem "breakpoint", "~> 2.4.2"
gem "jacket", "~> 1.1.1"
gem "toolkit", "~> 2.0.1"
gem "bourbon", "~> 3.1.8"
这是我 mac 上的精华
$ gem 列表
* 本地 gem *
actionmailer (4.0.4)
actionpack (4.0.4)
activemodel (4.0.4)
activerecord (4.0.4)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.4, 3.2.17)
arel (4.0.2)
atomic (1.1.16)
bigdecimal (1.2.5, 1.2.0)
bourbon (3.1.8)
breakpoint (2.4.2)
builder (3.1.4)
bundler (1.5.3)
celluloid (0.15.2)
celluloid-io (0.15.0)
chunky_png (1.3.0)
coffee-script (2.2.0)
coffee-script-source (1.7.0)
compass (1.0.0.alpha.19, 0.12.3)
compass-core (1.0.0.alpha.19)
compass-import-once (1.0.4, 1.0.3)
erubis (2.7.0)
execjs (2.0.2, 1.4.0)
ffi (1.9.3)
fssm (0.2.10)
haml (4.0.5)
hike (1.2.3)
i18n (0.6.9)
io-console (0.4.2)
jacket (1.1.1)
json (1.8.1, 1.7.7)
kramdown (1.3.3, 1.3.2)
listen (2.7.1, 1.1.6)
mail (2.5.4)
middleman (3.2.2)
middleman-core (3.2.2)
middleman-sprockets (3.3.1)
mime-types (1.25.1)
minitest (5.3.1, 4.3.2)
modular-scale (2.0.4)
multi_json (1.9.0)
nio4r (1.0.0)
polyglot (0.3.4)
psych (2.0.4, 2.0.0)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.4)
railties (4.0.4)
rake (10.1.1, 0.9.6)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
rb-kqueue (0.2.2)
rdoc (4.1.1, 4.0.0)
sass (3.3.3, 3.3.1, 3.2.14)
sassy-maps (0.3.2)
sassy-math (1.5)
singularity-extras (0.0.3)
singularitygs (1.2.0)
sprockets (2.12.0)
sprockets-helpers (1.1.0, 1.0.1)
sprockets-rails (2.0.1)
sprockets-sass (1.0.3)
susy (2.1.1, 1.0.9)
test-unit (2.5.5, 2.0.0.0)
thor (0.18.1)
thread_safe (0.2.0)
tilt (2.0.0, 1.4.1)
timers (1.1.0)
toolkit (2.0.1)
treetop (1.4.15)
tzinfo (0.3.39)
uglifier (2.5.0, 2.4.0)
好的,我想我到了那里,但仍然有一些错误
我的 config.rb 文件
require 'compass/import-once/activate'
require 'singularitygs'
require 'singularity-extras'
require 'breakpoint'
require 'jacket'
require 'toolkit'
require 'bourbon'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img".
fonts_dir = "fonts"
javascripts_dir = "js"
# You can select your preferred output style here (can be overridden via the command line):
output_style = :compact
# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
我的 app.sass 文件
@import "compass"
@import "singularitygs"
@import "singularity-extras"
@import "breakpoint"
@import "jacket"
@import "toolkit"
@import "bourbon"
// My sass
@import "partials/normalize"
我的 Gemfile 文件
gem "compass"
gem "singularitygs"
gem "singularity-extras"
gem "breakpoint"
gem "jacket"
gem "toolkit"
gem "bourbon"
错误
error sass/app.sass (Line 2: File to import not found or unreadable: jacket.
Load paths:
/Applications/MAMP/htdocs/MachuPicchuMobile.com/7DayShapeUp/sass
/Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-core-1.0.0.alpha.19/stylesheets
/Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/susy-2.1.1/sass
Compass::SpriteImporter)
overwrite css/app.css
info sass/app.sass was modified
error sass/app.sass (Line 2: File to import not found or unreadable: jacket.
Load paths:
/Applications/MAMP/htdocs/MachuPicchuMobile.com/7DayShapeUp/sass
/Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-core-1.0.0.alpha.19/stylesheets
/Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/susy-2.1.1/sass
Compass::SpriteImporter)
identical css/app.css
info sass/app.sass was modified
error sass/app.sass (Line 2: File to import not found or unreadable: singularitygs.
Load paths:
/Applications/MAMP/htdocs/MachuPicchuMobile.com/7DayShapeUp/sass
/Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-core-1.0.0.alpha.19/stylesheets
/Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/susy-2.1.1/sass
Compass::SpriteImporter)
overwrite css/app.css
最佳答案
此外,bundle update
只允许您一次更新一个 gem,如果您要更新到 Rails 4
就很难做到这一点,而且必须更新大量 gem同时更新。
我通过删除 Gemfile.lock
并执行 bundle install
解决了这个问题。
删除 Gemfile 中的版本号,然后尝试bundle update
。
关于ruby - 带有 gem 文件的 Bundler SASS 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22518274/
当我输入时: gem env 在我的 Windows 系统上,它会生成以下信息: RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY
我记得我用过 gem install rails安装 Rails,但今天当我想安装另一个 gem 时,输入 gem install ruby-recaptcha 它失败了,说: You don't h
我有一个要重命名的 gem 。它是published on RubyGems。我最担心的是人们想要更新它。 我看到了两条路,但是我真的很想听听重命名 gem 的人是如何做到的。 1.把旧的变成一个元包
$ gem install passenger Fetching: passenger-4.0.5.gem (100%) ERROR: While executing gem ... (Gem::F
我刚刚用 gem update mime-types 更新了 mime-types gem . gem list显示 mime-types (1.16)在更新之前。更新后gem list显示 mime
如果我构建了一个私有(private) gem(例如,在我的公司内部托管),然后我想在我正在构建的另一个 gem(不是应用程序!)中重用该 gem,我该怎么做? 我应该在哪里放置我的依赖项并告诉我的新
我正在编写一个具有多个 gem 依赖项的 gem,其中一个依赖于破坏新版本向后兼容性的 gem。这让我开始思考——我不希望我正在构建的 gem 变成“那个 gem”,让人们难以更新他们的应用程序。我也
我目前正在构建一个需要 mysql2 gem 的 RoR 项目。我成功安装了 gem 。因为它出现在我的 gem 列表中。 [root@vc2cmmka035538n simple_cms]# gem
我试图在 XP 上构建 capybara-webkit。我关注了this操作说明。它说要进行捆绑安装: $ cd ruby193\capybara-webkit $ bundle install
是否有可能为 Ruby 提供类似“本地”gem 存储库的东西? 我正在开发一个没有管理员权限的自定义 Linux 发行版。 Ruby 安装在机器上 (v.1.8.7),但显然没有安装“gem”或“bu
我是使用 gems 的新手,所以如果我的事实有误,请原谅我。 我想将 Bundler 从 v1.3.5 更新到最新版本 (v1.5.3),所以我尝试这样做: sudo gem install bund
如何使用 gem install 同时安装多个 gem,同时指定我想要的版本? 例子: gem install akami -v 1.2.0 --ignore-dependencies gem in
我正在尝试在 XP 上构建 capybara-webkit。我关注 this instruction .我说: 8) Clone latest version of capybara-webkit f
我正在尝试设置我自己的私有(private) gem 服务器,它应该为我的 gem 提供服务并显示 rdoc。正如我所读,默认的 gem 服务器应该能够做到这一点。由于我不希望除了我自己的所有 gem
假设我的 gem 是 VideoPlayer。文件夹结构是: VideoPlayer/ /bin vidplay.rb /lib VideoPlayer
如何避免 gem 清理特定错误。我在执行 gem 清理时看到以下错误。 Gem::InstallError: gem-wrappers 未安装在 GEM_HOME 中 gem cleanup Clea
我写了一个 gem elastic-beanstalk这将在 rails 项目文件结构中使用,以及在 rails 目录和文件不可用(无需解压缩等)的独立 CI 环境中使用。即正在运行的 Bamboo
运行“sudo gem list --local”和“gem list --local”给我不同的结果。我的 gem 路径设置为我的主文件夹,并且仅包含来自“gem list --local”的 ge
最初,我发布了 Stack Overflow 问题 Ruby on Rails gems... Re-open models (现已删除)。但我认为这个问题太令人困惑了……我会根据我的发现尝试提出不同
我使用 OS X El Capitan 10.11.6 首先,我在安装 pod 时遇到问题,按照本网站中的步骤进行操作后能够找到问题..终端拼出问题是我安装后的 ruby v 2.2.2当我尝试安
我是一名优秀的程序员,十分优秀!