# Bug OP-7061 - Cannot create plugins

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7061

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 11.0.0 |
| Observed in versions | 10.5.0 |
| Sprint | 11.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.5.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: 10.5

**Logs**

``` text
 openproject]$ openproject run bundle exec rails generate open_project:plugin test_auth_plugin plugins/test
/opt/openproject/vendor/ruby-2.6.6/lib/ruby/2.6.0/rubygems/core_ext/kernel_warn.rb:17:in `warn': DOORKEEPER] native_redirect_uri has been deprecated and will soon be removed (StructuredWarnings::BuiltInWarning)
D, [2020-04-29T19:16:59.806376 #30972] DEBUG -- :    (0.3ms)  SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL READ COMMITTED
D, [2020-04-29T19:16:59.937042 #30972] DEBUG -- :    (1.6ms)  SELECT MAX("settings"."updated_on") FROM "settings"
D, [2020-04-29T19:16:59.941075 #30972] DEBUG -- : Cache read: /openproject/settings/all/1588174155
D, [2020-04-29T19:16:59.941261 #30972] DEBUG -- : Dalli::Server#connect 127.0.0.1:11211
D, [2020-04-29T19:16:59.942458 #30972] DEBUG -- : Cache fetch_hit: /openproject/settings/all/1588174155
W, [2020-04-29T19:17:00.825899 #30972]  WARN -- : hook registered
W, [2020-04-29T19:17:06.558778 #30972]  WARN -- : Creating scope :order_by_name. Overwriting existing method Sprint.order_by_name.
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/behavior.rb:49:in `rescue in block (2 levels) in lookup': [WARNING] Could not load generator "generators/open_project/plugin/plugin_generator". Error: uninitialized constant Generators.
/opt/openproject/lib/generators/open_project/plugin/plugin_generator.rb:31:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/behavior.rb:44:in `block (2 levels) in lookup'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/behavior.rb:40:in `each'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/behavior.rb:40:in `block in lookup'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/behavior.rb:39:in `each'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/behavior.rb:39:in `lookup'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/generators.rb:258:in `find_by_namespace'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/generators.rb:274:in `invoke'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/generate/generate_command.rb:26:in `perform'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in `perform'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke'
/opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:9:in `require'
bin/rails:9:in `<main>' (StructuredWarnings::StandardWarning)
Could not find generator 'open_project:plugin'. Maybe you meant "test_unit:plugin"?
Run `rails generate --help` for more options.
```

### **Steps to reproduce:**

1.  Go to page <https://docs.openproject.org/development/create-omniauth-plugin/>
2.  Follow the instructions

### **Actual Behavior**

Error shown above in log

### **Expected Behavior**

Create working plugin stub as expected
