質問

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

役に立ちましたか?

解決

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.

他のヒント

jsctags filename > tags. Use -f for ctags format.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top