Skip to content
nene edited this page Sep 17, 2012 · 5 revisions

Some questions keep popping up. Here are the canonical answers.

Q: I'm using Ext JS 4 in sandbox mode and JSDuck fails to auto-detect MyExt.define()

A: Use the --ext-namespaces=Ext,YourNamespace option to make the parser understand both Ext.define() and YourNamespace.define().

Q: JSDuck doesn't support @my_favorite_tag.

A: First off, see if you can extend JSDuck by by yourself by implementing a custom tag.

If this didn't work out, or you think it would be a generally useful feature, post a new issue and try to convince us that JSDuck should support it. Is it supported by some other documentation tool? Tell us which one and link to the relevant documentation if possible. Is it used by some major JavaScript project? Again, give us examples and links.

Q: JSDuck doesn't support <my-favorite-language>.

A: JSDuck is focused on documenting JavaScript source code (with some rudimentary support for documentation in CSS and SCSS files), if you're trying to run JSDuck over the source code of any other language, you're just asking for trouble. Even if it works, that's just pure luck, and it's probably not going to work in the next major JSDuck release that's going to have a much stricter JavaScript parser.

Q: JSDuck doesn't support <my-favorite-character> in class/member name.

A: JSDuck expects all member names to be proper JavaScript identifier names. This means only 0...9, A...Z, a...z, _ and $. Class names can additionally contain dots (.). Anything else that happens to work should be considered a bug and not relied on.

Here's a separate article about the reasons for not supporting other characters.

Clone this wiki locally