Not work in crystal 0.24.1
Opened this issue · 0 comments
zombiecong commented
It works well in 0.23 , but didn't work in 0.24.1(latest release version).
error log
in src/mtr.cr:35: instantiating 'Run::Command#run()'
camd.run.wait
^~~
in lib/run/src/run/command.cr:64: instantiating 'Run::CommandProcess#tap()'
new_process(Context.new(**attributes)).tap do |process|
^~~
in lib/run/src/run/command.cr:64: instantiating 'Run::CommandProcess#tap()'
new_process(Context.new(**attributes)).tap do |process|
^~~
in lib/run/src/run/command.cr:65: instantiating 'Run::CommandProcess#start()'
process.start
^~~~~
in lib/run/src/run/as_process.cr:36: instantiating 'Mutex#synchronize()'
@start_mutex.synchronize do
^~~~~~~~~~~
in lib/run/src/run/as_process.cr:36: instantiating 'Mutex#synchronize()'
@start_mutex.synchronize do
^~~~~~~~~~~
in lib/run/src/run/as_process.cr:38: instantiating 'Attempt::Context#attempt_once()'
@attempt.attempt_once do
^~~~~~~~~~~~
in lib/run/src/run/as_process.cr:38: instantiating 'Attempt::Context#attempt_once()'
@attempt.attempt_once do
^~~~~~~~~~~~
in lib/run/src/run/as_process.cr:39: instantiating 'with_startup()'
with_startup do
^~~~~~~~~~~~
in lib/run/src/run/as_process.cr:39: instantiating 'with_startup()'
with_startup do
^~~~~~~~~~~~
in lib/run/src/run/as_process.cr:40: instantiating 'new_impl()'
@impl = new_impl
^~~~~~~~
in lib/run/src/run/command_process.cr:70: instantiating 'Run::CommandProcess::Impl:Class#new(Run::CommandProcess)'
Impl.new(self)
^~~
in lib/run/src/run/command_process.cr:40: no overload matches 'Process.new' with types , command: String, args: Array(String), env: Hash(String, String), clear_env: Bool, shell: Bool, input: (Bool | IO | Nil), output: (Bool | IO | Nil), error: (Bool | IO | Nil), chdir: String
Overloads are:
- Process.new(command : String, args = nil, env : Env = nil, clear_env : Bool = false, shell : Bool = false, input : Stdio = Redirect::Close, output : Stdio = Redirect::Close, error : Stdio = Redirect::Close, chdir : String | ::Nil = nil)
- Process.new(pid)
Couldn't find overloads for these types:
- Process.new(String, Array(String), Hash(String, String), Bool, Bool, Bool, Bool, Bool, String)
- Process.new(String, Array(String), Hash(String, String), Bool, Bool, Bool, Bool, IO::ARGF, String)
- Process.new(String, Array(String), Hash(String, String), Bool, Bool, Bool, Bool, IO::FileDe
...