Skip to content
This repository has been 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

Open
rbjorklin opened this issue Jan 17, 2017 · 0 comments

Comments

@rbjorklin
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant