This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Here are the specs i'm using:
Issue: I cannot get workbench to recognize my imports. Picture: http://imgur.com/Trhd6qn Error Code: Syntax error: File to import not found or unreadable: compass. Load paths: C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE (DEPRECATED) C:/Users/Legym/Desktop/project/sass on line 2 of C:\Users\Legym\Desktop\project\sass\screen.scss Use --trace for backtrace. In my settings I have my Ruby Installation Path to C:\Ruby193\bin. My Config.rb looks like this: http://pastebin.com/h33Rt5zk. I use the windows command line to watch my project and convert my SCSS files to CSS, using Compass. If I could get workbench to just find those imports that would save my hair. Thanks! |
|
|
Solution The past 6 hours have been miserable. My face hurts and my mouse is disgusting. I'm about to see some moonlight after i finish this post and then cry myself to sleep. This is using compass version compass-1.0.0.alpha.19 because it uses the newest version of Sass (3.3.3). I was originally setting up my compass project via command prompt. Everything almost worked except that the @imports were not being found. The solution is to create the project in visual studio (I used MVC5). Right click on your solution in the solution Explorer and look near the bottom for 'Setup Compass Project'. A visual representation: http://www.mindscapehq.com/blog/index.php/2012/10/04/working-with-compass-web-workbench-to-create-button-sprites-within-visual-studio/ All of a sudden, the @imports work and can be found. READY FOR THE KICKER
There is no difference. I don't know what the difference is, but apparently there is. Make sure your settings in web workbench (Tools > options > Web Workbench), the ruby installation path is set to where ruby is. (Mine is C:\Ruby193\bin). In the settings if produce .css file is TRUE, everytime you save your scss files it will save your css file in the scss dir as well as your css dir. Finally note, make sure your config.rb is set up accordingly to your project |
|
|
Sorry you had to muck around to find this. You need to execute the "Setup Compass Project" which should be a no-op if you actually already have set this up at the command line to indicate to us that you want to use the Compass compiler rather than the standard Sass compiler. We dont infer this so that its explicit. The actual difference in practice is we set a flag in your project file (or .mswwsettings file) to indicate that this is enabled and we then look for any .scss files under the sass_dir and compile those with the Compass compiler. Any other files are handled by the normal Sass compiler. Its the Compass compiler which brings those includes into scope as well as the additional Ruby functions to support Compass.
|
|