[petsc-dev] Problem with generateetags.py

Jose E. Roman jroman at dsic.upv.es
Fri Apr 4 10:30:06 CDT 2014


After git clean it worked.
Many thanks.
Jose


El 04/04/2014, a las 17:24, Satish Balay escribió:

> The code was was added in a few months back - and there is no reported
> issue [by petsc-dev users] or in nightlybuilds since then - so this
> issue must be something else.
> 
> Is it reproduceable in a clean repo?
> 
> git clean -f -d -x
> 
> I think we need the *.tex files in 'etags' file [and currently we
> process the same files for ctags aswell]
> 
> Satish
> 
> 
> On Fri, 4 Apr 2014, Barry Smith wrote:
> 
>> 
>>  Jose,
>> 
>>    I’m sorry I don’t understand this bug report. I don’t see a *.tex in generateetags.py nor does it crash for me.Is it crashing in a particular directory?
>> 
>>   Thanks
>> 
>>    Barry
>> 
>> 
>> 
>> On Apr 4, 2014, at 4:17 AM, Jose E. Roman <jroman at dsic.upv.es> wrote:
>> 
>>> I am getting an error when generating the tags, see error below. I have tracked the problem down to this offending commit:
>>> https://bitbucket.org/petsc/petsc/commits/326299b7
>>> 
>>> It started to appear when the TAO users guide was placed under src.
>>> A simple fix is to remove *.tex from generateetags.py
>>> Do you want me to change this?
>>> 
>>> Jose
>>> 
>>> 
>>> $ make alletags
>>> Traceback (most recent call last):
>>> File "bin/maint/generateetags.py", line 154, in <module>
>>>  main(ctags)
>>> File "bin/maint/generateetags.py", line 143, in main
>>>  os.path.walk(os.getcwd(),processDir,[etagfile,ctagfile])
>>> File "/usr/lib/python2.7/posixpath.py", line 246, in walk
>>>  walk(name, func, arg)
>>> File "/usr/lib/python2.7/posixpath.py", line 246, in walk
>>>  walk(name, func, arg)
>>> File "/usr/lib/python2.7/posixpath.py", line 246, in walk
>>>  walk(name, func, arg)
>>> File "/usr/lib/python2.7/posixpath.py", line 238, in walk
>>>  func(arg, top, names)
>>> File "bin/maint/generateetags.py", line 94, in processDir
>>>  if newls: createTags(etagfile,ctagfile,dirname,newls)
>>> File "bin/maint/generateetags.py", line 62, in createTags
>>>  raise RuntimeError("Error running ctags "+output)
>>> RuntimeError: Error running ctags ctags: "/home/jroman/soft/petsc/CTAGS" doesn't look like a tag file; I refuse to overwrite it.
>>> make: [alletags] Error 1 
>>> 
>>> 
>> 
>> 




More information about the petsc-dev mailing list