welaika / wordless

All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
https://www.wptools.it/wordless
1.43k stars 107 forks source link

can't get it working on MAMP #49

Closed dirkschmid closed 12 years ago

dirkschmid commented 12 years ago

Hello So i setup all like in the readme description. MAMP is also running for Apache and the Mysql, but it doesn't work, the Sass- or Haml-files are'nt compiled, it even didn't builds any of the preset CSS.

Any Idea where's my mistake?

Greetz

stefanoverna commented 12 years ago

Are you having any errors/warnings if you look at the source of the CSSs?

dirkschmid commented 12 years ago

no nothing, that's the point, the sources(sass-files) are fine, bur the css file is totally empty

stefanoverna commented 12 years ago

Well, that's strange. MAMP is supported by Wordless. Have you changed the "Settings > Permalinks" preference into "month and name"? Does the .htaccess work?

dirkschmid commented 12 years ago

ok, weird, now i git errors

/Users/dirkschmid/.rvm/bin/compass line 5: /Users/dirkschmid/.rvm/bin/compass: Argument list too long n/Users/dirkschmid/.rvm/bin/compass; line 5: /Users/dirkschmid/.rvm/bin/compass Undefined error: On

stefanoverna commented 12 years ago

If you followed the "RVM way" you should have changed the "css.compass_path" and "js.ruby_path" preference in the config/initializers/wordless_preferences.php config file, with something like "/Users/dirkschmid/.rvm/bin/wordless_ruby" and "/Users/dirkschmid/.rvm/bin/wordless_compass", right?

dirkschmid commented 12 years ago

Yes, thats exactly what i wrote there.

stefanoverna commented 12 years ago

let's chat on skype, my skype name is steffoz, i'll wait there :)

jwaldrip commented 12 years ago

Looks like Ill need some help as well...

stefanoverna commented 12 years ago

@jwaldrip, what kind of problems are you facing?

jwaldrip commented 12 years ago

I get an error from rbenv. I created the two files, made them executable and updated my config. This is what I get as the error, and the error is in a psuedo-class body::before

"/Volumes/Terra-Nova/jwaldrip/Sites/wordless-rbenv/wordless_compass: line 4: rbenv: command not foundn/Volumes/Terra-Nova/jwaldrip/.rbenv/shims/compass: line 4: exec: rbenv: not foundn\n"

stefanoverna commented 12 years ago

can you paste here the content of wordless_compass?

jwaldrip commented 12 years ago
#!/usr/bin/env bash
export RBENV_ROOT="/Volumes/Terra-Nova/jwaldrip/.rbenv"                                                                                                                     
export PATH=/usr/local/bin:$RBENV_ROOT/shims:$PATH
eval "$(rbenv init bash -)"
export RBENV_VERSION='1.9.3-p0'
compass "$@"
stefanoverna commented 12 years ago

Please try to pull Wordless again, I've made the error traces for preprocessors more informative (printing the exact command Wordless is trying to execute), hopefully we should get some more clues with this.

It seems to me that there's some kind of problem for the PHP process finding the "rbenv()" function. Something not directly related to Wordless itself. Have you double-checked that the /Volumes/Terra-Nova/jwaldrip/.rbenv is the right path to the rbenv directory?

I've come up with the code for the wordless_compass pretty fast, so it might not be perfect for every environment :)

stefanoverna commented 12 years ago

What happens if you type wordless_compass --version on your console, btw?

jwaldrip commented 12 years ago
./wordless_compass --version
Compass 0.12.rc.1 (Alnilam)
Copyright (c) 2008-2012 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass
jwaldrip commented 12 years ago
/************************
Failed to run the following command: '/Volumes/Terra-Nova/jwaldrip/Sites/wordless-rbenv/wordless_compass' 'compile' '/Volumes/Terra-Nova/jwaldrip/Sites/jasonwaldrip.com/html/wp-content/themes/jasons-theme/tmp' '--config' '/Volumes/Terra-Nova/jwaldrip/Sites/jasonwaldrip.com/html/wp-content/themes/jasons-theme/tmp/compass_configJcEE4q'

Generated config:

http_path = "./"
http_images_dir = "../images"
images_dir = "../assets/images"
http_fonts_dir = "../fonts"
fonts_dir = "../assets/fonts"
css_path = "/Volumes/Terra-Nova/jwaldrip/Sites/jasonwaldrip.com/html/wp-content/themes/jasons-theme/tmp"
relative_assets = false
output_style = :compressed
environment = :production
sass_path = "/Volumes/Terra-Nova/jwaldrip/Sites/jasonwaldrip.com/html/wp-content/themes/jasons-theme/theme/assets/stylesheets"

Error output:

/Volumes/Terra-Nova/jwaldrip/Sites/wordless-rbenv/wordless_compass: line 4: rbenv: command not found
/Volumes/Terra-Nova/jwaldrip/.rbenv/shims/compass: line 4: exec: rbenv: not found
************************/
stefanoverna commented 12 years ago

