Open exos opened 10 years ago
I get the same. A little extra info: I installed with npm install -g
and have some additional output:
joelburget@gorebridge ~/k/perseus> jsctags src
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
Array.prototype.push called on null or undefined
/usr/local/lib/node_modules/jsctags/jsctags/ctags/writer.js:89
this.tags = this.tags.sort(sortfunc);
^
TypeError: Cannot call method 'sort' of undefined
at Object.exports.TagWriter.Trait.write (/usr/local/lib/node_modules/jsctags/jsctags/ctags/writer.js:89:31)
at Object.<anonymous> (/usr/local/lib/node_modules/jsctags/bin/jsctags.js:269:10)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Hope that's helpful!
same issue as this closed thread https://github.com/mozilla/doctorjs/issues/52
Hi! I'm using vim + tagbar plugin and this use jsctags for generate a tags explorer.
For configure it I folllow this: https://github.com/majutsushi/tagbar/wiki#javascript
But, when I try to open the panel, vim reports this error:
I trayed to run this manually:
jsctags -f - gui.js
And the error is the same.
More info:
File with I tryed working: http://paste.kde.org/pfnchcp0f
Sorry my poor english :)