Comments (4)
Sorry for the silence on this one. One of the components is a parser, to try and determine the contents of a class/function. Looks like the logic to stop parsing on both sides of a class was a little borked.
test = 'ing'
class Foo:
var1 = None
var2 = None
class Bar:
var3 = None
var4 = None
In the above example, the Variables section of the docstring for class Foo was as follows:
Variables:
test ([type]) -- [description]
var1 ([type]) -- [description]
var2 ([type]) -- [description]
var3 ([type]) -- [description]
var4 ([type]) -- [description]
Had to break an edge case of multi-line decorator detection, figuring this was more important to not do. At any rate, this should be resolved in the next release which should be in the next day or so. Thanks for logging this bug!
from sublime_docblockr_python.
Any idea of what could be causing the issue @adambullmer ?
from sublime_docblockr_python.
Thanks a lot for the review and future resolution! Yes clearly the parser was missing some detection of the boundaries of the classes.
Looking forward to using this package intensively when this is solved! :)
from sublime_docblockr_python.
Fix should appear in version 1.5.3
from sublime_docblockr_python.
Related Issues (20)
- I did a fresh install of build 3126 and installed this and it doesn't seem to be working. HOT 4
- First line description HOT 3
- ***<Enter> trigger does nothing HOT 4
- cls argument is ignored even if it's not the first argument. HOT 1
- Stopped working. Enter does not give docstring anymore HOT 2
- Suuport MagicPython? HOT 1
- Handle duplicates of Exceptions
- Creates docstrings with whitespaces in numpty HOT 2
- Not working with MagicPython syntax HOT 11
- doesn't work with argument type hinting
- doesn't work with return type hinting
- doesn't work when return statement followed by string literal
- parser breaks when square brackets in default value HOT 2
- Where to put custom formatter?
- Unexpected behavior at the end of docstring
- Creates docstrings of functions with multi-line parameters
- Update docstring
- Can't work in ST4 HOT 7
- Functionality broken in Sublime Text 4 HOT 9
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 sublime_docblockr_python.