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

Can't get the framework to register with compass #4

Open
deanfields opened this issue Nov 12, 2013 · 6 comments
Open

Can't get the framework to register with compass #4

deanfields opened this issue Nov 12, 2013 · 6 comments

Comments

@deanfields
Copy link

Hello, I have followed your method here to create an extension, however I can't seem to get it to register. When you type compass framework, it doesn't appear in the list.

this is the code for it in my lib/extension_name.rb file:

extension_path = File.expand_path(File.join(File.dirname(FILE), ".."))
Compass::Frameworks.register('base-framework',
:stylesheets_directory => File.join(File.dirname(FILE), '..', 'sass'),
:templates_directory => File.join(File.dirname(FILE), '..', 'templates'),
:path => extension_path)

Am I being silly here?

@Snugug
Copy link
Member

Snugug commented Nov 12, 2013

Did you remember to build your compass extension and install it?

@deanfields
Copy link
Author

Yes, I've been building it, installing it and then uninstalling it, removing the generated file and re-building just to make sure it's not old code not updating or something.

@Snugug
Copy link
Member

Snugug commented Nov 12, 2013

Are you using Bundler to maintain your gem dependencies? If you run gem list framework do you see versions of your framework installed? Have you remembered to add your framework to your config.rb?

Sam Richard

On Tuesday, November 12, 2013 at 12:51 PM, Dean Fields wrote:

Yes, I've been building it, installing it and then uninstalling it, removing the generated file and re-building just to make sure it's not old code not updating or something.


Reply to this email directly or view it on GitHub (#4 (comment)).

@deanfields
Copy link
Author

I've actually wiped my computer down and re-installed the OS with Mavericks, I'm using the system ruby, and when I type gem list I can see it installed in the list.

Will it only show up when I add it to a config.rb file in a project for the first time? because I haven't made a compass project with the gem just yet.

@Snugug
Copy link
Member

Snugug commented Nov 12, 2013

You can only use gems you’ve built with a Compass project, so you need to include the require in your config.rb like you would any other Compass extension

Sam Richard

On Tuesday, November 12, 2013 at 12:57 PM, Dean Fields wrote:

I've actually wiped my computer down and re-installed the OS with Mavericks, I'm using the system ruby, and when I type gem list I can see it installed in the list.
Will it only show up when I add it to a config.rb file in a project for the first time? because I haven't made a compass project with the gem just yet.


Reply to this email directly or view it on GitHub (#4 (comment)).

@deanfields
Copy link
Author

Ok thanks very much I'll see where this leads me

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