Error from Sorbet when using bundle exec packs and option 2 to move files: TypeError on T.must with nil input

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Message originally sent by slack user U72NG7VKI06

Hi all, did anyone faced with this error from Sorbet?

/gems/sorbet-runtime-0.5.10993/lib/types/_types.rb:222:in `must': Passed `nil` into T.must (TypeError)

I’m trying to use bundle exec packs and then option 2 to move files and when the input asks for files to move and I press enter, the error is raised.
I’ve tried using the absolute path and relative paths :thinking_face:

Did you also pass in a destination pack name? You can use bin/packs help move to see the full documentation on the command :slightly_smiling_face:

Oh wait this is for the interactive mode?

Is there a full stack trace present?

Message originally sent by slack user U72NG7VKI06

Previously I’ve tried the command with all params as per docs, and I got the same error, now I’m trying with the interactive mode

Message originally sent by slack user U72NG7VKI06

this is the fullstack trace

Ah – do you have a root package?

(A package.yml at the root of your application)

Message originally sent by slack user U72NG7VKI06

yes, I’ve a package.yml at the root, but is empty, it was created by the first run of packs create packs/pack_name I guess

Message originally sent by slack user U72NG7VKI06

I noticed that I don’t have a packs.yml at the root, but I understand that is only needed to change the default behavior

Does bin/packwerk validate pass with no errors?

Message originally sent by slack user U72NG7VKI06

yep, packwerk validate is running without errors

Message originally sent by slack user U72NG7VKI06

It starting working now, I copied the same unique key from packs/my_pack/package.yml and it started working
Could be possible, if any key is needed in package.yml in the app’s root, include a sample one when that file is created? :thinking_face:

What do you mean by “copied the same unique key?”