Giter Site home page Giter Site logo

btags's People

Contributors

bengl avatar brianpeiris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

btags's Issues

TypeError: Pipeline is not a constructor

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.