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

undefined method 'default_instance' #223

Closed
lebogan opened this issue Nov 23, 2017 · 3 comments
Closed

undefined method 'default_instance' #223

lebogan opened this issue Nov 23, 2017 · 3 comments

Comments

@lebogan
Copy link

lebogan commented Nov 23, 2017

I get this message when I try to run the page_and_wrap.rb example:

NoMethodError: undefined method 'default_instance' for HighLine:Class

I am using highline 1.7.8, bundler 1.16.0, and ruby 2.3.3.

Thanks for any insight.

@lebogan
Copy link
Author

lebogan commented Nov 23, 2017

Update:
I downloaded and built version 2.0.0.pre.develop.14 and ran the example again. It works with this version.
What am I missing?

@abinoam
Copy link
Collaborator

abinoam commented Nov 24, 2017

Hi @lebogan,

We're not actively updating 1-7-stable branch.
So I strongly encourage to experiment and migrate to 2-0 branch.
But I added this to 1-7-stable because I think is important for avoiding confusion.
See PR #224

Now (at 1-7 and 2-0) you may run

bundle exec ruby examples/page_and_wrap.rb

and bundle will take care of correctly handling dependencies and load path.

Could please give me some feedback if it worked for you now?

@lebogan
Copy link
Author

lebogan commented Nov 24, 2017

Thank you. That worked.

@lebogan lebogan closed this as completed Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants