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
|
Hi, I am using WWB in Visual Studio and have got the Compass spriting working fine on save, but it fails when trying to run from the command line, with the message below.
I have a config.rb file pointing an images_dir at the root images folder in the project. Here is the content of my file:
The SASS that causes the issue seems to be the import of png files to create a sprite:
Any ideas as to why it has an issue with the import? Thanks |
|
|
Can you let me know what specifically you are running at the command line which produces this?
|
|
|
Hi Jeremy, thanks for your reply. What I am running is a call to the compass_local.bat file that is in my userse\temp folder created when I installed the Pro command line tool. The call is this: "C:\Users\Me\AppData\Local\Temp\Mindscape\WebWorkbench\Ruby193\Ruby193\bin\compass_local.bat" compile "C:\Application\" The config.rb file is located in C:\Application. If I remove the spriting logic then the SASS file is correctly compiled. Here is the full content of the spriting partial file:
Thanks |
|
|
Hi Jeremy, did I post what you were asking for? If you have any ideas what I could investigate to get this working from the command line I would be grateful. Thanks |
|
|
Sorry for the delay in replying. Just to confirm you do have a folder located at C:\Application\Images\icon\png\ which contains the .png files you are spriting? If so this should be working, and I am unsure why it would fail. Ive run up a quick test with your file and a directory structure that should match this here and that works correctly. If the folder structure looks fine would you be able to send through a copy of the project which I can try and reproduce this with here to see if I have missed something in my test here?
|
|
|
Hi Jeremy, thanks for your time and help with this. The folder structure looks fine to me, and the Visual Studio version is able to generate the sprite fine. I have created a cut down version of the project that I have attached. I've included a bat file replicating the call to compass_local. The paths are obviously for my PC... I'd be interested to know if you experience the same issue. Many thanks |
|
|
Right, I can reproduce what you are seeing now. Try just running compile without the directory argument and ensure your working directory is the path in which config.rb resides. e.g. "C:\Users_Me\AppData\Local\Temp\Mindscape\WebWorkbench\Ruby193\Ruby193\bin\compasslocal.bat" compile
|
|
|
Great, that worked. Thank you for your help Jeremy |
|