Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2357

recurse option has no effect when generating php

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • None
    • None

    Description

      When compiling a thrift file that includes other thrift files the included files does not get generated for php.

      For example:

      foo.thrift:
      --------------------------------------------------------
      include "bar.thrift"
      service FooService {
      bar.Foo SeeDosRun(1: bar.Baz baz);
      }

      bar.thrift
      --------------------------------------------------------
      struct Foo {
      1: string foo;
      }
      struct Baz {
      1: string baz;
      }

      thrift -v --gen php -r foo.thrift
      Scanning /home/mmanashirov/CMS/develop/tmp/foo.thrift for includes
      Scanning /home/mmanashirov/CMS/develop/tmp/bar.thrift for includes
      Parsing /home/mmanashirov/CMS/develop/tmp/bar.thrift for types
      Parsing /home/mmanashirov/CMS/develop/tmp/foo.thrift for types
      Program: /home/mmanashirov/CMS/develop/tmp/bar.thrift
      Generating "php"
      Program: /home/mmanashirov/CMS/develop/tmp/foo.thrift
      Generating "php"

      It says generating php after bar.thrift but no files actually get generated for that file. On the other hand generating files for cpp, py, js for example all work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mmanashirov Mark Manashirov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: