[ 
https://issues.apache.org/jira/browse/YETUS-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Akira Ajisaka updated YETUS-1099:
---------------------------------
    Description: 
shelldocs --lint options fails:
{noformat}
hadoop-mirror git:(HADOOP-16747) ✗ ./dev-support/bin/shelldocs --lint -i 
./hadoop-common-project/hadoop-common/src/main/bin/start-all.sh  
Traceback (most recent call last):
  File 
"/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
 line 477, in <module>
    main()
  File 
"/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
 line 468, in main
    message = funcs.lint()
  File 
"/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
 line 273, in lint
    value = getfuncs[attr]()
TypeError: 'str' object is not callable
{noformat}
Here the result of "getfuncs[attr]" is "self.replacetext" and its type is "str" 
or "NoneType". These types cannot call "()" and that's why the error occurs.

  was:
shelldocs --lint options fails:
{noformat}
hadoop-mirror git:(HADOOP-16747) ✗ ./dev-support/bin/shelldocs --lint -i 
./hadoop-common-project/hadoop-common/src/main/bin/start-all.sh  
Traceback (most recent call last):
  File 
"/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
 line 477, in <module>
    main()
  File 
"/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
 line 468, in main
    message = funcs.lint()
  File 
"/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
 line 273, in lint
    value = getfuncs[attr]()
TypeError: 'str' object is not callable
{noformat}


> shelldocs --lint option fails
> -----------------------------
>
>                 Key: YETUS-1099
>                 URL: https://issues.apache.org/jira/browse/YETUS-1099
>             Project: Yetus
>          Issue Type: Bug
>          Components: ShellDocs
>    Affects Versions: 0.13.0
>            Reporter: Akira Ajisaka
>            Assignee: Akira Ajisaka
>            Priority: Blocker
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> shelldocs --lint options fails:
> {noformat}
> hadoop-mirror git:(HADOOP-16747) ✗ ./dev-support/bin/shelldocs --lint -i 
> ./hadoop-common-project/hadoop-common/src/main/bin/start-all.sh  
> Traceback (most recent call last):
>   File 
> "/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
>  line 477, in <module>
>     main()
>   File 
> "/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
>  line 468, in main
>     message = funcs.lint()
>   File 
> "/Users/aajisaka/git/hadoop-mirror/patchprocess/apache-yetus-0.13.0/bin/../lib/shelldocs/shelldocs.py",
>  line 273, in lint
>     value = getfuncs[attr]()
> TypeError: 'str' object is not callable
> {noformat}
> Here the result of "getfuncs[attr]" is "self.replacetext" and its type is 
> "str" or "NoneType". These types cannot call "()" and that's why the error 
> occurs.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to