Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18597

ECLCC: 'fatal: No names found, ...etc', when using -checkDirty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.2
    • Fix Version/s: 6.4.4
    • Component/s: eclcc
    • Labels:
      None
    • Environment:
      CentOS 7 Minimal on Virtual Box VM.

      Description

      Summary

      When utilizing eclcc with the -checkDirty option the following output is always displayed:

      fatal: No names found, cannot describe anything.
      
      Technical Details
      • Utilizing my test ECL repository Persons, I executed the following command:
        eclcc -o Person.xml -E RunGetPerons.ecl --nostdinc --logfile Person.log -checkDirty
        
      • If there was no change to the repository I get the following output:
        fatal: No names found, cannot describe anything.
        
      • After making a change to one of the attributes I get the following output:
        RunGetPerons.ecl(0,0): info C1033: Definition is modified
        fatal: No names found, cannot describe anything.
        
      • After doing some research I determined that the string was a error returned specifically by git describe.
        $ git  describe
        fatal: No names found, cannot describe anything.
        $ echo $?
        128
        
      • Executed the above mentioned command once again this time with the verbose -v option, and saw that git describe is among the git command executed by eclcc.
        $ eclcc -o Person.xml -E RunGetPerons.ecl --nostdinc --logfile Person.log -checkDirty -v
        ...
        git: Creating PIPE program process : 'git status --porcelain -z -- RunGetPerons.ecl' - hasinput=0, hasoutput=1 stderrbufsize=0
        git: Pipe: process 3330 complete 0
        git: Creating PIPE program process : 'git status --porcelain -z -- /home/rosegr01/Developer/xecl/eclrepository/Persons/Person.ecl' - hasinput=0, hasoutput=1 stderrbufsize=0
        git: Pipe: process 3332 complete 0
        git: Creating PIPE program process : 'git status --porcelain -z -- /home/rosegr01/Developer/xecl/eclrepository/Persons/Address.ecl' - hasinput=0, hasoutput=1 stderrbufsize=0
        git: Pipe: process 3334 complete 0
        RunGetPerons.ecl(0,0): info C1033: Definition is modified
        git: Creating PIPE program process : 'git describe --tags --dirty --long' - hasinput=0, hasoutput=1 stderrbufsize=0
        fatal: No names found, cannot describe anything.
        git: Pipe: process 3336 complete 128
        Failed to run git describe: returned 128 ()
        
      Possible Solution

      Utilize the git describe command with --always option:

      $ git describe --tags --always
      be2171d
      $ echo $?
      0
      
      • Presently eclcc is executing the following git describe command.
        git describe --tags --dirty --long' - hasinput=0, hasoutput=1 stderrbufsize=0
        
      • A suggested solution is the following:
        git describe --tags --always --dirty --long' - hasinput=0, hasoutput=1 stderrbufsize=0
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                richardkchapman Richard Chapman
                Reporter:
                rosegr01 Gregory Rose
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: