Comments (14)
I worked around it by adding
@@ -765,6 +765,9 @@ class AstWalker(NodeVisitor):
# Remove the item we pushed onto the containing nodes hierarchy.
containingNodes.pop()
+ def visit_Constant(self, node, **kwargs):
+ super().visit_Constant(node);
+
def parseLines(self):
"""Form an AST for the code and produce a new version of the source."""
inAst = parse(''.join(self.lines), self.inFilename)
But the other visit_*
functions do so much more so that I wonder whether calling only the function from the upper class will be sufficient. (I have no idea about the functionality of this code.)
from doxypypy.
For what it's worth, I got this issue the first time I tried doxypypy, on the first module I tried it on. It does not seem like an obscure corner case, rather seems to make this tool unusable.
from doxypypy.
Will the pull request be merged into a new release? We had the same problem in one of our projects.
from doxypypy.
Hello! I'm still getting this issue. Is there any chance of merging this PR? Would really help me out 😃
from doxypypy.
Sure, it's maintained, but it's also pretty stable and already working for a lot of people and I'm hesitant to commit changes that don't have any tests backing them up. It's not my day job and requests can only be serviced when I'm free, and if I have to write tests for changes to it myself I have to commit a lot more time up front.
from doxypypy.
I wonder if this could be triaged by just adding a dummy that takes the additional argument.
from doxypypy.
Thank you for sharing :)
I think it would be worth a pull request and be it only to direct attention to the issue and maybe provide a starting point for a complete fix.
from doxypypy.
Generally I try to merge pull requests that don't break existing tests and cover all new functionality with new tests pretty quickly (with the understanding that I typically only get to review things some weeknights and most weekends).
from doxypypy.
Hello! I'm still getting this issue. [...]
+1
from doxypypy.
Getting this issue as well
Is the project still maintained ? Last update looks ancient
Cheers
from doxypypy.
Sounds fair, existing tests seem to be failing on my computer though (python 3.8). Which version of python are supposed to be supported ?
from doxypypy.
This seems to be working better when pulling and building from source. The dockerhub image I was using had an out-of-date version.
from doxypypy.
BTW, I see have a similar issue. I upgraded to debian 11 today and updated doxypypy. I get this error:
Traceback (most recent call last):
File "/home/erik/.local/bin/doxypypy", line 8, in <module>
sys.exit(main())
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 830, in main
astWalker.parseLines()
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 743, in parseLines
self.visit(inAst)
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 569, in visit
return visitor(node, containingNodes=containingNodes)
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 594, in visit_Module
self.generic_visit(node, containingNodes=kwargs.get('containingNodes',
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 553, in generic_visit
self.visit(item, containingNodes=kwargs['containingNodes'])
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 569, in visit
return visitor(node, containingNodes=containingNodes)
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 735, in visit_ClassDef
self.generic_visit(node, containingNodes=containingNodes)
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 553, in generic_visit
self.visit(item, containingNodes=kwargs['containingNodes'])
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 569, in visit
return visitor(node, containingNodes=containingNodes)
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 555, in generic_visit
self.visit(value, containingNodes=kwargs['containingNodes'])
File "/home/erik/.local/lib/python3.9/site-packages/doxypypy/doxypypy.py", line 569, in visit
return visitor(node, containingNodes=containingNodes)
TypeError: visit_Constant() got an unexpected keyword argument 'containingNodes'
from doxypypy.
All 3.8 problems should now be fixed.
from doxypypy.
Related Issues (20)
- Option for leaving the function parameter types empty for use with Breathe? HOT 1
- private variables in class could not documented
- Is this library still ok?
- [Bug] conflicts withe `INLINE_SOURCES` . HOT 2
- [Bug] Doxygen output BrokenPipeError: [Errorno 32] Broken pipe HOT 1
- Consider use argparse instead of optparse
- IndexError: list index out of range -- if NOTE: lines are not separated by a blank line. HOT 2
- unexpected keyword argument HOT 3
- Update package on PyPi HOT 4
- Offset in line numbers
- `r"""` (and other string prefixes) removed from the end of docstrings
- TypeError: visit_Constant() got an unexpected keyword argument 'containingNodes' still present HOT 5
- Question about file level (not module level) docs
- doxypypy still relevant with Doxygen 1.9.* ? HOT 2
- How to specify the type of an argument? HOT 1
- Provide version information the usual way
- DOC: Improve README.md example
- TypeError: unexpected keyword argument 'containingNodes' HOT 5
- How can I use doxypypy to make documentation in Hellenic (Greek) language?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doxypypy.