So it's supposed to work. Permissions maybe? Please try to exec on your console the exact command that Wordless prints you on the error infos.

jwaldrip commented 12 years ago

Im using MAMP PRO. Is there something I have to do to allow exec() within php?

dirkschmid commented 12 years ago

hey guys, i installed it also new and almost when i set the gemset i got this error:

/Users/dirkschmid/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.3.0]

jwaldrip commented 12 years ago

Hey any status update on the fix for rbenv?

rvr commented 12 years ago

i have everything set up (i hope), but i can't get it working. i have the gems and wp plugin installed, and have wp set to pretty urls. when i try to make a wordless theme, though, it doesn't create anything.

stefanoverna commented 12 years ago

Try to set 777 permission on themes directory and let me know!

rvr commented 12 years ago

that did it! beautiful, thanks!

rvr commented 12 years ago

i don't have any styles rendering now, though. the views look fine, but when i try view the stylesheet directly i get a 403 forbidden page.


Forbidden

You don't have permission to access /~river/joshgold/index.php on this server.


looks like the css isn't there, so i'm wondering if there's a permission problem, or maybe i don't have the it configed properly?

here's what i have in wordless_preferences:

// Wordless::set_preference("css.compass_path",     "/Users/river/.rvm/bin/wordless_compass");
// Wordless::set_preference("css.output_style",     "compressed");
// Wordless::set_preference("css.require_libs",     array());

// Wordless::set_preference("js.ruby_path",         "/Users/river/.rvm/bin/wordless_ruby");
// Wordless::set_preference("js.yui_compress",      false);
// Wordless::set_preference("js.yui_munge",         false);

// Wordless::set_preference("assets.cache_enabled",  true);
jwaldrip commented 12 years ago

Any update on the rbenv problem?

rvr commented 12 years ago

any thoughts on not getting any styles?

rvr commented 12 years ago

so i finally did get the styles to render. it may have been more permissions issues, since i've been messing with that. the problem now, though, is that it won't update the styles. i changed .page-wrapper to .container in the layout and the stylesheet. the layout updates but not the css.

rvr commented 12 years ago

really want to get this to work, as i am hoping to use it on a current project. would love some help if anyone has ideas. for now i'm using codekit to compile my sass.

jwaldrip commented 12 years ago

As do I. These guys have not at all been responsive lately. I have been waiting more than a month to get back to me on another issue.

rvr commented 12 years ago

i noticed that. hope everything is ok with stefano. this is such a great start to something i've been dying to have for a long time, i really want to get it running smoothly.

stefanoverna commented 12 years ago

Sorry, I've been pretty busy lately, and these issue are kinda generic and difficult to guess remotely. I'll se what I can do in the next days, @endorama do you have any clues?

endorama commented 12 years ago

First I'll split this huge help issue in more specific and easy to solve issue. This issue will be closed ( as the problem stated by @dirkschmid seems to be solved a while ago, or at least no news about it are reported ).

I'll open new issues trying to group the problems you have stated. @jwaldrip I noticed that you had opened the issue #63 as a follow up to this issue. Let's continue there!

@rvr Can you create a new issue with a description of the current state of the problem?

@dirkschmid It seems that your problem is not directly connected with Wordless, but only with its installation. I'm on Linux and I use RVM to manage rubies, so it's really difficult for me to try to solve the problem you exposed. Also, have you tried googling about it? It seems related with your ruby or rbenv environment more than with Wordless. If you need more help, please create a new issue!

Thanks, Edoardo

dirkschmid commented 12 years ago

@endorama Sry that i didn't report that long time was busy working on other projects. But you're totally right, with stefano i recognized that the problem is related to RVM's, cause i can run compass outside of RVM, but not with a special rubies or gemsets But i have no idea what the error triggers

endorama commented 12 years ago

I did a little search and I found something related to compiling REE and XCode version... I don't know if this can be your problem.. Have you tried unistalling and reinstalling RVM and ruby? Maybe this could lead to the solution of the problem.

Unfortunatly I don't have a Mac, so I cannot check nor I can try to reproduce the problem :(

dirkschmid commented 12 years ago

ok i just upgraded, now haml is working and i didn't get the compass error anymore, but the css doesn't compile.

endorama commented 12 years ago

Do you have some errors in your css file?

Running wordless_compass alone gives some results?

dirkschmid commented 12 years ago

hm, whats strange that it doesn't save the RVM when i open the folder in a new terminal window and so he doesn't know what he should compile. and there's no css file in assets only in tmp folder

endorama commented 12 years ago

Did you follow the installation instruction of RVM? I use it and following their instruction everything works fine... Maybe you missed the part in which you have to put the string to autoload rvm inside open shells?

dirkschmid commented 12 years ago

using RVM also for other projects but this shell never came inside wordpress folder, also i don't understand why setting this RVM to default?!