I'm trying to generate a new extension module following instructions from the docs: https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module However, when I run the proposed command to generate the skeletal extension
$ civix generate:module "com.example.myextension" --license=AGPL-3.0
I get the following:
Initalize module com.example.myextension Write com.example.myextension/info.xml Write com.example.myextension/myextension.php Write com.example.myextension/myextension.civix.php Write com.example.myextension/LICENSE.txt Write com.example.myextension/README.md Write com.example.myextension/images/screenshot.png Refresh extension list for "http://localhost/compucorp/" Enable extension (com.example.myextension) in "http://localhost/compucorp/"? [Y/n] Y Enable extension (com.example.myextension) in "http://localhost/compucorp/" Install error: Unknown extension: com.example.myextension
The extensions directory is created on the root of the CMS (Drupal), and the new extension directory com.example.myextension is created successfully and seems to have right permissions. What can be the problem?
I tried refreshing extensions list from the user interface of CiviCRM and the newly created extension does not appear on the list.