Bug in Propeller tool software with the Documentation
TheDarkWraith
Posts: 7
If you have something like the following:
PUB Test1
''this test does x
...
PRI Test2
''this test does x
...
PRI Test3
''this test does x
...
PUB Test4
''this test does x
...
And you switch to Documentation view the documentation comments for the first PUB block are shown and all the documentation comments for the PRI blocks that follow it appear in the first PUB block until the next PUB block is encountered. It appears the app doesn't stop 'adding' documentation comments until it reaches another PUB block
PUB Test1
''this test does x
...
PRI Test2
''this test does x
...
PRI Test3
''this test does x
...
PUB Test4
''this test does x
...
And you switch to Documentation view the documentation comments for the first PUB block are shown and all the documentation comments for the PRI blocks that follow it appear in the first PUB block until the next PUB block is encountered. It appears the app doesn't stop 'adding' documentation comments until it reaches another PUB block
Comments
-Phil
-Phil
It's hard for us to classify this as a bug... it's pretty much a feature but with this unintended side effect. Doc comments were not intended to be tied solely to methods, but were intended to show up in documentation view (as opposed to code comments) regardless of where they are in the source. In practice, it was intended that people don't write doc comments for anything they don't intend to be displayed in documentation view.
But the case can be made that we should probably make this exception and just ignore doc comments inside of private methods.
Here's my test code:
and here's my output (documentation view):
This test reveals another problem... there's no new line after a multi-line comment being inserted into documentation view.