Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

javasphinx-apidoc throws an error when a file contains only commented code #58

@rbjorklin

Description

@rbjorklin

javasphinx-apidoc throws an error when a file contains only commented code.

javasphinx-apidoc -o javasphinx ~/svn/trunk/
ERROR:root:Unexpected exception while compiling <path to file with only commented code>
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/javasphinx/apidoc.py", line 190, in generate_from_source_file
    documents = doc_compiler.compile(ast)
  File "/usr/lib/python3.5/site-packages/javasphinx/compiler.py", line 323, in compile
    raise ValueError('File must have package declaration')
ValueError: File must have package declaration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions