Closed y-yagi closed 1 year ago
@y-yagi Can you clarify: when did this warning start? Was this always a bug but just not detected until a recent version of Thor?
@ColinDKelley If my understanding is correct, this warning has started since Thor v1.0.0. PR: https://github.com/rails/thor/pull/626 This isn't a bug and still works well now. But, as the deprecated message describes, it won't work in the future version. So we need to fix it.
Currently, you will get Thor's deprecated message when starting the
Listen::CLI
.This is due to the incorrect default value(
directory
is defined as anarray
, but the default value is astring
).This fixed to use the correct default value and correctly pass to the
directory
toListen.to
.