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

Document how to setup a development environment on Windows, so starters can contribute #63

Open
ebjornset opened this issue Jan 28, 2018 · 3 comments

Comments

@ebjornset
Copy link
Contributor

I decided to try to make a minor change to test-kitchen/kitchen-hyperv to see if I could fix #62

When trying to test my code rake fails with the error "File does not exist:"

Here is a gist with the output from rake --trace

I've not been able to find any decription on how to setup my machine for development so here is what I did after some trial and error:

choco install ruby -y
refreshenv
gem install bundler
bundle install
rake build
rake

From the Rake issue 247 it seems like I am facing an underlying gem load issue, but I have no clue as how to debug this further.

@ebjornset
Copy link
Contributor Author

ebjornset commented Jan 29, 2018

I finally got my development environment working, by downgrading ruby to v 2.4.3.1.

Here is the steps I had to perform to get rake working:

choco uninstall ruby -y (I had v 2.5.0.1 installed)
choco install ruby --version 2.4.3.1 -y
refreshenv
gem install bundler
bundle install
gem install minitest-stub-const
gem install mocha
rake

Maybe this should go somewhere, in the docs, so starters like me quickly can get up to speed?

@ebjornset ebjornset changed the title When trying to test a code change rake fails with the error "File does not exist:" Document how to setup a developennt environment on Windows, so startes can contribute Jan 29, 2018
@ebjornset ebjornset changed the title Document how to setup a developennt environment on Windows, so startes can contribute Document how to setup a development environment on Windows, so starters can contribute Jan 29, 2018
@cheeseplus
Copy link

@ebjornset Ruby 2.5 is extremely new to the Ruby ecosystem (only released on Dec 25th) and most things aren't going to work as intended as the majority of the ecosystem is still updating.

That's a bit of a quirk of the Ruby ecosystem at the moment so it's not really something that bears documenting, at least in the readme - though a wiki page or dedicated DEVELOPMENT.md might be appropriate. Typically projects will have the Ruby versions pinned in the gemspec or you can see the supported Ruby versions via the CI files .travis.yml or appveyor.yml.

@ebjornset
Copy link
Contributor Author

@cheeseplus, thanks for the clarification. I would highly appreciate a wiki page or dedicated DEVELOPMENT.md. Currently I'm able to use rake and pester to work on my local code, but now the next barrier is to replace the bundled kitchen-hyperv driver inside test-kitchen with my local gem for verification. I must admit it feels like a steep learning curve at the moment.

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