Closed JulesKouatchou closed 10 months ago
Hi @JulesKouatchou, this looks like the same bug as reported here -- should be fixed in 7.0.2. Please could you try updating Ford and let me know if it still persists?
Thank you for your suggestion. I installed Ford 7.0.2 and attempted to generate the documentation again. There was progress but had another error (similar to the original one?):
Correlating information from different parts of your project...
Traceback (most recent call last):
File "/Users/jkouatch/miniconda/23.5.2-0_py3.11/2023-09-28/bin/ford", line 8, in <module>
sys.exit(run())
^^^^^
File "/Users/jkouatch/miniconda/23.5.2-0_py3.11/2023-09-28/lib/python3.11/site-packages/ford/__init__.py", line 491, in run
main(proj_data, proj_docs)
File "/Users/jkouatch/miniconda/23.5.2-0_py3.11/2023-09-28/lib/python3.11/site-packages/ford/__init__.py", line 419, in main
project.correlate()
File "/Users/jkouatch/miniconda/23.5.2-0_py3.11/2023-09-28/lib/python3.11/site-packages/ford/fortran_project.py", line 338, in correlate
container.correlate(self)
File "/Users/jkouatch/miniconda/23.5.2-0_py3.11/2023-09-28/lib/python3.11/site-packages/ford/sourceform.py", line 1296, in correlate
entity.correlate(project)
File "/Users/jkouatch/miniconda/23.5.2-0_py3.11/2023-09-28/lib/python3.11/site-packages/ford/sourceform.py", line 1261, in correlate
item = self._find_chain_item(call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jkouatch/miniconda/23.5.2-0_py3.11/2023-09-28/lib/python3.11/site-packages/ford/sourceform.py", line 1484, in _find_chain_item
context = item.parent.all_types.get(type_str, None)
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExternalType' object has no attribute 'all_types'
@JulesKouatchou Please could you try #584 and let me know if that fixes it?
@ZedThree I looked at #584 as you suggested. Is there any new version of Ford that has the fix? Thanks.
Not yet, you'd have to checkout the branch locally and try that.
If you can come up with a minimal, self-contained example that has the bug, I can test it myself.
@ZedThree Thank you for the branch you created. I got it and installed Ford but it did not resolve the issue.
I created a tarball (big) here:
https://drive.google.com/file/d/1opQF8zFl--nlsi7TW_ImqNAQihQEGwtP/view?usp=sharing
When you gunzip the file, you will get the folder MAPL/
. To generate the documentation, go to the folder:
MAPL/docs/Ford/
and issue the command:
ford docs-with-remote-esmf.md
You may want to edit the preprocessor
setting in docs-with-remote-esmf.md
.
Thank you for your assistance.
Cheers,
Jules
Thanks @JulesKouatchou, that's allowed me to track it down and check the fix.
I think there's a better fix, but I don't have time to implement it right now, so I'll make an issue and hopefully be able to resolve it properly in the future
@JulesKouatchou I've released 7.0.3 with this fix in now
@ZedThree Thank you very much. With 7.0.3, I no longer have an issue. I appreciate your effort in fixing issues.
Could you reopen the issue? It is still present when resolving links in the docstring of deferred
bound methods. For example:
module hello_mod
implicit none
private
type, public, abstract :: foo_t
contains
!> See [[bar]] for more information
procedure(foo_iface), public, deferred :: foo
end type
abstract interface
subroutine foo_iface(self)
import :: foo_t
class(foo_t), intent(in) :: self
end subroutine
end interface
public bar
contains
!> More details about [[foo_t]] API
subroutine bar
end subroutine
end module
leads to:
```text
Parsing files ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1/1 0:00:00 0:00:00 ../src/hello.f90
Correlating information from different parts of your project...
...done in 0.000s
⠋ Processing comments ━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━ 50% 4/8 0:00:01 0:00:00 foo
Traceback (most recent call last):
File "/home/adrien/.pyenv/versions/3.11.4/bin/ford", line 8, in
Here is a mwe for convenience:
@amorison That looks like a different issue, just a similar exception. I'll open a separate issue for it
I am using Ford 7.0.1 to generate a documentation for a large application. Every time I run Ford, I have the same error message (see below) on different files at different directories. However, when gather only the individual files (where Ford is failing within the application) in a separate
project
, Ford runs without any issue. I am little bit confused.Any help or pointer will be appreciated. If needed, I can provide a large tarball.
Thank you for your assistance.
Jules
Error Message