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

Unhandled exception in YARD::Handlers::C::MixinHandler #1094

Closed
davidalejandroaguilar opened this issue May 24, 2017 · 1 comment
Closed

Comments

@davidalejandroaguilar
Copy link

davidalejandroaguilar commented May 24, 2017

Got the same error as becker1701 here:

The #show-method method is throwing an unhandled exception in YARD::Handlers::C::MixinHandler.

Basically doing the following in PRY:

require 'pg'
db = PG.connect(dbname: 'database')
result = db.exec('SELECT * FROM films;')
show-method result.values
# Error

Ruby 2.3.1
Pry 0.10.4
PG: 0.20.0 x86-mingw32
Yard: 0.9.9

Here's a gist of the full stack.

@lsegal
Copy link
Owner

lsegal commented Aug 21, 2017

This error looks like issue with the pg gem, not YARD. Occasionally, YARD requires source files to be properly ordered to parse properly, especially when it comes to C source. From the looks of the load order errors, it looks like the author of pg may need to define a .yardopts file with the source files ordered in a way that YARD can correctly parse.

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

2 participants