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

How do I require gems? #1

Open
Nakilon opened this issue Jan 22, 2017 · 2 comments
Open

How do I require gems? #1

Nakilon opened this issue Jan 22, 2017 · 2 comments

Comments

@Nakilon
Copy link

Nakilon commented Jan 22, 2017

I would like to inspect the environment with byebug (I hope it is available for jruby) but if I install jruby and gems in a usual way, how do I tell this thing to use them instead of provided .jar in repo?

@tinco
Copy link
Owner

tinco commented Jan 23, 2017

Hi Nakilon. I am not sure, I've done it this way because I'm not very familiar with JRuby and this was the way I got it to work. If you got it to work another way then I'm very interested, maybe you could write up a small tutorial/article?

I imagine adding gems should be as simple as adding a Gemfile, installing bundler and adding dependencies that way, possibly using bundle exec to run the bot. If that doesn't work then I'm not sure, and you're better off asking some JRuby peeps.

Did you notice the bwapi_ruby_example project?

By the way, not to discourage you, but I got a little annoyed with the API from Ruby. I kept creating difficult to track down bugs, and I feel Ruby wasn't really helping me in that regard. Perhaps building a slightly higher level API to BWAPI in a statically compiled language would be helpful.

@Nakilon
Copy link
Author

Nakilon commented Jan 23, 2017

Sadly JRuby is known to have almost a thousand of issues and I'm not experienced in Java, so I'm not sure how it works. I'll ask someone on freenode maybe.

And yeah, ruby_example works fine. Even with Starcraft downloaded from somewhere else, piratebay I guess.

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