drewdeponte / sublime_guard

Sublime Text 2 Guard Plugin - helps create a smoother development workflow.
MIT License
175 stars 15 forks source link

Setup a project in sublime with guard with correct guard and gem files on windows 7 #47

Closed iMetro closed 12 years ago

iMetro commented 12 years ago

Hi, Getting error message when starting Guard in sublime text 2: "Failed to find Guardfile and Gemfile in any of the open folders". Im running on windows 7 64x. At https://github.com/cyphactor/sublime_guard there is this answer in the FAQ: = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Why would I get "Failed to find Guardfile and Gemfile in any of the open folders." as an error?

This error message is a result of the project currently loaded in Sublime Text 2 missing either the Guardfile, the Gemfile, or both. Currently, this plugin requires a Guardfile and a Gemfile to be present in the projects root path to run Guard.

Where do I find out about Guardfiles?

The best place to find out about Guardfiles is the Guard project page. Where do I found out about Gemfiles? The best place to find out about Gemfiles is the Bundler project. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = I downloaded the guardfile from the project page and also the gemfile. here http://github.com/guard/guard In the article they refer to get more info about the gemfile at the Bundler Project http://gembundler.com/

I want to run guard with jasmine from sublime text 2 (and later perhaps with headless-webkit) and I would like some help with creating the guardfile and gemfile, since thats what the error and the explanation is pointing to.

If you have any other ideas how to set Guard up on windows 7 for sublime text 2 using "Install Package" please contribute. Are you setting up a gemfile and guardfile for each project? Two sample files would be great! And where do I put them...? In my code project?

(I also have minggw32 with gnu bash 3.1 if I need to run/compile/ create anything there...) /iEye ps Sorry if this was the wrong forum for this question...

drewdeponte commented 12 years ago

@iMetro I would start with one of the most basic Guard files you can start with and a basic Gemfile and get that working with Sublime Text 2 and Sublime Guard first. Once, that is done then I would venture into adding in jasmine and webkit headless.

A number of people on my dev team are using Sublime Guard with Capybara Webkit so I know that is possible. I would imagine it is possible with Jasmine as well but none of our projects are currently using Jasmine.

The other complexity you have is that you are developing on Windows. My entire dev team uses Mac so we sadly won't be too much help in reproducing this issue.

drewdeponte commented 12 years ago

I am closing this issue as it isn't really an issue with sublime_guard. You need to get Guard setup properly in your environment and then try to get it working with Sublime Guard. You may find more info about Guard itself at the following:

http://github.com/guard/guard/