Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fortran_parse error in the fortran_autodoc module for a basic example #49

Open
PauJuan opened this issue Jan 4, 2023 · 0 comments
Open

Comments

@PauJuan
Copy link

PauJuan commented Jan 4, 2023

Hi,

I am trying to set a minimal working example for fortran_autodoc. make html works when no files are added to the project. If I add a simple file such as:

module constants  
implicit none 

   real, parameter :: pi = 3.1415926536  
   real, parameter :: e = 2.7182818285 
   
contains      
   subroutine show_consts()          
      print*, "Pi = ", pi          
      print*,  "e = ", e     
   end subroutine show_consts 
   
end module constants 

The file name is test.f90 and it is picked up by conf.py. I get the following error:
Handler <function fortran_parse at 0x00000166EC1CFCA8> for event 'builder-inited' threw an exception (exception: 'C')

I tried with the test files in the repository as well but I always get the same problem. This is independent to referring to them in index.rst. I imagine it is something to do with my setup, but I didn't find the traceback helpful at all. Perhaps somebody has come across it before?

Many thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant