Aptana Studio
  1. Aptana Studio
  2. APSTUD-3864

Indexing PHP files that do not end on .php or .inc

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Low Low
    • Resolution: Fixed
    • Affects Version/s: Aptana Studio 3.0.6
    • Fix Version/s: Aptana Studio 3.1.0
    • Component/s: php
    • Labels:
    • Environment:

      OSX 10.7.2

      Description

      Like described here https://aptanastudio.tenderapp.com/discussions/problems/3043-phpdoc-and-drupal apparently aptana does not index the drupal files ending with .module etc. properly.

      The project was created using File->New->PHP Project.

      Aptana indexes some .inc files but not all and none of the .module files.

        Activity

        Hide
        Hans Wurst added a comment -

        the solution i found is to add .module etc. files at
        Preferences->General->Content Types->Text->PHP

        and at
        Preferences->General->Editors->File Associations with
        PHP Source Editor
        Text Editor (Studio)
        Text Editor

        and have
        Project->Properties->Project Natures like
        PHP - Primary
        Web

        maybe aptana could be a bit more drupal friendly

        Show
        Hans Wurst added a comment - the solution i found is to add .module etc. files at Preferences->General->Content Types->Text->PHP and at Preferences->General->Editors->File Associations with PHP Source Editor Text Editor (Studio) Text Editor and have Project->Properties->Project Natures like PHP - Primary Web maybe aptana could be a bit more drupal friendly
        Hide
        Shalom Gibly added a comment - - edited

        Accepted your suggestion
        Added default support for .module and .install extensions.

        As for not indexing some of the .inc file - You have to make sure the files are in a project that has a 'PHP Nature'. Only files that exist in those type of project will be indexed.

        Cheers

        Show
        Shalom Gibly added a comment - - edited Accepted your suggestion Added default support for .module and .install extensions. As for not indexing some of the .inc file - You have to make sure the files are in a project that has a 'PHP Nature'. Only files that exist in those type of project will be indexed. Cheers
        Hide
        Clayton Headley (Inactive) added a comment -

        Verified fixed for Windows 7, Mac OS 10.7.3, and Ubuntu 11.10 using build : 3.1.0.201203132001. Closing ticket.

        Show
        Clayton Headley (Inactive) added a comment - Verified fixed for Windows 7, Mac OS 10.7.3, and Ubuntu 11.10 using build : 3.1.0.201203132001. Closing ticket.
        Hide
        Tyler Renelle added a comment -

        The problem here is that it causes a conflict with PDT (see APSTUD-4668), the result being you actually can't use PDT with Aptana as of this fix. This is a big issue for Drupal developers because all the Drupal-Eclipse plugins out there are built for PDT, not Aptana's PHP (Drupal Eclipse, Drupal PDT Templates, and DrupalCS AFAIK).

        I suggest reversing this fix – users can add .module, *.profile, etc to Content Types as desired if not already there, but if it *is already there (as of this fix) the association becomes locked and you can't use PDT. I must revert back to previous version of Aptana.

        Show
        Tyler Renelle added a comment - The problem here is that it causes a conflict with PDT (see APSTUD-4668 ), the result being you actually can't use PDT with Aptana as of this fix. This is a big issue for Drupal developers because all the Drupal-Eclipse plugins out there are built for PDT, not Aptana's PHP ( Drupal Eclipse , Drupal PDT Templates , and DrupalCS AFAIK). I suggest reversing this fix – users can add .module, *.profile, etc to Content Types as desired if not already there, but if it *is already there (as of this fix) the association becomes locked and you can't use PDT. I must revert back to previous version of Aptana.
        Hide
        Tyler Renelle added a comment -

        Had to abandon Aptana for Drupal dev unfortunately More discussion here http://groups.drupal.org/node/39938#comment-750698

        Show
        Tyler Renelle added a comment - Had to abandon Aptana for Drupal dev unfortunately More discussion here http://groups.drupal.org/node/39938#comment-750698

          People

          • Assignee:
            Shalom Gibly
            Reporter:
            Hans Wurst
          • Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development