简体   繁体   中英

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

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.

已安装的相对Ruby文件夹结构

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

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM