You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run bundle exec danger pr, The command gets hung for a looong time and eventually times out. The problem disappears if I remove danger-eslint from Gemfile and Dangerfile (just removing from Dangerfile doesn't seem to fix it).
I Interrupted the command, and this is the stacktrace:
Running your Dangerfile against this PR - https://github.com/maxcodes/redacted/pull/1878
Turning on --verbose
[!] The exception involves the following plugins:
- danger-eslint
/Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-eslint-0.1.1/lib/eslint/plugin.rb:82:in ``': Interrupt
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-eslint-0.1.1/lib/eslint/plugin.rb:82:in `run_lint'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-eslint-0.1.1/lib/eslint/plugin.rb:51:in `lint'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:133:in `block (2 levels) in method_values_for_plugin_hashes'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:121:in `map'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:121:in `block in method_values_for_plugin_hashes'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:117:in `each'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:117:in `flat_map'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:117:in `method_values_for_plugin_hashes'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:150:in `print_known_info'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:174:in `parse'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/danger_core/dangerfile.rb:274:in `run'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/commands/pr.rb:61:in `block in run'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/commands/local_helpers/local_setup.rb:38:in `setup'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/lib/danger/commands/pr.rb:60:in `run'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/danger-5.5.11/bin/danger:5:in `<top (required)>'
from /Users/max/.rbenv/versions/2.3.4/bin/danger:22:in `load'
from /Users/max/.rbenv/versions/2.3.4/bin/danger:22:in `<top (required)>'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
from /Users/max/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
from /Users/max/.rbenv/versions/2.3.4/bin/bundle:22:in `load'
from /Users/max/.rbenv/versions/2.3.4/bin/bundle:22:in `<main>'
The text was updated successfully, but these errors were encountered:
TL;DR: Danger tries to gather info on the plugins and calls every method in the plugin that has no parameters, which in danger-eslint's case also includes #lint which is called without any options, which leads to it going through (at least in our case) much bigger pile of files than it would be with options.
Easy fix would be to add a bogus parameter to the plugins #lint method. I can provide a PR if @leonhartX is on board with that solution.
When trying to run
bundle exec danger pr
, The command gets hung for a looong time and eventually times out. The problem disappears if I remove danger-eslint from Gemfile and Dangerfile (just removing from Dangerfile doesn't seem to fix it).I
Interrupt
ed the command, and this is the stacktrace:Command run:
Output
The text was updated successfully, but these errors were encountered: