Bitrise Build Issue Report template
Description of the issue
When run xcov.report() from danger run, it’s failing with Workspace file not found at path '/Users/vagrant/git/RPushPNP.xcworkspace'
which was working perfectly last week.
Environment:
Where did the issue happen?
when execute this command
bundle exec danger --new-comment --verbose
Build log
±-----------------------------------------------------------------------------+
| (5) run Danger |
±-----------------------------------------------------------------------------+
| id: script |
| version: 1.2.1 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: bash |
| time: 2024-07-16T09:54:46Z |
±-----------------------------------------------------------------------------+
| |
- ‘[’ ‘!’ -f ./Dangerfile ‘]’
- ‘[’ true = true ‘]’
- ghprbPullId=337
- bundle exec danger --new-comment --verbose
[09:54:49]: Error setting value ‘MY_PRJ_NAME.xcworkspace’ for option ‘workspace’
[!] The exception involves the following plugins:
- danger-xcov
bundler: failed to load command: danger (/Users/vagrant/.asdf/installs/ruby/3.2.4/bin/danger)
/Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:250:inrescue in valid?': (Danger::DSLError) [!] Invalid
Dangerfile` file: Workspace file not found at path ‘/Users/vagrant/git/MY_PRJ_NAME.xcworkspace’
from Dangerfile:53
-------------------------------------------
system(‘rm -rf artifacts/unit-tests/coverage’)
xcov.report(
workspace: ‘MY_PRJ_NAME.xcworkspace’,
-------------------------------------------
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:246:in `valid?'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:195:in `verify!'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:87:in `block in verify_value_exists'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:in `each'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:in `verify_value_exists'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:66:in `initialize'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in `new'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in `create'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:56:in `produce_report'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:36:in `report'
from Dangerfile:53:in `eval_file'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:311:in `eval'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:311:in `eval_file'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:204:in `block in parse'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:201:in `instance_eval'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:201:in `parse'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:287:in `run'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/executor.rb:28:in `run'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/commands/runner.rb:73:in `run'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/bin/danger:5:in `<top (required)>'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/danger:25:in `load'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/danger:25:in `<top (required)>'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in `load'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:23:in `run'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:492:in `exec'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:34:in `dispatch'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:28:in `start'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/exe/bundle:37:in `block in <top (required)>'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/exe/bundle:29:in `<top (required)>'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/bundle:25:in `load'
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/bundle:25:in `<main>'
/Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:250:in rescue in valid?': Workspace file not found at path '/Users/vagrant/git/MY_PRJ_NAME.xcworkspace' (FastlaneCore::Interface::FastlaneError) from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:246:in
valid?’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:195:in verify!' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:87:in
block in verify_value_exists’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:in each' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:in
verify_value_exists’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:66:in initialize' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in
new’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in create' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:56:in
produce_report’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:36:in report' from Dangerfile:53:in
eval_file’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:311:in eval' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:311:in
eval_file’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:204:in block in parse' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:201:in
instance_eval’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:201:in parse' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:287:in
run’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/executor.rb:28:in run' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/commands/runner.rb:73:in
run’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in run' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/bin/danger:5:in
<top (required)>’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/danger:25:in load' from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/danger:25:in
<top (required)>’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in load' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in
kernel_load’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:23:in run' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:492:in
exec’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
invoke_command’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:34:in
dispatch’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:28:in
start’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/exe/bundle:37:in block in <top (required)>' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/friendly_errors.rb:117:in
with_friendly_errors’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/exe/bundle:29:in <top (required)>' from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/bundle:25:in
load’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/bundle:25:in <main>' /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/xcov-1.8.1/lib/xcov/options.rb:20:in
block in available_options’: Workspace file not found at path ‘/Users/vagrant/git/MY_PRJ_NAME.xcworkspace’ (RuntimeError)
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:247:in valid?' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/config_item.rb:195:in
verify!’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:87:in block in verify_value_exists' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:in
each’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:82:in verify_value_exists' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:66:in
initialize’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in new' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/fastlane-2.200.0/fastlane_core/lib/fastlane_core/configuration/configuration.rb:36:in
create’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:56:in produce_report' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-xcov-0.5.0/lib/danger_plugin.rb:36:in
report’
from Dangerfile:53:in eval_file' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:311:in
eval’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:311:in eval_file' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:204:in
block in parse’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:201:in instance_eval' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:201:in
parse’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/dangerfile.rb:287:in run' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/danger_core/executor.rb:28:in
run’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/lib/danger/commands/runner.rb:73:in run' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in
run’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/danger-9.4.3/bin/danger:5:in <top (required)>' from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/danger:25:in
load’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/danger:25:in <top (required)>' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in
load’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in kernel_load' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:23:in
run’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:492:in exec' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
run’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor.rb:392:in
dispatch’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:34:in dispatch' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in
start’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/cli.rb:28:in start' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/exe/bundle:37:in
block in <top (required)>’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/lib/bundler/friendly_errors.rb:117:in with_friendly_errors' from /Users/vagrant/.asdf/installs/ruby/3.2.4/lib/ruby/gems/3.2.0/gems/bundler-2.4.19/exe/bundle:29:in
<top (required)>’
from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/bundle:25:in load' from /Users/vagrant/.asdf/installs/ruby/3.2.4/bin/bundle:25:in
’
Workspace file not found at path ‘/Users/vagrant/git/MY_PRJ_NAME.xcworkspace’
| |
±–±--------------------------------------------------------------±---------+
| x | run Danger (Failed) | 4.20 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: Issues · bitrise-steplib/steps-script · GitHub |
| Source: GitHub - bitrise-steplib/steps-script: A generic Script step for Bitrise |
±–±--------------------------------------------------------------±---------+