GithubHelp home page GithubHelp logo

Comments (10)

averyvery avatar averyvery commented on June 27, 2024

+1

from doctorjs.

ilya-biryukov avatar ilya-biryukov commented on June 27, 2024

I'm having the same problem on current jquery development version after 2(!!) minutes of analysis.
http://code.jquery.com/jquery-1.7.2.js

from doctorjs.

marekkalnik avatar marekkalnik commented on June 27, 2024

Same here when trying to run with node 0.8.1 on Modernizr.

from doctorjs.

wangyu0248 avatar wangyu0248 commented on June 27, 2024

yes me too!
jquery-1.7.2.js

from doctorjs.

marekkalnik avatar marekkalnik commented on June 27, 2024

I've isolated a code causing the error. The example comes from Modernizr, I've left out everything that didn't change the outcome, so the code doesn't make much sense.

(function( window, document) {
    function isEventSupported( eventName, element ) {
        eventName = 'on' + eventName;
        element = document.createElement('div');
        element[eventName] = undefined;
    }
})(this, this.document);

Hope it will be of any help. I can look into it when I'll have some more time, but I don't know if it will be any time soon.

from doctorjs.

fradeve avatar fradeve commented on June 27, 2024

same error on OpenLayers.js

echo $NODE_PATH
/usr/local/lib/jsctags/:/usr/local/lib/jsctags/:

node --version
v0.5.10

git log -1
commit 96793072fb43cb0baca6025a187aeaf9f7cdfd79
Author: Dimitris Vardoulakis <[email protected]>
Date:   Sat Apr 14 15:45:09 2012 -0400

from doctorjs.

aquillano avatar aquillano commented on June 27, 2024

I'm seeing the same error.

from doctorjs.

hkrish avatar hkrish commented on June 27, 2024

Same with JQuery 1.8.3

from doctorjs.

stffrdhrn avatar stffrdhrn commented on June 27, 2024

I didnt look too much into it, but I put a patch like this and it seems to work around the issue. The problem seems to be that cfa2 fails when it cant find a proper type, this just returns the default type of "any" instead of backing out with an exception.

This will mean we might lose some type metadata. But me this is better than not getting any ctags.

lib/cfa2/jscfa.js : ~line 1574
 if (types.length === 0)
+      return ("any");
-      throw errorWithCode(CFA_ERROR, "Didn't find a name for constructor");
 normalizeUnionType(types);

from doctorjs.

MarcinWieczorek avatar MarcinWieczorek commented on June 27, 2024

Thank you @shinglyu for the patch, it works and should be merged with the master.

from doctorjs.

Related Issues (20)

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.