onevcat / vvdocumenter-xcode Goto Github PK
View Code? Open in Web Editor NEWXcode plug-in which helps you write documentation comment easier, for both Objective-C and Swift.
License: MIT License
Xcode plug-in which helps you write documentation comment easier, for both Objective-C and Swift.
License: MIT License
I clone the project and build, restart my project, then type ///, it doesn't work at all.
What's missing?
Hello!
I've tried to install this plugin on my development notebook running MAC OSX 10.7.5 and xCode 4.6.3. the plugin itself is created in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. But! when i try to add /// nothing happens in the code editor window.
What I am doing wrong ?
Thank you in advance
Swift supports making a mutable copy of an argument by prefixing its name with var
.
However, VVDocumenter fails to parse the function signature when using this feature.
/**
<#Description#>
:param: a <#a description#>
*/
func testA<A>(a: A) {}
/// <#Description#>
func testB<B>(var b: B) {}
Seems to miss variables when hitting /// above #define statements.
Example below it misses @param for self.frame.size.width
/**
Thanks for the awesome plug-in! Since Mavericks has been out for awhile, could you update default target to 10.9?
Thanks!
Are there any plans to make a cocoa pod? I would love to drop this into my podfile for every project rather than reintegrating the repo
See the codes:
virtual void run(RegridMethod method, int timeLevel, const RLLVelocityField &f,
const SpaceCoord &x, SphereVelocity &y, RLLMeshIndex *idx = NULL);
and the output of VVDocument-Xcode
:
/**
* <#Description#>
*
* @param method <#method description#>
* @param timeLevel <#timeLevel description#>
* @param f <#f description#>
* @param x <#x description#>
* @param y <#y description#>
* @param NULL <#NULL description#>
*
* @return <#return value description#>
*/
the last argument is not NULL
but idx
.
When I /// above the subscript function in the sample below, it inserts an obj-c style comment block.
public class Issue <KeyType, ValueType>
{
public subscript (key: KeyType) -> ValueType?
{
var value: ValueType? = nil
return value
}
}
Steps to reproduce:
void *foo(void);
Expected:
Actual:
一直不知道是个国人制造的,哈!Xcode 6.0.1不能用了后来找原因,然后下载源码编译,看到已经有了Xcode6的DVTPlugInCompatibilityUUIDs,于是编译看看,原来2个月前你就做了兼容!真是用心了!
致敬你的工作!另外我把这个插件的见识放在我的见识上:http://see.sl088.com/wiki/Xcode%E6%8F%92%E4%BB%B6_VVDocumenter
另外的,我想开启这个issues,除了表达致敬外,我想是否可以打包个release支持Xcode6的呢,因为看起来是最后一个打包还是许久前的.
如果这样做,那么无法激活文档化
void (^devowelizer)(id, NSUInteger, BOOL *);
In the example below, the variables product and max are being incorrectly document as method parameters.
/// <#Description#>
///
/// :param: a <#a description#>
/// :param: b <#b description#>
/// :param: c <#c description#>
/// :param: product <#product description#>
/// :param: max <#max description#>
///
/// :returns: <#return value description#>
func makeTuple(a:Int, b:Int, c:Int) -> (sum:Int, product:Int, max:Int) {
return (a + b + c, a * b * c, max(a, b, c))
}
Regards,
Vince.
This is a great plugin. Can't wait to use it to help document my Swift code.
There is a bug when you do some "undo" and "redo" operations while leaving the inline placeholder of document comment unfilled. It might be something wrong related to string range calculation. See Discussion
section below for more.
Be sure to use a test file to do it.
///
above any code you want to do a documentation. Comment lines with at least one inline placeholder will be generated as usual.///
to generate a new doc comment.A method of DVTSourceTextStorage (which is a subclass of NSTextStorage used by the Xcode editor) named replaceCharactersInRange:withString:withUndoManager:
is used for replacing the typed in ///
to the doc comments. It works well in Xcode 4 unless you try to do some redo operations with the docs. When doing redo, the line range's location can not be accessed correctly, due to a <# #>
tag is being generating while creating the docs. After added, Xcode editor will recognize these tags as inline place holder and convert the <# #>
(including the content between two #
) to a DVTTextFoldInlineTokenAttachment
object and set it to the attributes to the DVTSourceTextStorage (which is a subclass NSAtrributedString).
The converted token only takes 1 length in the DVTSourceTextStorage, so there is a mismatch of redo's range location and real needed range location. When you do a redo, the inserting place is wrong.
I am not familiar with NSTextView and NSUndoManager. I have tried other strategies like paste board and replace the attributed string directly. But all were without luck.
And as described in the Readme file, the undo manager is not working for Xcode 5 DP now. I guess the implement of replaceCharactersInRange:withString:withUndoManager:
is changed. I will keep an eye on the newer release of Xcode 5 and see what I can do.
Solved in tag 0.2. See comment below.
Click "Window" --> "VVDocumenter". Nothing is shown.
The package was installed via Alcatraz.
Not giving "FORMATTED COMMENTING" on typing /// .Its giving Last copied text. Even though rebuild with latest VVDocumenter getting same issue.
See codes:
Correct one:
/**
* <#Description#>
*/
void a();
Wrong one:
/**
* <#Description#>
*
* @return <#return value description#>
*/
virtual void a();
I've just built the latest version on Xcode 5.1.1 and on Mavericks 10.9.2
In this version inline block comments are not being generated. e.g: from any signature whether the block is the only parameter or one of a larger number of parameters.
I saw that this issue was recored as fixed #8, but I didn't know how to re-open it, I don't think I can.
Getting compiler warning when building with CLANG_WARN_DOCUMENTATION_COMMENTS: Yes.
"Unknown command tag name 'Author'; did you mean 'author'?"
Plugin crashes when you type "///" above "typedef NS_ENUM"
For example:
/// # This is where it crashes
typedef NS_ENUM(NSInteger, SMDatePeriod)
{
SMDatePeriodDaily = 0,
SMDatePeriodWeekly,
SMDatePeriodMonthly,
SMDatePeriodYearly,
SMDatePeriodCustom
};
I'm not quite sure, if this can be automatically detected by VVDocumenter, but it would be great to create property/method-groups using the @name-property like described in http://nshipster.com/documentation/.
If no automation is possible, perhaps a secondary tag could be used (//* for example), to automatically insert the documentation stub.
When adding a documentation to a function that has parameters that include both an external parameter name and a local parameter name, the external name should be the one used in the @param line, but the local name is the one presented. For example:
/// <#Description#>
///
/// :param: L <#L description#>
/// :param: G <#G description#>
///
/// :returns: <#return value description#>
func eclipticLongitude(meanLongitude L:Double, meanAnomaly G:Double) -> Double {
return L + 1.915 * sinD(G) + 0.02 * sinD(2 * G)
}
This should be:
/// <#Description#>
///
/// :param: meanLongitude <#meanLongitude description#>
/// :param: meanAnomaly <#meanAnomaly description#>
///
/// :returns: <#return value description#>
func eclipticLongitude(meanLongitude L:Double, meanAnomaly G:Double) -> Double {
return L + 1.915 * sinD(G) + 0.02 * sinD(2 * G)
}
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFString stringByReplacingRegexPattern:withString:]: unrecognized selector sent to instance 0x403ab5520
Do you plan to add it to the https://github.com/mneorr/alcatraz-packages repository so it can be easily installed via alcatraz?
Specific information is as follows
/bin/mkdir -p /Users/wanghuanqiang/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin/Contents
error: Unable to create directory: /Users/wanghuanqiang/Library/Application Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin/Contents (Permission denied)
你好,你的这个插件现在不支持xcode6。
Per the very popular Ray Wenderlich style guide, extensions should be commented like so:
// MARK: - UITableViewDelegate
extension SomeViewController: UITableViewDelegate {
}
Can you modify the /// expansion so that if it's looking at an extension that includes a delegate then it puts the MARK there with the single leading - character?
没找到解决方法,特来请教~
I updated my Xcode to version 5.1, and than I installed VVDocumenter, but it isn't working :(
PS.: I didn't have it installed.
定义函数void print2DList(int rowCount, int (*p)[10]);
只能列出参数p。
另外,这两个参数交换位置,也是只列出参数p。
在升级到Xcode5.1并且使用Programmer Dvorak keyboard layout之后,插件就用不了了。
开始一直以为是升级带来的问题折腾半天,没辙看了下源码原来是键盘布局问题。
用一些奇葩布局还是要付出代价的。。。
Hi, I am currently using the dvorak keyboard layout, and the VVDocumenter plugin
doesn't seem to work. When I use the trigger input, the "Debug" on the menu bar blinks as if it were used.
I tried with the qwerty and the azerty keyboard layout and it worked fine.
I checked all my key binding, I even tested with all the default key binding, but
nothing changed.
I do not understand why it doesn't work with the dvorak layout.
I have the XCode version 5.0 and the OS 10.8.5.
Could you have a look at it ?
Thanks
per this:
http://nshipster.com/documentation/
///---------------------------------------
/// @name Accessing HTTP Client Properties
///---------------------------------------
I know you can change the trigger, but seems like a bad default.
Hello,
I have a non standard keyboard layout. I create forward slashes with alt+s for example. With this configuration the three slashes just flash quickly and disappear. I am suggesting that this should be documented in the README or that the insertion of that the blocks should work with any layout. I have not built plugins for Xcode, but is there no way to insert strings into the buffer without emulating the keyboard?
Having issues getting VVDocumenter to work on XCode 5 GM. Nothing happens when typing the triple slashes. Plugin on the right directory (double checked).
Also I'm getting a warning:
****/VVDocumenter-Xcode/VVDocumenter-Xcode.xcodeproj Garbage Collection is deprecated; use the "Convert to Objective-C ARC" menu command to switch to Automatic Reference Counting
headerdoc2html
has a concept of @internal
in that it will not build docs for these fields/headers unless you explicitly flag that you want them.
i'm building a framework for clients to implement, some files are public, some are private, some are project... obviously i'm looking to only export the public headers instead of everything as is the default... is there any way to go about this in a 'proper' way?(short of deleting html files after it all gets generated...)
goal:
i'd like to have the option of building the private documentation for my side for us to use internally, and i'd like to be able to build documentation that i can ship with my framework.
I am using Xcode 6 GM Seed, and when I try to click on the VVDocumenter option in the Window menu, nothing happens, no window is displayed, so I have no way to access settings. Help! Thx.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.