Menu

#308 (JS) invalid tags file created from env.rhino.1.2.js

closed-works-for-me
None
5
2015-09-02
2011-03-10
Anonymous
No

env.rhino.js.1.2.js causes an invalid tags file to be created:

$ wget http://gfxmonk.net/misc/env.rhino.1.2.js

2011-03-10 21:37:27 (213 KB/s) - `env.rhino.1.2.js' saved [697158/697158]

$ ctags env.rhino.1.2.js
ctags: Warning: ignoring null tag in env.rhino.1.2.js
ctags: Warning: ignoring null tag in env.rhino.1.2.js

$ head tags

return str;
str = str.replace(unescAmpRegEx, env.rhino.1.2.js /^ str = str.replace(unescAmpRegEx, "&").$/;" f
* @param str : string - The string to be unescaped
* @return : string - The unescaped string
* function __unescapeXML__
*/
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/

$ ctags --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Aug 17 2010, 20:04:35
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex

Many thanks,

Tim.

Discussion

  • David Fishburn

    David Fishburn - 2012-11-06
    • assigned_to: nobody --> dfishburn
     
  • Colomban Wendling

    Seems to work with development version of CTags.

     
  • David Fishburn

    David Fishburn - 2013-04-23

    Works in trunk or next release after 5.8.1

     
  • David Fishburn

    David Fishburn - 2013-04-23
    • status: open --> closed-works-for-me
     
  • Luke

    Luke - 2015-08-04

    I think the error still persists. Got it with some javascript libraries (e.g. socket.io-client\test\socket.test.js) that I got from npm, but also in minimized files like jquery minimized: http://code.jquery.com/jquery-2.1.4.min.js

    I broke down some cases from socket.test.js

    0 Warnings:

    return { '': function () {} };
    return variable = 0;

    1 Warning:

    return variable = { '': function () {} };

    2 Warnings:

    (function () {
    return module = { '': function () {} };
    })();

    I checked it with the last ctags version from trunk.

    ctags --version
    Exuberant Ctags Development, Copyright (C) 1996-2009 Darren Hiebert
    Compiled: Aug 3 2015, 18:03:10
    Addresses: dhiebert@users.sourceforge.net, http://ctags.sourceforge.net
    Optional compiled features: +win32, +regex, +internal-sort

     

    Last edit: Luke 2015-08-04
  • Masatake YAMATO

    Masatake YAMATO - 2015-08-04

    It doesn't reproduced in universal-ctags(https://ctags.io).

     
  • Luke

    Luke - 2015-08-10

    CONFIRMED
    Didn't know about universal-ctags....

    --> Though, there are warnings in some other libraries, see attachment

     
  • Masatake YAMATO

    Masatake YAMATO - 2015-08-10

    Thank you for reporting more URLs.
    I will try to fix them at https://github.com/universal-ctags/ctags/issues/471 .

     
  • Masatake YAMATO

    Masatake YAMATO - 2015-09-02

    Maybe fixed for all the attachements.

     

Log in to post a comment.