Arcath / jekyll-atom

A collection of tools and snippets for working with Jekyll in Atom
https://atom.io/packages/jekyll
MIT License
49 stars 19 forks source link

Jekyll Binary Path errors -- how to set this package to use the "bundle exec jekyll serve" command? #39

Closed fusion809 closed 8 years ago

fusion809 commented 8 years ago

Hi,

Whenever I edit my Jekyll site's files I receive an error message entitled "Jekyll Binary Incorrect": Jekyll Binary Incorrect I'm guessing this means that my settings are not correctly set. I know that: bundle exec jekyll serve starts the Jekyll server without issue on my machine. My knowledge of how to edit Atom's settings and the settings of its packages is in its infancy, so please keep that in mind when ya respond. I saw this part of this repo's README but it was not particularly helpful as I do not know where to set Build Command and even when I do set it I do not know how to set in order for it to run bundle exec jekyll serve.

Thanks for your time, Brenton

fusion809 commented 8 years ago

I just saw #37 and added bundle, exec, jekyll, serve to my Build Command (in the Settings of this package, which I set in the interface of Atom, refer to the screenshot below if you are confused by my phrasing) and I still received this Jekyll Binary Incorrect error. I also tried setting it to bundle, exec, jekyll, build with the same results. I am running Jekyll under Manjaro Linux, if it is relevant. I have checked my PATH variable (by issuing echo $PATH from Bash, if you're questioning my methods) for bundle and it is there as is confirmed by me running whereis bundle and receiving the result:

/home/fusion809/.gem/ruby/2.3.0/bin/bundle

Jekyll settings

Arcath commented 8 years ago

Atom uses a wierd $PATH I've had issues with it in another of my packages. Try something like:

/full/path/to/bundle/bin/bundle, exec, jekyll, build

you need to build jekyll and not serve it. the package serves it inside the atom process and runs your command every save.

fusion809 commented 8 years ago

Well I'll be it is working, thanks!