New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'longname' of null #1416
Comments
I can't diagnose this issue without an example of source code that triggers the error. Can you please provide an example? |
I've investigate a little bit more and I've found that the problem is from a specific file. I copy paste the code below :
If I run the command |
Thanks for the example, @alexisab. I can trigger the error with your example and this reduced test case: export const Foo = bar(baz => {
})(class {
qux = () => {}
}); Investigating. |
Fixed on master and releases/3.5. The fix will be included in JSDoc 3.5.4. |
3.5.4 * tag '3.5.4': 3.5.4 upgrade Babylon fix test breakage 3.5.4 changelog prevent crash when an anonymous class is passed as a parameter (jsdoc#1416) hide the signature in the heading for classes with hidden constructors (jsdoc#1397) update tested Node.js versions enable more Babylon options (jsdoc#1411) upgrade Babylon update .gitignore fix problems with methods and properties in classes returned by arrow function expressions (jsdoc#1409) followup to 3b604fb Deferred process.exit() to allow STDOUT pipe to flush (jsdoc#1408) add Slack channel to README start 3.5.4-dev # Conflicts: # package.json
* master: (95 commits) update dependencies and supported Node.js versions 3.5.5 changelog Prefer copyFileSync from here over native (jsdoc#1440) upgrade Babylon fix test breakage 3.5.4 changelog prevent crash when an anonymous class is passed as a parameter (jsdoc#1416) hide the signature in the heading for classes with hidden constructors (jsdoc#1397) chore(package): update nyc to version 11.1.0 (jsdoc#1417) add `templates.useShortNamesInLinks` config option (jsdoc#738) allow users to specify a highlighter for Markdown code blocks (jsdoc#1412) document `longnamesToTree`, plus other doc improvements (jsdoc#43) move namespaces and interfaces up in the nav (jsdoc#1410) don't pretty-print code blocks that begin with "```plain" (jsdoc#1361) improve comment make the `exports` tag work correctly when combined with the `enum` tag (jsdoc#970) fix Node.js 4.x update tested Node.js versions use the markdown-it Markdown parser by default (jsdoc#1243) enable more Babylon options (jsdoc#1411) ... # Conflicts: # .travis.yml # README.md # lib/jsdoc/src/astbuilder.js # lib/jsdoc/src/visitor.js # lib/jsdoc/util/markdown.js # lib/jsdoc/util/templateHelper.js # package.json
I try to setup jsdoc in my project. I've write some simple comments but when I run jsdoc i got this error :
Here is my config file :
I run this command (in my package.json, but I got the same error if I use directly jsdoc bin):
If I remove the
recurse
option it works 😕I'm on ubuntu 16.04,
Node v7.6.0
Yarn 0.27.5
jsdoc 3.5.3
The text was updated successfully, but these errors were encountered: