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
The only thing I can think of that would cause this error is if there is a monkey patch in another gem that is defining the SSHKit::StandardError constant before require "sshkit" is being called. Is that possible in your setup?
As a workaround/experiment, you could try adding gem "sshkit" to your Gemfile before any other gem to see if that changes the behavior at all.
The other thing you could try is to edit your locally installed sshkit gem (e.g. using bundle open sshkit) and add this line just before sshkit defines the SSHKit::StandardError constant in lib/sshkit.rb:
moduleSSHKitppSSHKit.const_source_location(:StandardError)# ADD THIS LINEStandardError=Class.new(::StandardError)
That may provide a clue as to where the duplicate constant is being defined.
it seems there is a constant being initialized twice
The text was updated successfully, but these errors were encountered: