Comments (3)
Hello, you can start by removing this try/except.
It will fail and show you the whole traceback.
from vim-python-docstring.
Sorry for the slow reply, this is what I get with the full traceback:
Error detected while processing function vimpythondocstring#Full:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ubuntu/.vim/bundle/vim-python-docstring/autoload/../python/pydocstring.py", line 265, in full_docstring
self.obj_controller.write_docstring(print_hints=print_hints)
File "/home/ubuntu/.vim/bundle/vim-python-docstring/autoload/../python/pydocstring.py", line 210, in write_docstring
args, returns, yields, raises = self._process_tree(tree)
File "/home/ubuntu/.vim/bundle/vim-python-docstring/autoload/../python/pydocstring.py", line 202, in _process_tree
v.visit(tree)
File "/usr/lib/python3.8/ast.py", line 371, in visit
return visitor(node)
File "/usr/lib/python3.8/ast.py", line 379, in generic_visit
self.visit(item)
File "/usr/lib/python3.8/ast.py", line 371, in visit
return visitor(node)
File "/home/ubuntu/.vim/bundle/vim-python-docstring/autoload/../python/asthelper.py", line 113, in visit_FunctionDef
self._handle_functions(node)
File "/home/ubuntu/.vim/bundle/vim-python-docstring/autoload/../python/asthelper.py", line 88, in _handle_functions
type_hint = ast.unparse(arg.annotation)
AttributeError: module 'ast' has no attribute 'unparse'
Since this is calling python3.8 I think there is a mismatch with the python version vim calls and the python version I normally use.
from vim-python-docstring.
Honestly, I don't know, it seems to me like an issue with the ast
module. I suggest trying it out with different python version (3.9.13).
from vim-python-docstring.
Related Issues (20)
- f-string parameter to error message included among raised errors HOT 2
- Function without parameters HOT 1
- Missing colons in list of class Attributes HOT 1
- Add `Returns: None` when no explicit return statement is found HOT 2
- Add support for functions that enforce keyword-only arguments. HOT 2
- Vim 32 bits and Python 64 bit. HOT 2
- style ignored in lunarvim HOT 2
- Attributes are not in order HOT 4
- Function without trailing empty line
- [Feature Request] remove the indent before the parameters in Numpy style HOT 3
- Update existing docstring HOT 2
- Improve code quality
- Improve error handling HOT 3
- E492: Not an editor command HOT 1
- Use of Type Hinting HOT 3
- Function without body
- Support type hints
- No type for docstring HOT 3
- Support async functions
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 vim-python-docstring.