Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR "Cannot read property '0' of undefined" #59

Closed
ixti opened this issue Jul 16, 2012 · 4 comments
Closed

ERROR "Cannot read property '0' of undefined" #59

ixti opened this issue Jul 16, 2012 · 4 comments

Comments

@ixti
Copy link
Contributor

ixti commented Jul 16, 2012

Error happens when invalid docblock ending specified */ instead of **/.
Parser must either support */ endings or at least notify with more adequate message, similar to normal Lexical error:

Lexical error on line 138. Unrecognized text.
...- tzOffset (Number): TZ offset in minute
-----------------------^
@ixti
Copy link
Contributor Author

ixti commented Jul 16, 2012

Same error happens on no braces of constructor:

/**
 *  new Foobar
 **/

@deepsweet
Copy link

also this error happens on new Foobar(param) -> Type.
whether it's possible to set a returned type for a constructor in original PDoc concept?

@puzrin
Copy link
Member

puzrin commented Jun 14, 2013

@deepsweet that's a separate issue (#69). Will be fixed soon.

@puzrin
Copy link
Member

puzrin commented Jun 18, 2013

fixed in new pegjs parser - now correctly returns error info

@puzrin puzrin closed this as completed Jun 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants