bengl / btags Goto Github PK
View Code? Open in Web Editor NEWctags generated using babel's AST parser
License: MIT License
ctags generated using babel's AST parser
License: MIT License
Hi,
I have a rather complex project setup, involving es6 with stage 1 features, typescript, and other custom features like root import
So far, everything is tied down with Babel, which is run by webpack to generate dist files.
I would like to setup ctags to easily navigate in my files from vim, but the default universal-ctags setup doesn't work properly, and I believe it has to do with all the special flavors added to the repo.
When searching for babel & ctags on Google, I found your repository.
I tried to run yarn add -D btags
(which installed ^1.0.2), then execute btags on one file, and got the following error:
$ ./node_modules/.bin/btags src/components/Badges.js
!_TAG_FILE_FORMAT 2 /extended format/
!_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Bryan English /[email protected]/
!_TAG_PROGRAM_NAME btags //
!_TAG_PROGRAM_URL http://github.com/bengl/btags /github repository/
!_TAG_PROGRAM_VERSION 1.0.2 //
/home/dori/Projects/myproject/node_modules/btags/index.js:103
var ast = new File({filename: filename}, new Pipeline()).parse(src);
^
TypeError: Pipeline is not a constructor
at /home/dori/Projects/myproject/node_modules/btags/index.js:103:47
at doFile (/home/dori/Projects/myproject/node_modules/btags/index.js:65:3)
at Array.forEach (<anonymous>)
at Object.<anonymous> (/home/dori/Projects/myproject/node_modules/btags/index.js:60:24)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
Did I maybe misunderstood your project and should look for another solution ? In which case, I'll be grateful if you have any recommendations on how to proceed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.