Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Compass Basics Getting Started with Compass Creating a Compass Project

Juan Luna
Juan Luna
11,483 Points

Problem with Scout and Compass

Hi! I just installed Compass and I want to use Scout to watch my folder (I prefer an app that does that instead of the terminal), I create a folder called "portafolio" on my desktop and I tested with "compass watch" and everything was perfect, Compass is installed and the files are created. When I open Scout, I set the Input Folder as "portafolio/sass" and the Output Folder as "portafolio/css" and then click Play. But it gives me an error :/

This is the error

LoadError on line 1038 of org/jruby/RubyKernel.java: no such file to load -- compass/import-once/activate
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/data.rb:161:in `require' /Users/felo/Desktop/portafolio/config.rb:20:in `parse_string' org/jruby/RubyKernel.java:1088:in `eval' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:24:in `parse_string' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:15:in `_parse'
org/jruby/RubyIO.java:1111:in `open' org/jruby/RubyKernel.java:298:in `open' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in `_parse' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:7:in `new_from_file' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/inheritance.rb:204:in `with_defaults' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:6:in `new_from_file' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:42:in `configuration_for' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:97:in `add_project_configuration' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:in `add_project_configuration' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:25:in `configure!' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:in `initialize' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/update_project.rb:37:in `initialize' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in `perform!' /Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run!' /Applications/Scout.app/Contents/Resources/bin/compass:12:in `(root)'

The I try to set the same project in CodeKit but when I make a change in a Sass file I get this error on Code Kit

Compass was unable to compile one or more files in the project: 

/Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/commands.rb:14:in `<top (required)>': undefined method `discover_extensions!' for Compass:Module (NoMethodError)
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/exec.rb:7:in `<top (required)>'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:43:in `block in <main>'
    from /Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:30:in `fallback_load_path'
    from /Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:41:in `<main>'

Can somebody help me? Thanks :)

1 Answer

James Barnett
James Barnett
39,199 Points

The first place I would start is the most obvious:

I set the Input Folder as "portfolio/sass" and the Output Folder as "portafolio/css"

Well if the parent of your sass directory is portfolio then your css directory's parent probably is not portafolio

Juan Luna
Juan Luna
11,483 Points

Sorry, that was I mistake I made writing the question :)

James Barnett
James Barnett
39,199 Points

Sorry, that was I mistake I made writing the question

I don't think it was.

Take note of this part of the error message

in `require' /Users/felo/Desktop/portafolio/config.rb

Note the spelling of the directory name