Giter Site home page Giter Site logo

Comments (7)

c2nes avatar c2nes commented on June 8, 2024

Hey vitaut, which version of javalang do you have installed?

from javasphinx.

vitaut avatar vitaut commented on June 8, 2024

I have version 0.9.4 of javalang installed.

from javasphinx.

c2nes avatar c2nes commented on June 8, 2024

Upgrading to javalang 0.9.5 should solve this.

from javasphinx.

vitaut avatar vitaut commented on June 8, 2024

Upgrading to version 0.9.5 solved the problem. Thanks!

from javasphinx.

larubbio avatar larubbio commented on June 8, 2024

I'm getting this error using 0.9.9 and 0.9.10. Here is the javadoc that is being parsed:

package test; /** Test */ public class Test {}

ERROR:root:Unexpected exception while compiling /Users/rob/code/motech/SphinxDocs/test/Test.java
Traceback (most recent call last):
  File "/Users/rob/code/motech/SphinxDocs/env/lib/python2.7/site-packages/javasphinx/apidoc.py", line 170, in generate_from_source_file
    documents = doc_compiler.compile(ast)
  File "/Users/rob/code/motech/SphinxDocs/env/lib/python2.7/site-packages/javasphinx/compiler.py", line 297, in compile
    document = self.compile_type_document(import_block, package, name, declaration)
  File "/Users/rob/code/motech/SphinxDocs/env/lib/python2.7/site-packages/javasphinx/compiler.py", line 206, in compile_type_document
    type_dir = self.compile_type(declaration)
  File "/Users/rob/code/motech/SphinxDocs/env/lib/python2.7/site-packages/javasphinx/compiler.py", line 80, in compile_type
    doc = self.__output_doc(declaration)
  File "/Users/rob/code/motech/SphinxDocs/env/lib/python2.7/site-packages/javasphinx/compiler.py", line 42, in __output_doc
    if doc.author:
AttributeError: 'DocBlock' object has no attribute 'author'

pip freeze:

Jinja2==2.7.2
MarkupSafe==0.21
Pygments==1.6
Sphinx==1.2.2
beautifulsoup4==4.3.2
docutils==0.11
javalang==0.9.5
javasphinx==0.9.10
lxml==3.3.5
wsgiref==0.1.2

from javasphinx.

c2nes avatar c2nes commented on June 8, 2024

Hi larubbio, this has been fixed in the master branch, but a release has not been cut for it yet. I'm working on releasing 0.9.11 right now and it should include the necessary fix.

from javasphinx.

c2nes avatar c2nes commented on June 8, 2024

javasphinx 0.9.11 has been released and uploaded to PyPI

from javasphinx.

Related Issues (20)

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.