Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Running jsctags on the js files in the doctorjs repository fails #49

Description

@srathbun

If I attempt to run find . -name '*.js' | xargs jsctags from the root of the doctorjs repository, I receive the following error:


/usr/local/bin/jsctags:195
                throw e;
                      ^
SyntaxError: ./bin/dr.js:1: Illegal token
    at Object.Narcissus.lexer.Tokenizer.newSyntaxError (/usr/local/narcissus/lib/jslex.js:546:21)
    at Object.Narcissus.lexer.Tokenizer.get (/usr/local/narcissus/lib/jslex.js:527:28)
    at Object.Narcissus.lexer.Tokenizer.peek (/usr/local/narcissus/lib/jslex.js:176:27)
    at Object.done (/usr/local/narcissus/lib/jslex.js:149:25)
    at Statements (/usr/local/narcissus/lib/jsparse.js:394:22)
    at Script (/usr/local/narcissus/lib/jsparse.js:180:9)
    at parse (/usr/local/narcissus/lib/jsparse.js:1841:17)
    at Object.exports.Tags.Object.create.Trait.compose.Trait.scan (/usr/local/lib/jsctags/ctags/index.js:101:19)
    at processPath (/usr/local/bin/jsctags:189:18)
    at Object.<anonymous> (/usr/local/bin/jsctags:207:5)```

Granted, this means that there is invalid javascript in the file. But jsctags should not bomb out because one line fails.  

Even if it is too much trouble for the parser to throw out bad input and continue, jsctags should at least run the rest of it's arguments. 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions