- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已经安装了最新的 ChefDK 并运行了 Chef 网站上的一个厨房教程。当我运行 kitchen list
时,这是我看到的错误消息:
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'vagrant' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
我在这里看到其他问题表明这可能与安装的 kitchen-vagrant gem 的多个版本或不兼容版本有关。当我运行 chef gem list kitchen-vagrant 时,我看到以下内容:
*** LOCAL GEMS ***
kitchen-vagrant (0.20.0)
我已尝试按照其他线程上的指南卸载并重新安装 gem(即安装版本 0.16.0)。然而,这并没有解决问题。
同时运行 chef -v 给我以下信息:
Chef Development Kit Version: 0.18.26
chef-client version: 12.14.89
delivery version: master (d86679335580be3de22996ef294b20d525889d8d)
berks version: ERROR
kitchen version: ERROR
我不知道为什么 berks 和 kitchen 会说这样的错误。我不是 ruby 开发人员,所以我不确定为什么会遇到这个问题。任何帮助将不胜感激。
这也是厨房诊断的结果——如果有帮助的话:
---
timestamp: 2016-09-24 14:18:39 UTC
kitchen_version: 1.13.1
plugins:
error:
exception: "#<Kitchen::ClientError: Could not load the 'vagrant' driver from the
load path. Please ensure that your driver is installed as a gem or included
in your Gemfile if using Bundler.>"
message: Could not load the 'vagrant' driver from the load path. Please ensure
that your driver is installed as a gem or included in your Gemfile if using
Bundler.
backtrace:
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in
`rescue in for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in
`for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in
`new_driver'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in
`new_instance'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in
`block in build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`map'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`with_index'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in
`instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in
`filtered_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in
`parse_subcommand'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:56:in
`load_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`block in call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:80:in
`record_failure'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in
`perform'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:142:in
`diagnose'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in
`run'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
`invoke_command'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in
`invoke_task'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`block in <top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in
`with_friendly_errors'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`<top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'"
loader:
process_erb: true
process_local: true
process_global: true
global_config:
project_config:
filename: "/Workspace/clique-infrastructure-repo/cookbooks/motd/.kitchen.yml"
raw_data:
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
- name: centos-7.2
suites:
- name: default
run_list:
- recipe[motd::default]
attributes:
local_config:
combined_config:
filename:
raw_data:
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
- name: centos-7.2
suites:
- name: default
run_list:
- recipe[motd::default]
attributes:
instances:
error:
exception: "#<Kitchen::ClientError: Could not load the 'vagrant' driver from the
load path. Please ensure that your driver is installed as a gem or included
in your Gemfile if using Bundler.>"
message: Could not load the 'vagrant' driver from the load path. Please ensure
that your driver is installed as a gem or included in your Gemfile if using
Bundler.
backtrace:
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in
`rescue in for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in
`for_plugin'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in
`new_driver'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in
`new_instance'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in
`block in build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`map'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`with_index'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in
`build_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in
`instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in
`filtered_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in
`parse_subcommand'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:56:in
`load_instances'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`block in call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:80:in
`record_failure'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/diagnose.rb:35:in
`call'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in
`perform'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:142:in
`diagnose'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in
`run'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
`invoke_command'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in
`invoke_task'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`block in <top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in
`with_friendly_errors'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in
`<top (required)>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'"
- "/Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'"
这是 chef gem env
的结果:
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.6
- RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) [x86_64-darwin13]
- INSTALLATION DIRECTORY: /opt/chefdk/embedded/lib/ruby/gems/2.3.0
- USER INSTALLATION DIRECTORY: /Users/Jaz/.chefdk/gem/ruby/2.3.0
- RUBY EXECUTABLE: /opt/chefdk/embedded/bin/ruby
- EXECUTABLE DIRECTORY: /opt/chefdk/embedded/bin
- SPEC CACHE DIRECTORY: /Users/Jaz/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /opt/chefdk/embedded/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-13
- GEM PATHS:
- /opt/chefdk/embedded/lib/ruby/gems/2.3.0
- /Users/Jaz/.chefdk/gem/ruby/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--user --no-document"
- "update" => "--user --no-document"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/Jaz/.rvm/gems/ruby-2.3.0/bin
- /Users/Jaz/.rvm/gems/ruby-2.3.0@global/bin
- /Users/Jaz/.rvm/rubies/ruby-2.3.0/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Library/gradle-2.8/bin
- /usr/local/mysql/bin
- /Users/Jaz/Library/Android/sdk/platform-tools
- /Users/Jaz/Library/Android/sdk/tools
- /Users/Jaz/.rvm/bin
这是我的 .kitchen/logs/kitchen.log 文件的结果:
E, [2016-09-24T15:35:12.586307 #1273] ERROR -- Kitchen: ------Exception-------
E, [2016-09-24T15:35:12.586384 #1273] ERROR -- Kitchen: Class: Kitchen::ClientError
E, [2016-09-24T15:35:12.586402 #1273] ERROR -- Kitchen: Message: Could not load the 'vagrant' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
E, [2016-09-24T15:35:12.586414 #1273] ERROR -- Kitchen: ----------------------
E, [2016-09-24T15:35:12.586425 #1273] ERROR -- Kitchen: ------Backtrace-------
E, [2016-09-24T15:35:12.586435 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in `rescue in for_plugin'
E, [2016-09-24T15:35:12.586446 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in `for_plugin'
E, [2016-09-24T15:35:12.586456 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in `new_driver'
E, [2016-09-24T15:35:12.586467 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in `new_instance'
E, [2016-09-24T15:35:12.586477 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in `block in build_instances'
E, [2016-09-24T15:35:12.586487 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `map'
E, [2016-09-24T15:35:12.586497 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `with_index'
E, [2016-09-24T15:35:12.586507 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `build_instances'
E, [2016-09-24T15:35:12.586517 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in `instances'
E, [2016-09-24T15:35:12.586528 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in `filtered_instances'
E, [2016-09-24T15:35:12.586538 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in `parse_subcommand'
E, [2016-09-24T15:35:12.586548 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/list.rb:32:in `call'
E, [2016-09-24T15:35:12.586558 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in `perform'
E, [2016-09-24T15:35:12.586569 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:120:in `list'
E, [2016-09-24T15:35:12.586579 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
E, [2016-09-24T15:35:12.586589 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
E, [2016-09-24T15:35:12.586599 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in `invoke_task'
E, [2016-09-24T15:35:12.586621 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
E, [2016-09-24T15:35:12.586632 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
E, [2016-09-24T15:35:12.586642 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `block in <top (required)>'
E, [2016-09-24T15:35:12.586653 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in `with_friendly_errors'
E, [2016-09-24T15:35:12.586663 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `<top (required)>'
E, [2016-09-24T15:35:12.586673 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'
E, [2016-09-24T15:35:12.586683 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'
E, [2016-09-24T15:35:12.586698 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
E, [2016-09-24T15:35:12.586709 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
E, [2016-09-24T15:35:12.586719 #1273] ERROR -- Kitchen: ----End Backtrace-----
E, [2016-09-24T15:35:12.586729 #1273] ERROR -- Kitchen: ---Nested Exception---
E, [2016-09-24T15:35:12.586739 #1273] ERROR -- Kitchen: Class: LoadError
E, [2016-09-24T15:35:12.586749 #1273] ERROR -- Kitchen: Message: cannot load such file -- kitchen/driver/vagrant
E, [2016-09-24T15:35:12.586759 #1273] ERROR -- Kitchen: ----------------------
E, [2016-09-24T15:35:12.586768 #1273] ERROR -- Kitchen: ------Backtrace-------
E, [2016-09-24T15:35:12.586778 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:50:in `rescue in for_plugin'
E, [2016-09-24T15:35:12.586788 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/driver.rb:40:in `for_plugin'
E, [2016-09-24T15:35:12.586798 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:235:in `new_driver'
E, [2016-09-24T15:35:12.586808 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:248:in `new_instance'
E, [2016-09-24T15:35:12.586818 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:144:in `block in build_instances'
E, [2016-09-24T15:35:12.586828 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `map'
E, [2016-09-24T15:35:12.586838 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `with_index'
E, [2016-09-24T15:35:12.586848 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:143:in `build_instances'
E, [2016-09-24T15:35:12.586858 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/config.rb:119:in `instances'
E, [2016-09-24T15:35:12.586868 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:115:in `filtered_instances'
E, [2016-09-24T15:35:12.586878 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command.rb:145:in `parse_subcommand'
E, [2016-09-24T15:35:12.586889 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/command/list.rb:32:in `call'
E, [2016-09-24T15:35:12.586898 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:56:in `perform'
E, [2016-09-24T15:35:12.586909 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:120:in `list'
E, [2016-09-24T15:35:12.586918 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
E, [2016-09-24T15:35:12.586929 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
E, [2016-09-24T15:35:12.586938 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/cli.rb:334:in `invoke_task'
E, [2016-09-24T15:35:12.586948 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
E, [2016-09-24T15:35:12.586958 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
E, [2016-09-24T15:35:12.586968 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `block in <top (required)>'
E, [2016-09-24T15:35:12.586978 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/lib/kitchen/errors.rb:174:in `with_friendly_errors'
E, [2016-09-24T15:35:12.586988 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/gems/test-kitchen-1.13.1/bin/kitchen:13:in `<top (required)>'
E, [2016-09-24T15:35:12.587001 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `load'
E, [2016-09-24T15:35:12.587012 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/kitchen:23:in `<main>'
E, [2016-09-24T15:35:12.587021 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
E, [2016-09-24T15:35:12.587031 #1273] ERROR -- Kitchen: /Users/Jaz/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
E, [2016-09-24T15:35:12.587041 #1273] ERROR -- Kitchen: ----End Backtrace-----
最佳答案
我遇到了完全相同的问题并尝试遵循在 github 上找到的建议.那没有用。
最后,这就是为我解决问题的方法:
gem install kitchen-wrapper
关于ruby - 无法从加载路径 : Kitchen cannot find kitchen-vagrant's plugin 加载 'vagrant' 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39677365/
这个问题在这里已经有了答案: Why don't Java's +=, -=, *=, /= compound assignment operators require casting? (11 个
我搜索了很多,但没有一个链接能帮助我解决这个问题。我得到了 ORA-21500: internal error code, arguments: [%s], [%s], [%s], [%s], [%s
我正在做 RegexOne 正则表达式教程,它有一个 question关于编写正则表达式以删除不必要的空格。 教程中提供的解决方案是 We can just skip all the starting
([\s\S]+|\s?) 中 |\s? 的目的或作用是什么?如果没有它,表达式会不会与 ([\s\S]+) 相同? 最佳答案 这不是完全相同的。 ([\s\S]+|\s?) 会匹配空字符串,而 ([
这个正则表达式有一组还是两组? 我正在尝试使用第二组访问 bookTitle 但出现错误: Pattern pattern = Pattern.compile("^\\s*(.*?)\\s+-\\s+
在 C 中给定一个字符串指针 s,下面的迭代会做什么?即它以什么方式遍历字符串? for (++s ; *s; ++s); 最佳答案 for (++s ; *s;++s) 表示 将指针 s 递增到字符
我正在用一个 node.js 应用程序解析一个大列表并有这段代码 sizeCode = dbfr.CN_DESC.split('\s+-\s*|\s*-\s+') 这似乎不起作用,因为它返回了 [ '
我正在编写一个简单的字符串连接程序。 该程序按照我发布的方式运行。但是,我首先使用以下代码编写它来查找字符串的结尾: while (*s++) ; 但是,这个方法并没有奏效。我传递给它的字符串
这个问题已经有答案了: What does (?和aramchand来自Mohandas Karamchand G 因此,在使用这些匹配来分割字符串后,您最终会得到 {"M", "K", "G"} 注
我正在尝试转换 Map到 List使用 lambda。 本质上,我想将键和值与 '=' 连接起来之间。这看起来微不足道,但我找不到如何去做。 例如 Map map = new HashMap<>();
我正在经历 K & R,并且在递增指针时遇到困难。练习 5.3(第 107 页)要求您使用指针编写一个 strcat 函数。 在伪代码中,该函数执行以下操作: 将 2 个字符串作为输入。 找到字符串
在下面的代码中,pS 和 s.pS 在最后一行是否保证相等?也就是说,在语句S s = S();中,是否可以确定不会构造一个临时的S? #include using namespace std; s
演示示例代码: public void ReverseString(char[] s) { for(int i = 0, j = s.Length-1; i < j; i++, j--){
我一直在寻找类似于 .NET examples 中的示例的 PowerShell 脚本.取一个 New-TimeSpan 并显示为 1 天 2 小时 3 分钟 4 秒。排除其零的地方,在需要的地方添加
def func(s): s = s + " is corrected" return s string_list = ["She", "He"] for s in string_li
我是 python 的新手。当我在互联网上搜索 lambda 时。我在 lambda_functions 中找到了这个声明. processFunc = collapse and (lambda s:
我最近开始学习正则表达式,并试图为上面的问题写一个正则表达式。如果限制只放在一个字母上(例如不超过 2 个“b”),这并不困难。 那么答案就是:a* c*(b|ε)a* c*(b|ε)a* c* 但是
当我运行 npm install 时出现以下错误,但我无法修复它。 我试过:npm install -g windows-build-tools 也没有修复这个错误 ERR! configure
有很多有趣的haskell网上可以找到片段。 This post可以在 this (awesome) Stack Overflow question 下找到. The author写道: discou
我知道以下三行代码旨在将字符串提取到$ value中并将其存储在$ header中。但是我不知道$value =~ s/^\s+//;和$value =~ s/\s+$//;之间有什么区别。 $val
我是一名优秀的程序员,十分优秀!