Can't find gem compass (>= 0.a) with executable compass

孤街醉人 提交于 2019-12-13 19:01:59

问题


I can't get PhpStorm to work with a relative installed bundler package.

I´m using bundler with following gemfile:

source "http://rubygems.org"

gem "susy", "~>2.2.14"
gem "sass", "~>3.4.22"
gem "compass", "~> 1.1.0.alpha.3"
gem "breakpoint", "~>2.5.0"
gem "font-awesome-sass", "~>4.6.2"

At the PhpStorm terminal I'm executing the following command to install the gems to the relative directory gems/:

bundle install --path gems/

Bundler installed all to the directory gems/ without any error.

My watcher task looks like this:

.

If I make some changes in my scss file the watcher throws

cmd.exe /D /C call "F:\Cloud\Zoho WorkDrive (Gedankenfolger® GmbH)\General\Kunden 2019\Uhlmann\TYPO3\Wonder by Uhlmann TYPO3 87\gems\ruby\2.6.0\bin\compass.bat" compile "F:\Cloud\Zoho WorkDrive (Gedankenfolger® GmbH)\General\Kunden 2019\Uhlmann\TYPO3\Wonder by Uhlmann TYPO3 87\fileadmin\templates"
C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem compass (>= 0.a) with executable compass (Gem::GemNotFoundException)
from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
from F:/Cloud/Zoho WorkDrive (Gedankenfolger� GmbH)/General/Kunden 2019/Uhlmann/TYPO3/Wonder by Uhlmann TYPO3 87/gems/ruby/2.6.0/bin/compass:23:in `<main>'

Process finished with exit code 1

How can I get this to work?

System environment:

  • Windows 10 Pro / Version 1809 / Build 17763.316
  • PhpStorm 2018.3.4
  • ruby 2.6.1p33 (2019-01-30 revision 66950) [x64-mingw32]
  • npm 6.4.1
  • bundler 2.0.1

回答1:


I wouldn't install with such --path option. I'd just execute bundle install.

(You might want to delete the .bundle/config file too first).



来源:https://stackoverflow.com/questions/55144114/cant-find-gem-compass-0-a-with-executable-compass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!