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 running a command such as hanami g action home.subscribe --slice=main --url='/subscribe' --http=post, the following error is raised:
/Users/me/.gem/ruby/3.2.0/gems/dry-files-1.0.1/lib/dry/files.rb:957:in `index': cannot find `(?-mix:slice[[:space:]]*:main)' in `config/routes.rb' (Dry::Files::MissingTargetError)
from /Users/me/.gem/ruby/3.2.0/gems/dry-files-1.0.1/lib/dry/files.rb:685:in `inject_line_at_block_bottom'
from /Users/me/.gem/ruby/3.2.0/gems/hanami-cli-2.0.3/lib/hanami/cli/generators/app/action.rb:73:in `generate_for_slice'
from /Users/me/.gem/ruby/3.2.0/gems/hanami-cli-2.0.3/lib/hanami/cli/generators/app/action.rb:28:in `call'
from /Users/me/.gem/ruby/3.2.0/gems/hanami-cli-2.0.3/lib/hanami/cli/commands/app/generate/action.rb:72:in `call'
from /Users/me/.gem/ruby/3.2.0/gems/hanami-cli-2.0.3/lib/hanami/cli/commands/app/command.rb:40:in `call'
from /Users/me/.gem/ruby/3.2.0/gems/dry-cli-1.0.0/lib/dry/cli.rb:116:in `perform_registry'
from /Users/me/.gem/ruby/3.2.0/gems/dry-cli-1.0.0/lib/dry/cli.rb:65:in `call'
from /Users/me/.gem/ruby/3.2.0/gems/hanami-cli-2.0.3/exe/hanami:11:in `<top (required)>'
from /Users/me/.gem/ruby/3.2.0/bin/hanami:25:in `load'
from /Users/me/.gem/ruby/3.2.0/bin/hanami:25:in `<main>'
I believe this happens because the regular expression below expects a form without parenthesis.
When using hanamismith the generated
routes.rb
looks like:When running a command such as
hanami g action home.subscribe --slice=main --url='/subscribe' --http=post
, the following error is raised:I believe this happens because the regular expression below expects a form without parenthesis.
Reference: PR on hanamismith
The text was updated successfully, but these errors were encountered: