Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Jsctags are not working

Jsctags are not working

Problem

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

Problem courtesy of: xralf

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.

Solution courtesy of: romainl

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Jsctags are not working

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×