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

Compass Support #13

Closed
darrenkopp opened this issue Oct 10, 2013 · 17 comments
Closed

Compass Support #13

darrenkopp opened this issue Oct 10, 2013 · 17 comments

Comments

@darrenkopp
Copy link
Owner

Look into ways to embed compass files into package

@darrenkopp
Copy link
Owner Author

released in 0.7.7

@okoetter
Copy link

OK, what do I have to write into "Include Paths" to make compass work?
I installed Ruby in "D:\Tools\Ruby200-x64".
Compass binary is in "D:\Tools\Ruby200-x64\bin".
Compass gem is in "D:\Tools\Ruby200-x64\lib\ruby\gems\2.0.0\gems\compass-0.12.2"

@darrenkopp
Copy link
Owner Author

Yeah, you want to add the path the the folder that includes _compass.scss so for you I would expect that to be

"D:\Tools\Ruby200-x64\lib\ruby\gems\2.0\gems\compass-0.12.2\frameworks\compass\stylesheets"

@darrenkopp
Copy link
Owner Author

Dang, looks like this won't work with libsass since compass uses custom ruby functions. Alright, give me a few more days and I'll see how I can add in support for invoking compass.

@darrenkopp darrenkopp reopened this Oct 18, 2013
@okoetter
Copy link

OK, I don't really understand what you mean but I will wait patiently :-)

@darrenkopp
Copy link
Owner Author

Ok, in the latest version there's an option where you can put in the path to ruby, which for you is d:\tools\ruby200-x64. Once you put that in, should work. Let me know if you run into any issues, I don't have any compass projects to test against so i could only use the default compass project stuff (3 files).

@okoetter
Copy link

Works fine now, thanks a lot!

@darrenkopp
Copy link
Owner Author

😄 Sweet!

@Untit1ed
Copy link

I get the following error: [SassCompileException]C:\Ruby193\lib\ruby\gems\1.9.1\gems\compass-0.12.2\frameworks\compass\stylesheets/compass/typography/vertical_rhythm:1: error: file to import not found or unreadable: "compass/layout/grid-background"

_grid-background.scss and _vertical_rhythm.scss files are there, but I think it has something to do with forward/back slash combination in the path it's looking in.

@darrenkopp
Copy link
Owner Author

Yeah, I need to update the release notes. Remove the path to compass in the Compiler include paths and then put the c:\ruby193 into the Ruby install path under Compass in the settings and then you should be fine. NSass/libsass couldn't handle compass as I had originally thought.

@Untit1ed
Copy link

I have C:\Ruby193 in "Ruby Install Path" and C:\Ruby193\lib\ruby\gems\1.9.1\gems\compass-0.12.2\frameworks\compass\stylesheets in "Include Path" sections.

So it looks like it actually picks up Compass, but the following reference gets messed up: @import "compass/layout/grid-background";

@darrenkopp
Copy link
Owner Author

@Untit1ed ok, the "Include path" won't matter in this case and you can clear it out. However, with that configuration it should be using compass and not nsass assuming that there is a config.rb file in the root of the project, which is what compass uses to determine the where to save things.

If it continues to use NSass, I would guess that there isn't a config.rb. Was this an existing compass project or something that you want to use compass for?

@Untit1ed
Copy link

Oh my bad, i'm not that familiar with compass, so there was no existing project. I just wanted to use some compass functionality and just used @import "compass"; in my existing SCSS files. NSass gives me file to import not found or unreadable: "compass" if I don't provide compass path. I'm going to look at that config.rb solution then. Thanks.

@darrenkopp
Copy link
Owner Author

yeah, unfortunately compass has some ruby specific extensions which break nsass. you can generate a project by doing compass create I think.

@Untit1ed
Copy link

Oh now I see, thanks for your help.

@darrenkopp
Copy link
Owner Author

No problem. I'm not really familiar with compass either, this is just what I learned while figuring out how to integrate with it 👍

@nicholasjgreen
Copy link

Cool man, thanks for putting this plugin together with compass support. It means I can get rid of another plugin which was just locking my computer up on every keypress while editing scss files. Nice work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants