Giter Site home page Giter Site logo

javadoc-parser's Introduction

javadoc-parser

This project parses javadocs with the intent to do somekind of processing on top of it.

javadoc-parser's People

Contributors

lcc avatar

Watchers

James Cloos avatar  avatar

Forkers

joismar

javadoc-parser's Issues

Saída não vai para o log...

No primeiro RUN obtive o seguinte erro:

Traceback (most recent call last):
  File "parser.py", line 279, in <module>
    main()
  File "parser.py", line 275, in main
    res = filter_by_documentation(my_files)
  File "parser.py", line 240, in filter_by_documentation
    method = parsed_method(method, anchor, file_)
  File "parser.py", line 40, in __init__
    self.name = method.find(self.METHOD_NAME_TAG).get_text(' ', strip=True)
AttributeError: 'NoneType' object has no attribute 'get_text'

Então adicionei a seguinte linha no init pra verificar se a tag ta com o valor de get_text nulo:

def __init__(self, method, anchor, file_path):
	if method.find(self.METHOD_NAME_TAG) != None: # se for nulo faz nada
		self.name = method.find(self.METHOD_NAME_TAG).get_text(' ', strip=True)
		self.set_description(method)
		self.set_anchor(anchor, file_path)

Dai rodou normalmente e meu parser termina dessa forma...

...
Examining file 914 of 929
doStartTag--
createValidator--
file://C:\Users\joism\Desktop\JAVADOC\myfaces-api-2.3.4-javadoc\javax\faces\webapp\ValidatorELTag.html#doStartTag--
file://C:\Users\joism\Desktop\JAVADOC\myfaces-api-2.3.4-javadoc\javax\faces\webapp\ValidatorELTag.html#createValidator--
Examining file 915 of 929
setValidatorId-java.lang.String-
doStartTag--
release--
createValidator--
setBinding-java.lang.String-
file://C:\Users\joism\Desktop\JAVADOC\myfaces-api-2.3.4-javadoc\javax\faces\webapp\ValidatorTag.html#setValidatorId-java.lang.String-
file://C:\Users\joism\Desktop\JAVADOC\myfaces-api-2.3.4-javadoc\javax\faces\webapp\ValidatorTag.html#doStartTag--
file://C:\Users\joism\Desktop\JAVADOC\myfaces-api-2.3.4-javadoc\javax\faces\webapp\ValidatorTag.html#release--
file://C:\Users\joism\Desktop\JAVADOC\myfaces-api-2.3.4-javadoc\javax\faces\webapp\ValidatorTag.html#createValidator--
file://C:\Users\joism\Desktop\JAVADOC\myfaces-api-2.3.4-javadoc\javax\faces\webapp\ValidatorTag.html#setBinding-java.lang.String-
Examining file 916 of 929
Examining file 917 of 929
Examining file 918 of 929
Examining file 919 of 929
Examining file 920 of 929
Examining file 921 of 929
Examining file 922 of 929
Examining file 923 of 929
Examining file 924 of 929
Examining file 925 of 929
Examining file 926 of 929
Examining file 927 of 929
Examining file 928 of 929

Porém o log sai vazio e não consigo entender essas saidas printadas. Ainda não consegui descobrir onde que ta o problema.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.