-
Notifications
You must be signed in to change notification settings - Fork 67
'Didn't find a name for constructor' Error on tags genratation #44
Comments
+1 |
I'm having the same problem on current jquery development version after 2(!!) minutes of analysis. |
Same here when trying to run with node 0.8.1 on Modernizr. |
yes me too! |
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.
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. |
same error on OpenLayers.js
|
I'm seeing the same error. |
Same with JQuery 1.8.3 |
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); |
Thank you @shinglyu for the patch, it works and should be merged with the master. |
Hi
I have tried to generate the tags using "jsctags ." command in folder with .js files, but I got an error:
My system info:
The text was updated successfully, but these errors were encountered: