javascriptnode.jsvimctagsjsctags

Jsctags are not working


I installed jsctags, but when I use it according to its usage section it ends with this error.

It is required to have node.js installed and added it's location to $PATH. I installed node.js as an Ubuntu package with apt-get and the file nodejs is located in /usr/bin which is in my $PATH variable.

Do you know what is wrong and how to make jsctags work?

thank you


Solution

  • The version of jsctags I have here and at work (at home: built on 2011.05.10, at work: I don't know but probably the same day +- 2 or 3 days) accepts either -f - or -o - as options to write to stdout which is the mechanism used by TagBar.

    I've just built the latest version pulled from github and it doesn't seem to accept -f anymore. -o - sort of works but it actually writes a - tags file right next to the jsctags executable.

    So basically the whole thing is busted as of right now.

    I suggest you contact the authors to find a solution/workaround.

    In the mean time, you could checkout an old revision of jsctags and see if it helps.