Answers.Body: <p>Check the <code>Extensions Directory</code> specified at <code>Administer &gt; System Settings &gt; Directories</code>.  Your extension needs to be in that directory.  If not, either move your code or change the setting.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-18T12:29:07.573Z
Answers.LastActivityDate: 2017-11-18T12:29:07.573Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>You should run <code>civix generate:module "com.example.myextension</code> in directory where all the other CiviCRM modules reside - <code>/your_drupal_project_root/sites/all/modules/civicrm/ext</code> for Drupal 7 + CiviCRM 4.7. After that do <code>cd com.example.myextension</code> and there generate all the pages, menus etc for your extension. In other CMSes the full path may vary, but anyway it must be <code>civicrm/ext</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-05-01T15:46:44.167Z
Answers.LastActivityDate: 2018-05-01T15:46:44.167Z
Answers.UserDisplayName: Vadim Sushin
Body: <p>I'm trying to generate a new extension module following instructions from the docs: <a href="https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module</a>
  However, when I run the proposed command to generate the skeletal extension</p>
  
  <p>$ civix generate:module "com.example.myextension" --license=AGPL-3.0</p>
  
  <p>I get the following:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>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?</p>
  
  <p>I tried refreshing extensions list from the user interface of CiviCRM and the newly created extension does not appear on the list.</p>
  
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-18T07:31:42.127Z
Comments.Text: Did you "Follow the installation instructions in the GitHub repository"? Did you follow the Pre-Requisites (https://docs.civicrm.org/dev/en/latest/extensions/#pre-requisites)? Your extensions should be in the CiviCRM extensions directory in Drupal. It would help to post the steps you followed and what you tried, as we have no way of knowing what went went wrong without knowing what steps you followed.
Comments.UserDisplayName: Christia
Tags: <drupal><extension><civix>
Title: Install error when generating a new extension module
ThreadText: # Install error when generating a new extension module
  
  (Asked by: username_0 on 2017-11-17)
  
  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.
  Thanks!
  
  **Tags:** drupal, extension, civix
  
  > **Comments:**
  > **username_1**: Did you "Follow the installation instructions in the GitHub repository"? Did you follow the Pre-Requisites (https://docs.civicrm.org/dev/en/latest/extensions/#pre-requisites)? Your extensions should be in the CiviCRM extensions directory in Drupal. It would help to post the steps you followed and what you tried, as we have no way of knowing what went went wrong without knowing what steps you followed.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2017-11-18. Score: 1
  
  Check the `Extensions Directory` specified at `Administer > System Settings > Directories`. Your extension needs to be in that directory. If not, either move your code or change the setting.
  
  
  ---
  
  ### Answer by username_3 on 2018-05-01. Score: 1
  
  You should run `civix generate:module "com.example.myextension` in directory where all the other CiviCRM modules reside - `/your_drupal_project_root/sites/all/modules/civicrm/ext` for Drupal 7 + CiviCRM 4.7. After that do `cd com.example.myextension` and there generate all the pages, menus etc for your extension. In other CMSes the full path may vary, but anyway it must be `civicrm/ext`.
  
  
  ---
  
  